From c1690c273f7876d4b48863c6eeba9f3b9d0db9af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 29 Sep 2026 00:43:45 +0000 Subject: [PATCH 1/2] feat: Updated OpenAPI spec --- .../GeneratedApi/CliRuntime.cs | 89 +- .../AdminApiKeysCreateCommandApiCommand.g.cs | 3 + .../AdminApiKeysDeleteCommandApiCommand.g.cs | 3 + .../AdminApiKeysGetCommandApiCommand.g.cs | 3 + .../AdminApiKeysListCommandApiCommand.g.cs | 3 + .../Commands/AgentsApiGroupCommand.g.cs | 5 +- .../AgentsCreateAgentCommandApiCommand.g.cs | 3 + ...AgentEnvironmentFileCommandApiCommand.g.cs | 3 + ...tEnvironmentTemplateCommandApiCommand.g.cs | 3 + ...AgentSessionAsStreamCommandApiCommand.g.cs | 3 + ...tsCreateAgentSessionCommandApiCommand.g.cs | 60 +- ...teAgentSessionEventsCommandApiCommand.g.cs | 3 + .../AgentsDeleteAgentCommandApiCommand.g.cs | 3 + ...tEnvironmentTemplateCommandApiCommand.g.cs | 3 + ...AgentSessionArtifactCommandApiCommand.g.cs | 3 + ...tsDeleteAgentSessionCommandApiCommand.g.cs | 3 + ...gentEnvironmentFilesCommandApiCommand.g.cs | 3 + ...EnvironmentTemplatesCommandApiCommand.g.cs | 3 + ...gentSessionArtifactsCommandApiCommand.g.cs | 3 + ...stAgentSessionEventsCommandApiCommand.g.cs | 3 + ...istAgentSessionItemsCommandApiCommand.g.cs | 3 + ...SessionSubagentItemsCommandApiCommand.g.cs | 3 + ...ionSubagentTurnItemsCommandApiCommand.g.cs | 3 + ...SessionSubagentTurnsCommandApiCommand.g.cs | 3 + ...gentSessionSubagentsCommandApiCommand.g.cs | 3 + ...istAgentSessionTurnsCommandApiCommand.g.cs | 3 + ...ntsListAgentSessionsCommandApiCommand.g.cs | 3 + .../AgentsListAgentsCommandApiCommand.g.cs | 3 + .../AgentsRetrieveAgentCommandApiCommand.g.cs | 3 + ...ieveAgentEnvironmentCommandApiCommand.g.cs | 3 + ...tEnvironmentTemplateCommandApiCommand.g.cs | 3 + ...AgentSessionArtifactCommandApiCommand.g.cs | 3 + ...ssionArtifactContentCommandApiCommand.g.cs | 3 + ...RetrieveAgentSessionCommandApiCommand.g.cs | 3 + ...AgentSessionSubagentCommandApiCommand.g.cs | 3 + ...tSessionSubagentTurnCommandApiCommand.g.cs | 3 + ...ieveAgentSessionTurnCommandApiCommand.g.cs | 3 + .../AgentsUpdateAgentCommandApiCommand.g.cs | 3 + ...tEnvironmentTemplateCommandApiCommand.g.cs | 3 + ...tsUpdateAgentSessionCommandApiCommand.g.cs | 3 + .../GeneratedApi/Commands/ApiCommand.g.cs | 5 +- .../Commands/AssistantsApiGroupCommand.g.cs | 8 +- .../AssistantsCancelRunCommandApiCommand.g.cs | 3 + ...istantsCreateMessageCommandApiCommand.g.cs | 59 +- ...ntsCreateRunAsStreamCommandApiCommand.g.cs | 198 + .../AssistantsCreateRunCommandApiCommand.g.cs | 178 +- ...ThreadAndRunAsStreamCommandApiCommand.g.cs | 177 + ...tsCreateThreadAndRunCommandApiCommand.g.cs | 99 +- ...sistantsCreateThreadCommandApiCommand.g.cs | 3 + ...istantsDeleteMessageCommandApiCommand.g.cs | 3 + ...sistantsDeleteThreadCommandApiCommand.g.cs | 3 + ...AssistantsGetMessageCommandApiCommand.g.cs | 3 + .../AssistantsGetRunCommandApiCommand.g.cs | 3 + ...AssistantsGetRunStepCommandApiCommand.g.cs | 3 + .../AssistantsGetThreadCommandApiCommand.g.cs | 3 + ...sistantsListMessagesCommandApiCommand.g.cs | 3 + ...sistantsListRunStepsCommandApiCommand.g.cs | 3 + .../AssistantsListRunsCommandApiCommand.g.cs | 3 + ...istantsModifyMessageCommandApiCommand.g.cs | 3 + .../AssistantsModifyRunCommandApiCommand.g.cs | 3 + ...sistantsModifyThreadCommandApiCommand.g.cs | 3 + ...lOuputsToRunAsStreamCommandApiCommand.g.cs | 68 + ...ubmitToolOuputsToRunCommandApiCommand.g.cs | 48 +- .../Commands/AudioApiGroupCommand.g.cs | 5 +- ...eSpeechAsEventStreamCommandApiCommand.g.cs | 3 + .../AudioCreateSpeechCommandApiCommand.g.cs | 3 + ...ranscriptionAsStreamCommandApiCommand.g.cs | 3 + ...eTranscriptionAsTextCommandApiCommand.g.cs | 3 + ...oCreateTranscriptionCommandApiCommand.g.cs | 7 +- ...ateTranslationAsTextCommandApiCommand.g.cs | 3 + ...dioCreateTranslationCommandApiCommand.g.cs | 3 + .../AudioCreateVoiceCommandApiCommand.g.cs | 3 + ...ioCreateVoiceConsentCommandApiCommand.g.cs | 3 + ...ioDeleteVoiceConsentCommandApiCommand.g.cs | 3 + ...AudioGetVoiceConsentCommandApiCommand.g.cs | 3 + ...dioListVoiceConsentsCommandApiCommand.g.cs | 3 + ...ioUpdateVoiceConsentCommandApiCommand.g.cs | 3 + .../Commands/AuditLogsApiGroupCommand.g.cs | 5 +- ...ditLogsListAuditLogsCommandApiCommand.g.cs | 3 + .../Commands/BatchApiGroupCommand.g.cs | 5 +- .../BatchCancelBatchCommandApiCommand.g.cs | 3 + .../BatchCreateBatchCommandApiCommand.g.cs | 59 +- .../BatchListBatchesCommandApiCommand.g.cs | 3 + .../BatchRetrieveBatchCommandApiCommand.g.cs | 3 + ...celChatSessionMethodCommandApiCommand.g.cs | 3 + ...nizationCertificatesCommandApiCommand.g.cs | 3 + ...eProjectCertificatesCommandApiCommand.g.cs | 3 + .../Commands/CertificatesApiGroupCommand.g.cs | 5 +- ...nizationCertificatesCommandApiCommand.g.cs | 3 + ...eProjectCertificatesCommandApiCommand.g.cs | 3 + ...tesDeleteCertificateCommandApiCommand.g.cs | 3 + ...icatesGetCertificateCommandApiCommand.g.cs | 3 + ...nizationCertificatesCommandApiCommand.g.cs | 3 + ...tProjectCertificatesCommandApiCommand.g.cs | 3 + ...tesModifyCertificateCommandApiCommand.g.cs | 3 + ...tesUploadCertificateCommandApiCommand.g.cs | 3 + .../Commands/ChatApiGroupCommand.g.cs | 5 +- ...atCompletionAsStreamCommandApiCommand.g.cs | 3 + ...CreateChatCompletionCommandApiCommand.g.cs | 3 + ...DeleteChatCompletionCommandApiCommand.g.cs | 3 + ...hatGetChatCompletionCommandApiCommand.g.cs | 3 + ...atCompletionMessagesCommandApiCommand.g.cs | 3 + ...tListChatCompletionsCommandApiCommand.g.cs | 3 + ...UpdateChatCompletionCommandApiCommand.g.cs | 3 + .../Commands/CompletionsApiGroupCommand.g.cs | 5 +- ...ionsCreateCompletionCommandApiCommand.g.cs | 3 + .../ConversationsApiGroupCommand.g.cs | 5 +- ...nsCreateConversationCommandApiCommand.g.cs | 3 + ...ateConversationItemsCommandApiCommand.g.cs | 3 + ...nsDeleteConversationCommandApiCommand.g.cs | 3 + ...leteConversationItemCommandApiCommand.g.cs | 3 + ...tionsGetConversationCommandApiCommand.g.cs | 3 + ...sGetConversationItemCommandApiCommand.g.cs | 3 + ...istConversationItemsCommandApiCommand.g.cs | 3 + ...nsUpdateConversationCommandApiCommand.g.cs | 3 + ...ateChatSessionMethodCommandApiCommand.g.cs | 3 + .../CreateContainerCommandApiCommand.g.cs | 60 +- .../CreateContainerFileCommandApiCommand.g.cs | 3 + .../Commands/CreateRunRequestOptionSet.g.cs | 64 + .../CreateThreadAndRunRequestOptionSet.g.cs | 59 + ...reateWebhookEndpointCommandApiCommand.g.cs | 3 + ...eyforaserviceaccountCommandApiCommand.g.cs | 3 + ...storageconfigurationCommandApiCommand.g.cs | 56 +- ...ntentprovenancecheckCommandApiCommand.g.cs | 3 + .../DataRetentionApiGroupCommand.g.cs | 5 +- ...izationDataRetentionCommandApiCommand.g.cs | 3 + ...ProjectDataRetentionCommandApiCommand.g.cs | 3 + ...izationDataRetentionCommandApiCommand.g.cs | 3 + ...ProjectDataRetentionCommandApiCommand.g.cs | 3 + .../Commands/DefaultApiGroupCommand.g.cs | 5 +- .../DeleteContainerCommandApiCommand.g.cs | 33 +- .../DeleteContainerFileCommandApiCommand.g.cs | 33 +- .../DeleteThreadMethodCommandApiCommand.g.cs | 3 + ...eleteWebhookEndpointCommandApiCommand.g.cs | 3 + ...storageconfigurationCommandApiCommand.g.cs | 3 + ...ganizationspendlimitCommandApiCommand.g.cs | 3 + ...eteprojectspendlimitCommandApiCommand.g.cs | 3 + .../Commands/EmbeddingsApiGroupCommand.g.cs | 5 +- ...dingsCreateEmbeddingCommandApiCommand.g.cs | 3 + .../Commands/EvalsApiGroupCommand.g.cs | 5 +- .../EvalsCancelEvalRunCommandApiCommand.g.cs | 3 + .../EvalsCreateEvalCommandApiCommand.g.cs | 3 + .../EvalsCreateEvalRunCommandApiCommand.g.cs | 58 +- .../EvalsDeleteEvalCommandApiCommand.g.cs | 3 + .../EvalsDeleteEvalRunCommandApiCommand.g.cs | 3 + .../EvalsGetEvalCommandApiCommand.g.cs | 3 + .../EvalsGetEvalRunCommandApiCommand.g.cs | 3 + ...GetEvalRunOutputItemCommandApiCommand.g.cs | 3 + ...etEvalRunOutputItemsCommandApiCommand.g.cs | 3 + .../EvalsGetEvalRunsCommandApiCommand.g.cs | 3 + .../EvalsListEvalsCommandApiCommand.g.cs | 3 + .../EvalsUpdateEvalCommandApiCommand.g.cs | 3 + .../Commands/FilesApiGroupCommand.g.cs | 5 +- .../FilesCreateFileCommandApiCommand.g.cs | 58 +- .../FilesDeleteFileCommandApiCommand.g.cs | 3 + .../FilesDownloadFileCommandApiCommand.g.cs | 3 + .../FilesListFilesCommandApiCommand.g.cs | 3 + .../FilesRetrieveFileCommandApiCommand.g.cs | 3 + .../Commands/FineTuningApiGroupCommand.g.cs | 5 +- ...gCancelFineTuningJobCommandApiCommand.g.cs | 3 + ...CheckpointPermissionCommandApiCommand.g.cs | 3 + ...gCreateFineTuningJobCommandApiCommand.g.cs | 62 +- ...CheckpointPermissionCommandApiCommand.g.cs | 3 + ...heckpointPermissionsCommandApiCommand.g.cs | 3 + ...ListFineTuningEventsCommandApiCommand.g.cs | 3 + ...TuningJobCheckpointsCommandApiCommand.g.cs | 3 + ...inatedFineTuningJobsCommandApiCommand.g.cs | 3 + ...ngPauseFineTuningJobCommandApiCommand.g.cs | 3 + ...gResumeFineTuningJobCommandApiCommand.g.cs | 3 + ...etrieveFineTuningJobCommandApiCommand.g.cs | 3 + .../FineTuningRunGraderCommandApiCommand.g.cs | 3 + ...TuningValidateGraderCommandApiCommand.g.cs | 3 + .../GetThreadMethodCommandApiCommand.g.cs | 3 + ...storageconfigurationCommandApiCommand.g.cs | 3 + ...ganizationspendlimitCommandApiCommand.g.cs | 3 + ...etprojectsafetyalertCommandApiCommand.g.cs | 3 + ...GetprojectspendlimitCommandApiCommand.g.cs | 3 + .../GetsafetycaseCommandApiCommand.g.cs | 3 + ...izationRoleAssignmentsApiGroupCommand.g.cs | 5 +- ...mentsAssignGroupRoleCommandApiCommand.g.cs | 3 + ...GroupRoleAssignmentsCommandApiCommand.g.cs | 3 + ...ntsRetrieveGroupRoleCommandApiCommand.g.cs | 3 + ...ntsUnassignGroupRoleCommandApiCommand.g.cs | 3 + ...oupUsersAddGroupUserCommandApiCommand.g.cs | 3 + .../Commands/GroupUsersApiGroupCommand.g.cs | 5 +- ...pUsersListGroupUsersCommandApiCommand.g.cs | 3 + ...UsersRemoveGroupUserCommandApiCommand.g.cs | 3 + ...ersRetrieveGroupUserCommandApiCommand.g.cs | 3 + .../Commands/GroupsApiGroupCommand.g.cs | 5 +- .../GroupsCreateGroupCommandApiCommand.g.cs | 3 + .../GroupsDeleteGroupCommandApiCommand.g.cs | 3 + .../GroupsListGroupsCommandApiCommand.g.cs | 3 + .../GroupsRetrieveGroupCommandApiCommand.g.cs | 3 + .../GroupsUpdateGroupCommandApiCommand.g.cs | 3 + .../Commands/HostedToolsApiGroupCommand.g.cs | 5 +- ...ostedToolPermissionsCommandApiCommand.g.cs | 3 + ...ostedToolPermissionsCommandApiCommand.g.cs | 3 + .../Commands/ImagesApiGroupCommand.g.cs | 5 +- ...sCreateImageAsStreamCommandApiCommand.g.cs | 3 + .../ImagesCreateImageCommandApiCommand.g.cs | 3 + ...ateImageEditAsStreamCommandApiCommand.g.cs | 3 + ...magesCreateImageEditCommandApiCommand.g.cs | 3 + ...CreateImageVariationCommandApiCommand.g.cs | 3 + .../Commands/InvitesApiGroupCommand.g.cs | 5 +- .../InvitesDeleteInviteCommandApiCommand.g.cs | 3 + .../InvitesInviteUserCommandApiCommand.g.cs | 57 +- .../InvitesListInvitesCommandApiCommand.g.cs | 3 + ...nvitesRetrieveInviteCommandApiCommand.g.cs | 3 + .../ListContainerFilesCommandApiCommand.g.cs | 3 + .../ListContainersCommandApiCommand.g.cs | 3 + ...istThreadItemsMethodCommandApiCommand.g.cs | 3 + .../ListThreadsMethodCommandApiCommand.g.cs | 3 + ...ListWebhookEndpointsCommandApiCommand.g.cs | 3 + ...istWebhookEventTypesCommandApiCommand.g.cs | 3 + ...torageconfigurationsCommandApiCommand.g.cs | 3 + ...iveAcceptLiveSessionCommandApiCommand.g.cs | 3 + .../Commands/LiveApiGroupCommand.g.cs | 5 +- .../LiveCreateLiveCommandApiCommand.g.cs | 3 + ...ownloadLiveRecordingCommandApiCommand.g.cs | 3 + .../LiveForkLiveSessionCommandApiCommand.g.cs | 3 + ...iveHangupLiveSessionCommandApiCommand.g.cs | 3 + ...LiveReferLiveSessionCommandApiCommand.g.cs | 3 + ...iveRejectLiveSessionCommandApiCommand.g.cs | 3 + .../Commands/ModelsApiGroupCommand.g.cs | 5 +- .../ModelsDeleteModelCommandApiCommand.g.cs | 3 + .../ModelsListModelsCommandApiCommand.g.cs | 3 + .../ModelsRetrieveModelCommandApiCommand.g.cs | 3 + .../Commands/ModerationsApiGroupCommand.g.cs | 5 +- ...ionsCreateModerationCommandApiCommand.g.cs | 3 + ...ctGroupRoleAssignmentsApiGroupCommand.g.cs | 5 +- ...signProjectGroupRoleCommandApiCommand.g.cs | 3 + ...GroupRoleAssignmentsCommandApiCommand.g.cs | 3 + ...ieveProjectGroupRoleCommandApiCommand.g.cs | 3 + ...signProjectGroupRoleCommandApiCommand.g.cs | 3 + ...roupsAddProjectGroupCommandApiCommand.g.cs | 3 + .../ProjectGroupsApiGroupCommand.g.cs | 5 +- ...upsListProjectGroupsCommandApiCommand.g.cs | 3 + ...psRemoveProjectGroupCommandApiCommand.g.cs | 3 + ...RetrieveProjectGroupCommandApiCommand.g.cs | 3 + ...ectUserRoleAssignmentsApiGroupCommand.g.cs | 5 +- ...ssignProjectUserRoleCommandApiCommand.g.cs | 3 + ...tUserRoleAssignmentsCommandApiCommand.g.cs | 3 + ...rieveProjectUserRoleCommandApiCommand.g.cs | 3 + ...ssignProjectUserRoleCommandApiCommand.g.cs | 3 + .../Commands/ProjectsApiGroupCommand.g.cs | 5 +- ...ojectsArchiveProjectCommandApiCommand.g.cs | 3 + ...rojectsCreateProjectCommandApiCommand.g.cs | 57 +- ...rojectServiceAccountCommandApiCommand.g.cs | 3 + ...ctsCreateProjectUserCommandApiCommand.g.cs | 3 + ...sDeleteProjectApiKeyCommandApiCommand.g.cs | 3 + ...jectModelPermissionsCommandApiCommand.g.cs | 3 + ...rojectServiceAccountCommandApiCommand.g.cs | 3 + ...ctsDeleteProjectUserCommandApiCommand.g.cs | 3 + ...tsListProjectApiKeysCommandApiCommand.g.cs | 3 + ...istProjectRateLimitsCommandApiCommand.g.cs | 3 + ...ojectServiceAccountsCommandApiCommand.g.cs | 3 + ...ectsListProjectUsersCommandApiCommand.g.cs | 3 + ...ProjectsListProjectsCommandApiCommand.g.cs | 3 + ...rojectsModifyProjectCommandApiCommand.g.cs | 3 + ...ctsModifyProjectUserCommandApiCommand.g.cs | 3 + ...etrieveProjectApiKeyCommandApiCommand.g.cs | 3 + ...jectsRetrieveProjectCommandApiCommand.g.cs | 3 + ...jectModelPermissionsCommandApiCommand.g.cs | 3 + ...rojectServiceAccountCommandApiCommand.g.cs | 3 + ...sRetrieveProjectUserCommandApiCommand.g.cs | 3 + ...jectModelPermissionsCommandApiCommand.g.cs | 3 + ...ateProjectRateLimitsCommandApiCommand.g.cs | 3 + ...rojectServiceAccountCommandApiCommand.g.cs | 3 + ...meAcceptRealtimeCallCommandApiCommand.g.cs | 3 + .../Commands/RealtimeApiGroupCommand.g.cs | 5 +- ...meCreateRealtimeCallCommandApiCommand.g.cs | 3 + ...ltimeCallWithRawBodyCommandApiCommand.g.cs | 3 + ...RealtimeClientSecretCommandApiCommand.g.cs | 3 + ...reateRealtimeSessionCommandApiCommand.g.cs | 3 + ...TranscriptionSessionCommandApiCommand.g.cs | 3 + ...nslationClientSecretCommandApiCommand.g.cs | 3 + ...meHangupRealtimeCallCommandApiCommand.g.cs | 3 + ...imeReferRealtimeCallCommandApiCommand.g.cs | 3 + ...meRejectRealtimeCallCommandApiCommand.g.cs | 3 + .../Commands/ResponsesApiGroupCommand.g.cs | 5 +- ...esBetaCancelResponseCommandApiCommand.g.cs | 3 + ...aCompactconversationCommandApiCommand.g.cs | 3 + ...eateResponseAsStreamCommandApiCommand.g.cs | 3 + ...esBetaCreateResponseCommandApiCommand.g.cs | 3 + ...esBetaDeleteResponseCommandApiCommand.g.cs | 33 +- ...onsesBetaGetResponseCommandApiCommand.g.cs | 3 + ...aGetinputtokencountsCommandApiCommand.g.cs | 3 + ...esBetaListInputItemsCommandApiCommand.g.cs | 3 + ...ponsesCancelResponseCommandApiCommand.g.cs | 3 + ...sCompactconversationCommandApiCommand.g.cs | 3 + ...eateResponseAsStreamCommandApiCommand.g.cs | 3 + ...ponsesCreateResponseCommandApiCommand.g.cs | 3 + ...ponsesDeleteResponseCommandApiCommand.g.cs | 33 +- ...ResponsesGetResponseCommandApiCommand.g.cs | 3 + ...sGetinputtokencountsCommandApiCommand.g.cs | 3 + ...ponsesListInputItemsCommandApiCommand.g.cs | 3 + .../RetrieveContainerCommandApiCommand.g.cs | 3 + ...etrieveContainerFileCommandApiCommand.g.cs | 3 + ...ContainerFileContentCommandApiCommand.g.cs | 7 +- ...rieveWebhookEndpointCommandApiCommand.g.cs | 3 + .../Commands/RolesApiGroupCommand.g.cs | 5 +- ...lesCreateProjectRoleCommandApiCommand.g.cs | 3 + .../RolesCreateRoleCommandApiCommand.g.cs | 3 + ...lesDeleteProjectRoleCommandApiCommand.g.cs | 3 + .../RolesDeleteRoleCommandApiCommand.g.cs | 3 + ...olesListProjectRolesCommandApiCommand.g.cs | 3 + .../RolesListRolesCommandApiCommand.g.cs | 3 + ...sRetrieveProjectRoleCommandApiCommand.g.cs | 3 + .../RolesRetrieveRoleCommandApiCommand.g.cs | 3 + ...lesUpdateProjectRoleCommandApiCommand.g.cs | 3 + .../RolesUpdateRoleCommandApiCommand.g.cs | 3 + ...ndpointSigningSecretCommandApiCommand.g.cs | 3 + .../Commands/SkillsApiGroupCommand.g.cs | 5 +- .../SkillsCreateSkillCommandApiCommand.g.cs | 3 + ...lsCreateSkillVersionCommandApiCommand.g.cs | 3 + .../SkillsDeleteSkillCommandApiCommand.g.cs | 3 + ...lsDeleteSkillVersionCommandApiCommand.g.cs | 3 + .../SkillsGetSkillCommandApiCommand.g.cs | 3 + ...tSkillContentAsBytesCommandApiCommand.g.cs | 3 + ...killsGetSkillContentCommandApiCommand.g.cs | 3 + ...killsGetSkillVersionCommandApiCommand.g.cs | 3 + ...ersionContentAsBytesCommandApiCommand.g.cs | 3 + ...tSkillVersionContentCommandApiCommand.g.cs | 3 + ...llsListSkillVersionsCommandApiCommand.g.cs | 3 + .../SkillsListSkillsCommandApiCommand.g.cs | 3 + ...eSkillDefaultVersionCommandApiCommand.g.cs | 3 + .../Commands/SpendAlertsApiGroupCommand.g.cs | 5 +- ...ganizationSpendAlertCommandApiCommand.g.cs | 3 + ...ateProjectSpendAlertCommandApiCommand.g.cs | 3 + ...ganizationSpendAlertCommandApiCommand.g.cs | 3 + ...eteProjectSpendAlertCommandApiCommand.g.cs | 3 + ...anizationSpendAlertsCommandApiCommand.g.cs | 3 + ...stProjectSpendAlertsCommandApiCommand.g.cs | 3 + ...ganizationSpendAlertCommandApiCommand.g.cs | 3 + ...eveProjectSpendAlertCommandApiCommand.g.cs | 3 + ...ganizationSpendAlertCommandApiCommand.g.cs | 3 + ...ateProjectSpendAlertCommandApiCommand.g.cs | 3 + .../SubmitToolOutputsRunRequestOptionSet.g.cs | 19 + .../TestWebhookEndpointCommandApiCommand.g.cs | 3 + ...pdateWebhookEndpointCommandApiCommand.g.cs | 3 + ...ganizationspendlimitCommandApiCommand.g.cs | 3 + ...ateprojectspendlimitCommandApiCommand.g.cs | 3 + ...UploadsAddUploadPartCommandApiCommand.g.cs | 3 + .../Commands/UploadsApiGroupCommand.g.cs | 5 +- .../UploadsCancelUploadCommandApiCommand.g.cs | 3 + ...ploadsCompleteUploadCommandApiCommand.g.cs | 3 + .../UploadsCreateUploadCommandApiCommand.g.cs | 3 + .../Commands/UsageApiGroupCommand.g.cs | 5 +- ...geUsageAudioSpeechesCommandApiCommand.g.cs | 3 + ...eAudioTranscriptionsCommandApiCommand.g.cs | 3 + ...eInterpreterSessionsCommandApiCommand.g.cs | 3 + ...sageUsageCompletionsCommandApiCommand.g.cs | 3 + .../UsageUsageCostsCommandApiCommand.g.cs | 3 + ...UsageUsageEmbeddingsCommandApiCommand.g.cs | 3 + ...UsageFileSearchCallsCommandApiCommand.g.cs | 3 + .../UsageUsageImagesCommandApiCommand.g.cs | 3 + ...sageUsageModerationsCommandApiCommand.g.cs | 3 + ...ageUsageVectorStoresCommandApiCommand.g.cs | 3 + ...eUsageWebSearchCallsCommandApiCommand.g.cs | 3 + ...izationRoleAssignmentsApiGroupCommand.g.cs | 5 +- ...nmentsAssignUserRoleCommandApiCommand.g.cs | 3 + ...tUserRoleAssignmentsCommandApiCommand.g.cs | 3 + ...entsRetrieveUserRoleCommandApiCommand.g.cs | 3 + ...entsUnassignUserRoleCommandApiCommand.g.cs | 3 + .../Commands/UsersApiGroupCommand.g.cs | 5 +- .../UsersDeleteUserCommandApiCommand.g.cs | 3 + .../UsersListUsersCommandApiCommand.g.cs | 3 + .../UsersModifyUserCommandApiCommand.g.cs | 3 + .../UsersRetrieveUserCommandApiCommand.g.cs | 3 + ...storageconfigurationCommandApiCommand.g.cs | 3 + .../Commands/VaultsApiGroupCommand.g.cs | 5 +- .../VaultsCreateVaultCommandApiCommand.g.cs | 3 + ...reateVaultCredentialCommandApiCommand.g.cs | 3 + .../VaultsDeleteVaultCommandApiCommand.g.cs | 3 + ...eleteVaultCredentialCommandApiCommand.g.cs | 3 + ...ListVaultCredentialsCommandApiCommand.g.cs | 3 + .../VaultsListVaultsCommandApiCommand.g.cs | 3 + .../VaultsRetrieveVaultCommandApiCommand.g.cs | 3 + ...rieveVaultCredentialCommandApiCommand.g.cs | 3 + ...otateVaultCredentialCommandApiCommand.g.cs | 3 + .../Commands/VectorStoresApiGroupCommand.g.cs | 5 +- ...VectorStoreFileBatchCommandApiCommand.g.cs | 3 + ...resCreateVectorStoreCommandApiCommand.g.cs | 60 +- ...VectorStoreFileBatchCommandApiCommand.g.cs | 59 +- ...reateVectorStoreFileCommandApiCommand.g.cs | 58 +- ...resDeleteVectorStoreCommandApiCommand.g.cs | 3 + ...eleteVectorStoreFileCommandApiCommand.g.cs | 3 + ...StoresGetVectorStoreCommandApiCommand.g.cs | 3 + ...VectorStoreFileBatchCommandApiCommand.g.cs | 3 + ...esGetVectorStoreFileCommandApiCommand.g.cs | 3 + ...esInVectorStoreBatchCommandApiCommand.g.cs | 3 + ...ListVectorStoreFilesCommandApiCommand.g.cs | 3 + ...oresListVectorStoresCommandApiCommand.g.cs | 3 + ...resModifyVectorStoreCommandApiCommand.g.cs | 3 + ...ctorStoreFileContentCommandApiCommand.g.cs | 3 + ...resSearchVectorStoreCommandApiCommand.g.cs | 3 + ...rStoreFileAttributesCommandApiCommand.g.cs | 3 + .../tryAGI.OpenAI.Realtime.AnyOf.2.g.cs | 32 +- ...OpenAI.Realtime.JsonConverters.AnyOf2.g.cs | 4 +- ...OpenAI.Realtime.JsonConverters.OneOf2.g.cs | 4 +- ...OpenAI.Realtime.JsonConverters.OneOf3.g.cs | 6 +- ...OpenAI.Realtime.JsonConverters.OneOf4.g.cs | 8 +- ...e.JsonConverters.RealtimeAudioFormats.g.cs | 6 +- ...onConverters.RealtimeConversationItem.g.cs | 18 +- ...ime.JsonConverters.RealtimeTruncation.g.cs | 4 +- ...meTurnDetectionRealtimeTurnDetection1.g.cs | 4 +- ...I.Realtime.JsonConverters.ServerEvent.g.cs | 94 +- ....JsonConverters.VoiceIdsOrCustomVoice.g.cs | 4 +- ...ealtime.JsonConverters.VoiceIdsShared.g.cs | 4 +- ...OpenAI.Realtime.JsonSerializerContext.g.cs | 7 +- ....Realtime.Models.RealtimeAudioFormats.g.cs | 48 +- ...ltime.Models.RealtimeConversationItem.g.cs | 144 +- ...AI.Realtime.Models.RealtimeTruncation.g.cs | 32 +- ...meTurnDetectionRealtimeTurnDetection1.g.cs | 32 +- ...GI.OpenAI.Realtime.Models.ServerEvent.g.cs | 752 +- ...Realtime.Models.VoiceIdsOrCustomVoice.g.cs | 32 +- ...OpenAI.Realtime.Models.VoiceIdsShared.g.cs | 32 +- .../tryAGI.OpenAI.Realtime.OneOf.2.g.cs | 32 +- .../tryAGI.OpenAI.Realtime.OneOf.3.g.cs | 48 +- .../tryAGI.OpenAI.Realtime.OneOf.4.g.cs | 64 +- ...tryAGI.OpenAI.Realtime.OptionsSupport.g.cs | 15 +- .../Generated/autosdk.generated-examples.json | 40 +- ...I.OpenAI.Agents.JsonSerializerContext.g.cs | 3 - ...ryAGI.OpenAI.AgentsClient.CreateAgent.g.cs | 10 +- ...entsClient.CreateAgentEnvironmentFile.g.cs | 12 +- ...Client.CreateAgentEnvironmentTemplate.g.cs | 10 +- ...penAI.AgentsClient.CreateAgentSession.g.cs | 10 +- ...entsClient.CreateAgentSessionAsStream.g.cs | 10 +- ...AgentsClient.CreateAgentSessionEvents.g.cs | 12 +- ...ryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs | 12 +- ...Client.DeleteAgentEnvironmentTemplate.g.cs | 12 +- ...penAI.AgentsClient.DeleteAgentSession.g.cs | 12 +- ...entsClient.DeleteAgentSessionArtifact.g.cs | 14 +- ...gentsClient.ListAgentEnvironmentFiles.g.cs | 12 +- ...sClient.ListAgentEnvironmentTemplates.g.cs | 10 +- ...gentsClient.ListAgentSessionArtifacts.g.cs | 12 +- ...I.AgentsClient.ListAgentSessionEvents.g.cs | 12 +- ...AI.AgentsClient.ListAgentSessionItems.g.cs | 12 +- ...sClient.ListAgentSessionSubagentItems.g.cs | 14 +- ...ent.ListAgentSessionSubagentTurnItems.g.cs | 16 +- ...sClient.ListAgentSessionSubagentTurns.g.cs | 14 +- ...gentsClient.ListAgentSessionSubagents.g.cs | 12 +- ...AI.AgentsClient.ListAgentSessionTurns.g.cs | 12 +- ...OpenAI.AgentsClient.ListAgentSessions.g.cs | 10 +- ...tryAGI.OpenAI.AgentsClient.ListAgents.g.cs | 10 +- ...AGI.OpenAI.AgentsClient.RetrieveAgent.g.cs | 12 +- ...AgentsClient.RetrieveAgentEnvironment.g.cs | 12 +- ...ient.RetrieveAgentEnvironmentTemplate.g.cs | 12 +- ...nAI.AgentsClient.RetrieveAgentSession.g.cs | 12 +- ...tsClient.RetrieveAgentSessionArtifact.g.cs | 14 +- ...t.RetrieveAgentSessionArtifactContent.g.cs | 28 +- ...tsClient.RetrieveAgentSessionSubagent.g.cs | 14 +- ...ient.RetrieveAgentSessionSubagentTurn.g.cs | 16 +- ...AgentsClient.RetrieveAgentSessionTurn.g.cs | 14 +- ...ryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs | 12 +- ...Client.UpdateAgentEnvironmentTemplate.g.cs | 12 +- ...penAI.AgentsClient.UpdateAgentSession.g.cs | 12 +- .../Generated/tryAGI.OpenAI.AllOf.2.g.cs | 32 +- .../Generated/tryAGI.OpenAI.AnyOf.2.g.cs | 32 +- .../Generated/tryAGI.OpenAI.AnyOf.3.g.cs | 48 +- .../Generated/tryAGI.OpenAI.AnyOf.58.g.cs | 928 +- ...enAI.Assistants.JsonSerializerContext.g.cs | 3 - ...AGI.OpenAI.AssistantsClient.CancelRun.g.cs | 14 +- ...OpenAI.AssistantsClient.CreateMessage.g.cs | 12 +- ...AGI.OpenAI.AssistantsClient.CreateRun.g.cs | 42 +- ...AI.AssistantsClient.CreateRunAsStream.g.cs | 533 + ....OpenAI.AssistantsClient.CreateThread.g.cs | 10 +- ...I.AssistantsClient.CreateThreadAndRun.g.cs | 39 +- ...antsClient.CreateThreadAndRunAsStream.g.cs | 509 + ...OpenAI.AssistantsClient.DeleteMessage.g.cs | 14 +- ....OpenAI.AssistantsClient.DeleteThread.g.cs | 12 +- ...GI.OpenAI.AssistantsClient.GetMessage.g.cs | 14 +- ...tryAGI.OpenAI.AssistantsClient.GetRun.g.cs | 14 +- ...GI.OpenAI.AssistantsClient.GetRunStep.g.cs | 16 +- ...AGI.OpenAI.AssistantsClient.GetThread.g.cs | 12 +- ....OpenAI.AssistantsClient.ListMessages.g.cs | 12 +- ....OpenAI.AssistantsClient.ListRunSteps.g.cs | 14 +- ...yAGI.OpenAI.AssistantsClient.ListRuns.g.cs | 12 +- ...OpenAI.AssistantsClient.ModifyMessage.g.cs | 14 +- ...AGI.OpenAI.AssistantsClient.ModifyRun.g.cs | 14 +- ....OpenAI.AssistantsClient.ModifyThread.g.cs | 12 +- ...ssistantsClient.SubmitToolOuputsToRun.g.cs | 27 +- ...sClient.SubmitToolOuputsToRunAsStream.g.cs | 438 + ...GI.OpenAI.Audio.JsonSerializerContext.g.cs | 3 - ...ryAGI.OpenAI.AudioClient.CreateSpeech.g.cs | 20 +- ...AudioClient.CreateSpeechAsEventStream.g.cs | 10 +- ...penAI.AudioClient.CreateTranscription.g.cs | 60 +- ...dioClient.CreateTranscriptionAsStream.g.cs | 20 +- ...AudioClient.CreateTranscriptionAsText.g.cs | 30 +- ....OpenAI.AudioClient.CreateTranslation.g.cs | 30 +- ...I.AudioClient.CreateTranslationAsText.g.cs | 30 +- ...tryAGI.OpenAI.AudioClient.CreateVoice.g.cs | 30 +- ...OpenAI.AudioClient.CreateVoiceConsent.g.cs | 30 +- ...OpenAI.AudioClient.DeleteVoiceConsent.g.cs | 12 +- ...GI.OpenAI.AudioClient.GetVoiceConsent.g.cs | 12 +- ....OpenAI.AudioClient.ListVoiceConsents.g.cs | 10 +- ...OpenAI.AudioClient.UpdateVoiceConsent.g.cs | 12 +- ...penAI.AuditLogs.JsonSerializerContext.g.cs | 3 - ....OpenAI.AuditLogsClient.ListAuditLogs.g.cs | 10 +- .../tryAGI.OpenAI.AutoSDKHttpResponse.g.cs | 4 +- ...GI.OpenAI.Batch.JsonSerializerContext.g.cs | 3 - ...tryAGI.OpenAI.BatchClient.CancelBatch.g.cs | 12 +- ...tryAGI.OpenAI.BatchClient.CreateBatch.g.cs | 10 +- ...tryAGI.OpenAI.BatchClient.ListBatches.g.cs | 10 +- ...yAGI.OpenAI.BatchClient.RetrieveBatch.g.cs | 12 +- ...AI.Certificates.JsonSerializerContext.g.cs | 3 - ...ient.ActivateOrganizationCertificates.g.cs | 10 +- ...tesClient.ActivateProjectCertificates.g.cs | 12 +- ...nt.DeactivateOrganizationCertificates.g.cs | 10 +- ...sClient.DeactivateProjectCertificates.g.cs | 12 +- ....CertificatesClient.DeleteCertificate.g.cs | 12 +- ...nAI.CertificatesClient.GetCertificate.g.cs | 12 +- ...esClient.ListOrganizationCertificates.g.cs | 10 +- ...ficatesClient.ListProjectCertificates.g.cs | 12 +- ....CertificatesClient.ModifyCertificate.g.cs | 12 +- ....CertificatesClient.UploadCertificate.g.cs | 10 +- ...AGI.OpenAI.Chat.JsonSerializerContext.g.cs | 3 - ...penAI.ChatClient.CreateChatCompletion.g.cs | 10 +- ...atClient.CreateChatCompletionAsStream.g.cs | 10 +- ...penAI.ChatClient.DeleteChatCompletion.g.cs | 12 +- ...I.OpenAI.ChatClient.GetChatCompletion.g.cs | 12 +- ....ChatClient.GetChatCompletionMessages.g.cs | 20 +- ...OpenAI.ChatClient.ListChatCompletions.g.cs | 10 +- ...penAI.ChatClient.UpdateChatCompletion.g.cs | 12 +- ...nAI.Completions.JsonSerializerContext.g.cs | 3 - ...AI.CompletionsClient.CreateCompletion.g.cs | 10 +- ...I.Conversations.JsonSerializerContext.g.cs | 3 - ...onversationsClient.CreateConversation.g.cs | 10 +- ...sationsClient.CreateConversationItems.g.cs | 12 +- ...onversationsClient.DeleteConversation.g.cs | 12 +- ...rsationsClient.DeleteConversationItem.g.cs | 14 +- ...I.ConversationsClient.GetConversation.g.cs | 12 +- ...nversationsClient.GetConversationItem.g.cs | 14 +- ...ersationsClient.ListConversationItems.g.cs | 12 +- ...onversationsClient.UpdateConversation.g.cs | 12 +- ...I.DataRetention.JsonSerializerContext.g.cs | 3 - ...ent.RetrieveOrganizationDataRetention.g.cs | 10 +- ...onClient.RetrieveProjectDataRetention.g.cs | 12 +- ...lient.UpdateOrganizationDataRetention.g.cs | 10 +- ...tionClient.UpdateProjectDataRetention.g.cs | 12 +- ...enAI.Embeddings.JsonSerializerContext.g.cs | 3 - ...enAI.EmbeddingsClient.CreateEmbedding.g.cs | 10 +- ...GI.OpenAI.Evals.JsonSerializerContext.g.cs | 3 - ...yAGI.OpenAI.EvalsClient.CancelEvalRun.g.cs | 14 +- .../tryAGI.OpenAI.EvalsClient.CreateEval.g.cs | 10 +- ...yAGI.OpenAI.EvalsClient.CreateEvalRun.g.cs | 12 +- .../tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs | 12 +- ...yAGI.OpenAI.EvalsClient.DeleteEvalRun.g.cs | 14 +- .../tryAGI.OpenAI.EvalsClient.GetEval.g.cs | 12 +- .../tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs | 14 +- ...enAI.EvalsClient.GetEvalRunOutputItem.g.cs | 16 +- ...nAI.EvalsClient.GetEvalRunOutputItems.g.cs | 14 +- ...tryAGI.OpenAI.EvalsClient.GetEvalRuns.g.cs | 12 +- .../tryAGI.OpenAI.EvalsClient.ListEvals.g.cs | 10 +- .../tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs | 12 +- ...GI.OpenAI.Files.JsonSerializerContext.g.cs | 3 - .../tryAGI.OpenAI.FilesClient.CreateFile.g.cs | 30 +- .../tryAGI.OpenAI.FilesClient.DeleteFile.g.cs | 12 +- ...ryAGI.OpenAI.FilesClient.DownloadFile.g.cs | 24 +- .../tryAGI.OpenAI.FilesClient.ListFiles.g.cs | 10 +- ...ryAGI.OpenAI.FilesClient.RetrieveFile.g.cs | 12 +- ...enAI.FineTuning.JsonSerializerContext.g.cs | 3 - ....FineTuningClient.CancelFineTuningJob.g.cs | 12 +- ....CreateFineTuningCheckpointPermission.g.cs | 12 +- ....FineTuningClient.CreateFineTuningJob.g.cs | 10 +- ....DeleteFineTuningCheckpointPermission.g.cs | 14 +- ...t.ListFineTuningCheckpointPermissions.g.cs | 12 +- ...FineTuningClient.ListFineTuningEvents.g.cs | 12 +- ...ngClient.ListFineTuningJobCheckpoints.g.cs | 12 +- ...ingClient.ListPaginatedFineTuningJobs.g.cs | 10 +- ...I.FineTuningClient.PauseFineTuningJob.g.cs | 12 +- ....FineTuningClient.ResumeFineTuningJob.g.cs | 12 +- ...ineTuningClient.RetrieveFineTuningJob.g.cs | 12 +- ...AGI.OpenAI.FineTuningClient.RunGrader.g.cs | 10 +- ...penAI.FineTuningClient.ValidateGrader.g.cs | 10 +- ...RoleAssignments.JsonSerializerContext.g.cs | 3 - ...RoleAssignmentsClient.AssignGroupRole.g.cs | 12 +- ...nmentsClient.ListGroupRoleAssignments.g.cs | 12 +- ...leAssignmentsClient.RetrieveGroupRole.g.cs | 14 +- ...leAssignmentsClient.UnassignGroupRole.g.cs | 14 +- ...enAI.GroupUsers.JsonSerializerContext.g.cs | 3 - ....OpenAI.GroupUsersClient.AddGroupUser.g.cs | 12 +- ...penAI.GroupUsersClient.ListGroupUsers.g.cs | 12 +- ...enAI.GroupUsersClient.RemoveGroupUser.g.cs | 14 +- ...AI.GroupUsersClient.RetrieveGroupUser.g.cs | 14 +- ...I.OpenAI.Groups.JsonSerializerContext.g.cs | 3 - ...ryAGI.OpenAI.GroupsClient.CreateGroup.g.cs | 10 +- ...ryAGI.OpenAI.GroupsClient.DeleteGroup.g.cs | 12 +- ...tryAGI.OpenAI.GroupsClient.ListGroups.g.cs | 10 +- ...AGI.OpenAI.GroupsClient.RetrieveGroup.g.cs | 12 +- ...ryAGI.OpenAI.GroupsClient.UpdateGroup.g.cs | 12 +- ...nAI.HostedTools.JsonSerializerContext.g.cs | 3 - ....RetrieveProjectHostedToolPermissions.g.cs | 12 +- ...nt.UpdateProjectHostedToolPermissions.g.cs | 12 +- ...GI.OpenAI.IAssistantsClient.CreateRun.g.cs | 4 - ...I.IAssistantsClient.CreateRunAsStream.g.cs | 105 + ....IAssistantsClient.CreateThreadAndRun.g.cs | 4 - ...antsClient.CreateThreadAndRunAsStream.g.cs | 96 + ...ssistantsClient.SubmitToolOuputsToRun.g.cs | 2 - ...sClient.SubmitToolOuputsToRunAsStream.g.cs | 43 + ...enAI.IAudioClient.CreateTranscription.g.cs | 10 +- ...IChatClient.GetChatCompletionMessages.g.cs | 4 +- ....OpenAI.IOpenAiClient.DeleteContainer.g.cs | 4 +- ...nAI.IOpenAiClient.DeleteContainerFile.g.cs | 4 +- ...AiClient.RetrieveContainerFileContent.g.cs | 18 +- ...I.IResponsesClient.BetaDeleteResponse.g.cs | 4 +- ...penAI.IResponsesClient.DeleteResponse.g.cs | 4 +- ...I.OpenAI.Images.JsonSerializerContext.g.cs | 3 - ...ryAGI.OpenAI.ImagesClient.CreateImage.g.cs | 10 +- ...enAI.ImagesClient.CreateImageAsStream.g.cs | 10 +- ...I.OpenAI.ImagesClient.CreateImageEdit.g.cs | 10 +- ....ImagesClient.CreateImageEditAsStream.g.cs | 10 +- ...nAI.ImagesClient.CreateImageVariation.g.cs | 30 +- ....OpenAI.Invites.JsonSerializerContext.g.cs | 3 - ...AGI.OpenAI.InvitesClient.DeleteInvite.g.cs | 12 +- ...ryAGI.OpenAI.InvitesClient.InviteUser.g.cs | 10 +- ...yAGI.OpenAI.InvitesClient.ListInvites.g.cs | 10 +- ...I.OpenAI.InvitesClient.RetrieveInvite.g.cs | 12 +- ...nConverters.AdminApiKeyCreateResponse.g.cs | 4 +- ...I.JsonConverters.AgentContentResource.g.cs | 4 +- ...sonConverters.AgentOutputItemResource.g.cs | 24 +- ...I.JsonConverters.AgentToolConfigParam.g.cs | 10 +- ...enAI.JsonConverters.AgentToolResource.g.cs | 8 +- .../tryAGI.OpenAI.JsonConverters.AllOf2.g.cs | 4 +- ...yAGI.OpenAI.JsonConverters.Annotation.g.cs | 8 +- ...penAI.JsonConverters.AnnotationsItem3.g.cs | 4 +- ...penAI.JsonConverters.AnnotationsItem4.g.cs | 6 +- .../tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs | 6 +- .../tryAGI.OpenAI.JsonConverters.AnyOf58.g.cs | 116 +- ...onConverters.ApplyPatchOperationParam.g.cs | 6 +- ...I.JsonConverters.AssistantStreamEvent.g.cs | 12 +- ...ers.AssistantsApiResponseFormatOption.g.cs | 8 +- ...verters.AssistantsApiToolChoiceOption.g.cs | 4 +- ....OpenAI.JsonConverters.BetaAnnotation.g.cs | 8 +- ...nverters.BetaApplyPatchOperationParam.g.cs | 6 +- ...nAI.JsonConverters.BetaComputerAction.g.cs | 18 +- ...rs.BetaComputerToolCallOutputResource.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.BetaContent.g.cs | 4 +- ....JsonConverters.BetaConversationParam.g.cs | 4 +- ...ers.BetaCreateModelResponseProperties.g.cs | 4 +- ...nAI.JsonConverters.BetaCreateResponse.g.cs | 6 +- ...ters.BetaCustomToolCallOutputResource.g.cs | 4 +- ...Converters.BetaCustomToolCallResource.g.cs | 4 +- ...ters.BetaDeleteResponseResponseObject.g.cs | 53 + ...aDeleteResponseResponseObjectNullable.g.cs | 60 + ...AGI.OpenAI.JsonConverters.BetaFilters.g.cs | 4 +- ...s.BetaFunctionAndCustomToolCallOutput.g.cs | 6 +- ...taFunctionShellCallOutputOutcomeParam.g.cs | 4 +- ...rs.BetaFunctionToolCallOutputResource.g.cs | 4 +- ...nverters.BetaFunctionToolCallResource.g.cs | 4 +- ...penAI.JsonConverters.BetaInputContent.g.cs | 6 +- ...I.OpenAI.JsonConverters.BetaInputItem.g.cs | 12 +- ...onConverters.BetaInputMessageResource.g.cs | 4 +- ....OpenAI.JsonConverters.BetaInputParam.g.cs | 4 +- ...tryAGI.OpenAI.JsonConverters.BetaItem.g.cs | 62 +- ...I.OpenAI.JsonConverters.BetaItemField.g.cs | 62 +- ...penAI.JsonConverters.BetaItemResource.g.cs | 66 +- ...I.JsonConverters.BetaMCPToolCallError.g.cs | 6 +- ...nConverters.BetaMisalignmentErrorType.g.cs | 4 +- ...JsonConverters.BetaModelIdsCompaction.g.cs | 6 +- ....JsonConverters.BetaModelIdsResponses.g.cs | 4 +- ...nAI.JsonConverters.BetaModelIdsShared.g.cs | 4 +- ...enAI.JsonConverters.BetaOutputContent.g.cs | 6 +- ....OpenAI.JsonConverters.BetaOutputItem.g.cs | 62 +- ...onConverters.BetaOutputMessageContent.g.cs | 4 +- ...AI.JsonConverters.BetaPersonalityEnum.g.cs | 4 +- ...Converters.BetaPromptCacheDiagnostics.g.cs | 8 +- ....JsonConverters.BetaReasoningModeEnum.g.cs | 4 +- ...GI.OpenAI.JsonConverters.BetaResponse.g.cs | 6 +- ...Converters.BetaResponseSteerErrorCode.g.cs | 4 +- ...JsonConverters.BetaResponseSteerInput.g.cs | 4 +- ...Converters.BetaResponseSteerInputItem.g.cs | 4 +- ...erters.BetaResponseSteerPendingReason.g.cs | 4 +- ...erters.BetaResponseSteerRequiredInput.g.cs | 14 +- ...sonConverters.BetaResponseStreamEvent.g.cs | 118 +- ...onConverters.BetaResponsesClientEvent.g.cs | 6 +- ...etaResponsesClientEventResponseCreate.g.cs | 4 +- ...onConverters.BetaResponsesServerEvent.g.cs | 128 +- ...ers.BetaResponsesWebSocketStreamEvent.g.cs | 4 +- ...s.BetaTextResponseFormatConfiguration.g.cs | 6 +- ...tryAGI.OpenAI.JsonConverters.BetaTool.g.cs | 32 +- ...nAI.JsonConverters.BetaToolCallCaller.g.cs | 4 +- ...sonConverters.BetaToolCallCallerParam.g.cs | 4 +- ...AI.JsonConverters.BetaToolChoiceParam.g.cs | 18 +- ...onverters.BetaWebSearchToolCallAction.g.cs | 6 +- ...tDataItemContentPartsVariant1ItemType.g.cs | 53 + ...mContentPartsVariant1ItemTypeNullable.g.cs | 60 + ...ChatCompletionMessageListDataItemRole.g.cs | 53 + ...letionMessageListDataItemRoleNullable.g.cs | 60 + ...rs.ChatCompletionMessageToolCallsItem.g.cs | 4 +- ...ionRequestAssistantMessageContentPart.g.cs | 4 +- ...nverters.ChatCompletionRequestMessage.g.cs | 12 +- ...letionRequestSystemMessageContentPart.g.cs | 2 +- ...mpletionRequestToolMessageContentPart.g.cs | 2 +- ...mpletionRequestUserMessageContentPart.g.cs | 8 +- ...erters.ChatCompletionToolChoiceOption.g.cs | 8 +- ...nverters.ChunkingStrategyRequestParam.g.cs | 4 +- ....OpenAI.JsonConverters.ComputerAction.g.cs | 18 +- ...erters.ComputerToolCallOutputResource.g.cs | 4 +- ...tryAGI.OpenAI.JsonConverters.Content5.g.cs | 4 +- ...GI.OpenAI.JsonConverters.ContentItem3.g.cs | 18 +- ...GI.OpenAI.JsonConverters.ContentItem4.g.cs | 4 +- ...GI.OpenAI.JsonConverters.ContentItem5.g.cs | 4 +- ...GI.OpenAI.JsonConverters.ContentItem6.g.cs | 6 +- ...GI.OpenAI.JsonConverters.ContentItem7.g.cs | 20 +- ...GI.OpenAI.JsonConverters.ContentItem8.g.cs | 20 +- ...AI.JsonConverters.ContentVariant1Item.g.cs | 6 +- ...I.JsonConverters.ContentVariant1Item2.g.cs | 6 +- ...penAI.JsonConverters.ConversationItem.g.cs | 58 +- ...enAI.JsonConverters.ConversationParam.g.cs | 4 +- ...onverters.CreateChatCompletionRequest.g.cs | 4 +- ....OpenAI.JsonConverters.CreateEvalItem.g.cs | 4 +- ....CreateMcpOauthTokenEndpointAuthParam.g.cs | 6 +- ...verters.CreateModelResponseProperties.g.cs | 4 +- ....OpenAI.JsonConverters.CreateResponse.g.cs | 6 +- ...sonConverters.CreateSessionInputParam.g.cs | 4 +- ...rters.CreateSpeechResponseStreamEvent.g.cs | 4 +- ...ranscriptionResponseDiarizedJsonUsage.g.cs | 4 +- ...reateTranscriptionResponseStreamEvent.g.cs | 6 +- ...erters.CreateVaultCredentialAuthParam.g.cs | 6 +- ...nverters.CustomToolCallOutputResource.g.cs | 4 +- ...JsonConverters.CustomToolCallResource.g.cs | 4 +- ...nAI.JsonConverters.DelegationVariant1.g.cs | 4 +- ...AI.JsonConverters.DelegationVariant12.g.cs | 4 +- ...AI.JsonConverters.DelegationVariant13.g.cs | 4 +- ...AI.JsonConverters.DelegationVariant14.g.cs | 4 +- ...ers.DeleteContainerFileResponseObject.g.cs | 53 + ...teContainerFileResponseObjectNullable.g.cs | 60 + ...verters.DeleteContainerResponseObject.g.cs | 53 + ...DeleteContainerResponseObjectNullable.g.cs | 60 + ...nverters.DeleteResponseResponseObject.g.cs | 53 + ....DeleteResponseResponseObjectNullable.g.cs | 60 + ...AI.JsonConverters.DeletedConversation.g.cs | 2 +- ...penAI.JsonConverters.EnvironmentParam.g.cs | 6 +- ...AI.JsonConverters.EnvironmentResource.g.cs | 6 +- ...AI.JsonConverters.EnvironmentVariant1.g.cs | 6 +- ...I.JsonConverters.EnvironmentVariant12.g.cs | 4 +- ...I.JsonConverters.EnvironmentVariant13.g.cs | 4 +- ...I.JsonConverters.EnvironmentVariant14.g.cs | 6 +- ...I.JsonConverters.EnvironmentVariant15.g.cs | 4 +- ...I.JsonConverters.EnvironmentVariant16.g.cs | 4 +- ...I.JsonConverters.EvalGraderLabelModel.g.cs | 2 +- ...penAI.JsonConverters.EvalGraderPython.g.cs | 4 +- ...I.JsonConverters.EvalGraderScoreModel.g.cs | 4 +- ....JsonConverters.EvalGraderStringCheck.g.cs | 2 +- ...onConverters.EvalGraderTextSimilarity.g.cs | 4 +- ...OpenAI.JsonConverters.EvalItemContent.g.cs | 4 +- ...AI.JsonConverters.EvalItemContentItem.g.cs | 10 +- ...tryAGI.OpenAI.JsonConverters.Filters2.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.FiltersItem.g.cs | 32 +- ...GI.OpenAI.JsonConverters.FiltersItem2.g.cs | 32 +- ...ChatCompletionRequestAssistantMessage.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Format2.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Format3.g.cs | 4 +- ...rters.FunctionAndCustomToolCallOutput.g.cs | 6 +- ...sonConverters.FunctionCallOutputParam.g.cs | 4 +- ...Converters.FunctionCallOutputResource.g.cs | 4 +- ...s.FunctionShellCallOutputOutcomeParam.g.cs | 4 +- ...erters.FunctionToolCallOutputResource.g.cs | 4 +- ...onConverters.FunctionToolCallResource.g.cs | 4 +- ...Converters.HostedEnvironmentFileParam.g.cs | 4 +- ...verters.HostedEnvironmentFileResource.g.cs | 4 +- ...enAI.JsonConverters.HostedPluginParam.g.cs | 2 +- ...I.JsonConverters.HostedPluginResource.g.cs | 2 +- ...penAI.JsonConverters.HostedSkillParam.g.cs | 4 +- ...AI.JsonConverters.HostedSkillResource.g.cs | 4 +- ...Converters.HostedTemplateFileResource.g.cs | 4 +- ...onverters.HostedTemplateSkillResource.g.cs | 4 +- ...I.JsonConverters.ImageEditStreamEvent.g.cs | 4 +- ...AI.JsonConverters.ImageGenStreamEvent.g.cs | 4 +- ...onverters.InlineCapabilitySourceParam.g.cs | 2 +- .../tryAGI.OpenAI.JsonConverters.Input.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Input4.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Input5.g.cs | 4 +- ...GI.OpenAI.JsonConverters.InputContent.g.cs | 6 +- ...enAI.JsonConverters.InputContentParam.g.cs | 4 +- ...I.JsonConverters.InputContentResource.g.cs | 4 +- ...ryAGI.OpenAI.JsonConverters.InputItem.g.cs | 12 +- ...I.JsonConverters.InputMessageResource.g.cs | 4 +- ...yAGI.OpenAI.JsonConverters.InputParam.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Item.g.cs | 56 +- ...ryAGI.OpenAI.JsonConverters.ItemField.g.cs | 56 +- ...GI.OpenAI.JsonConverters.ItemResource.g.cs | 60 +- ...OpenAI.JsonConverters.LiveAudioFormat.g.cs | 6 +- ...OpenAI.JsonConverters.LiveClientEvent.g.cs | 22 +- ...AI.JsonConverters.LiveForkClientEvent.g.cs | 22 +- ...OpenAI.JsonConverters.LiveInitialItem.g.cs | 6 +- ...OpenAI.JsonConverters.LiveServerEvent.g.cs | 2 +- ...penAI.JsonConverters.LiveServerEvent2.g.cs | 44 +- ...sonConverters.LiveSidebandClientEvent.g.cs | 18 +- ...sonConverters.LiveSidebandServerEvent.g.cs | 30 +- ...penAI.JsonConverters.MCPToolCallError.g.cs | 6 +- ...ers.McpOauthTokenEndpointAuthResource.g.cs | 6 +- ...sonConverters.McpTransportConfigParam.g.cs | 4 +- ...I.JsonConverters.McpTransportResource.g.cs | 4 +- ...JsonConverters.MessageContentResource.g.cs | 6 +- ...nAI.JsonConverters.MessageStreamEvent.g.cs | 10 +- ....JsonConverters.MisalignmentErrorType.g.cs | 4 +- ...tryAGI.OpenAI.JsonConverters.ModelIds.g.cs | 4 +- ...nAI.JsonConverters.ModelIdsCompaction.g.cs | 6 +- ...GI.OpenAI.JsonConverters.ModelIdsLive.g.cs | 4 +- ...enAI.JsonConverters.ModelIdsResponses.g.cs | 4 +- ....OpenAI.JsonConverters.ModelIdsShared.g.cs | 4 +- ...I.OpenAI.JsonConverters.NetworkPolicy.g.cs | 4 +- ....OpenAI.JsonConverters.NetworkPolicy2.g.cs | 4 +- ....OpenAI.JsonConverters.NetworkPolicy3.g.cs | 4 +- ....OpenAI.JsonConverters.NetworkPolicy4.g.cs | 4 +- ....OpenAI.JsonConverters.NetworkPolicy5.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.OneOf2.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.OneOf3.g.cs | 6 +- .../tryAGI.OpenAI.JsonConverters.OneOf4.g.cs | 8 +- .../tryAGI.OpenAI.JsonConverters.OneOf5.g.cs | 10 +- ...ryAGI.OpenAI.JsonConverters.Operation.g.cs | 6 +- ...yAGI.OpenAI.JsonConverters.Operation2.g.cs | 6 +- .../tryAGI.OpenAI.JsonConverters.Outcome.g.cs | 4 +- ...tryAGI.OpenAI.JsonConverters.Outcome2.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Output.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Output5.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Output9.g.cs | 4 +- ...I.OpenAI.JsonConverters.OutputContent.g.cs | 6 +- ...yAGI.OpenAI.JsonConverters.OutputItem.g.cs | 56 +- ...I.JsonConverters.OutputMessageContent.g.cs | 4 +- ...nAI.JsonConverters.OutputVariant2Item.g.cs | 6 +- ...AI.JsonConverters.OutputVariant2Item2.g.cs | 6 +- ...AI.JsonConverters.OutputsVariant1Item.g.cs | 4 +- ...I.JsonConverters.OutputsVariant1Item2.g.cs | 4 +- ...verters.PersistedAgentToolConfigParam.g.cs | 10 +- ...Converters.PersistedAgentToolResource.g.cs | 10 +- ...ters.PersistedMcpTransportConfigParam.g.cs | 4 +- ...verters.PersistedMcpTransportResource.g.cs | 4 +- ...OpenAI.JsonConverters.PersonalityEnum.g.cs | 4 +- ...JsonConverters.PromptCacheDiagnostics.g.cs | 8 +- ...tryAGI.OpenAI.JsonConverters.Provider.g.cs | 6 +- ...ryAGI.OpenAI.JsonConverters.Provider2.g.cs | 6 +- ...ryAGI.OpenAI.JsonConverters.Provider3.g.cs | 6 +- ...I.JsonConverters.RealtimeAudioFormats.g.cs | 6 +- ...AI.JsonConverters.RealtimeClientEvent.g.cs | 22 +- ...onConverters.RealtimeConversationItem.g.cs | 18 +- ...AI.JsonConverters.RealtimeServerEvent.g.cs | 92 +- ...erters.RealtimeTranslationClientEvent.g.cs | 6 +- ...erters.RealtimeTranslationServerEvent.g.cs | 14 +- ...nAI.JsonConverters.RealtimeTruncation.g.cs | 4 +- ...meTurnDetectionRealtimeTurnDetection1.g.cs | 4 +- ...enAI.JsonConverters.ReasoningModeEnum.g.cs | 4 +- ...tryAGI.OpenAI.JsonConverters.Response.g.cs | 6 +- ...ers.ResponseCompactionCompactingEvent.g.cs | 2 +- ....OpenAI.JsonConverters.ResponseFormat.g.cs | 6 +- ...JsonConverters.ResponseSteerErrorCode.g.cs | 4 +- ...nAI.JsonConverters.ResponseSteerInput.g.cs | 4 +- ...JsonConverters.ResponseSteerInputItem.g.cs | 4 +- ...Converters.ResponseSteerPendingReason.g.cs | 4 +- ...Converters.ResponseSteerRequiredInput.g.cs | 14 +- ...AI.JsonConverters.ResponseStreamEvent.g.cs | 118 +- ...I.JsonConverters.ResponsesClientEvent.g.cs | 4 +- ...rs.ResponsesClientEventResponseCreate.g.cs | 4 +- ...I.JsonConverters.ResponsesServerEvent.g.cs | 124 +- ...verters.ResponsesWebSocketStreamEvent.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.ResultsItem.g.cs | 22 +- ...GI.OpenAI.JsonConverters.ResultsItem2.g.cs | 4 +- ....RotateMcpOauthTokenEndpointAuthParam.g.cs | 4 +- ...erters.RotateVaultCredentialAuthParam.g.cs | 6 +- ...nAI.JsonConverters.RunStepStreamEvent.g.cs | 14 +- ....OpenAI.JsonConverters.RunStreamEvent.g.cs | 20 +- ...tryAGI.OpenAI.JsonConverters.Session2.g.cs | 4 +- ...GI.OpenAI.JsonConverters.SessionEvent.g.cs | 62 +- ...enAI.JsonConverters.SessionInputParam.g.cs | 6 +- ...verters.SessionRequiredActionResource.g.cs | 4 +- ...sonConverters.SessionTurnItemResource.g.cs | 28 +- ...yAGI.OpenAI.JsonConverters.SkillsItem.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.SkillsItem2.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.SkillsItem3.g.cs | 4 +- ...nAI.JsonConverters.SpendLimitCurrency.g.cs | 4 +- ...onverters.SpendLimitEnforcementStatus.g.cs | 4 +- ...nAI.JsonConverters.SpendLimitInterval.g.cs | 4 +- .../tryAGI.OpenAI.JsonConverters.Status.g.cs | 6 +- ...enAI.JsonConverters.StopConfiguration.g.cs | 4 +- ...OpenAI.JsonConverters.TextFormatParam.g.cs | 4 +- ...nAI.JsonConverters.TextFormatResource.g.cs | 4 +- ...rters.TextResponseFormatConfiguration.g.cs | 6 +- ...yAGI.OpenAI.JsonConverters.ThreadItem.g.cs | 12 +- ...enAI.JsonConverters.ThreadStreamEvent.g.cs | 2 +- .../tryAGI.OpenAI.JsonConverters.Tool.g.cs | 32 +- ....OpenAI.JsonConverters.ToolCallCaller.g.cs | 4 +- ...AI.JsonConverters.ToolCallCallerParam.g.cs | 4 +- ...OpenAI.JsonConverters.ToolChoiceParam.g.cs | 18 +- ...AGI.OpenAI.JsonConverters.ToolsItem13.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.ToolsItem14.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.ToolsItem15.g.cs | 4 +- ...AGI.OpenAI.JsonConverters.ToolsItem16.g.cs | 4 +- ...verters.TranscriptionChunkingStrategy.g.cs | 4 +- ...onverters.VaultCredentialAuthResource.g.cs | 6 +- ...erters.VaultCredentialNetworkingParam.g.cs | 4 +- ...ers.VaultCredentialNetworkingResource.g.cs | 4 +- ...JsonConverters.VaultStatusFilterParam.g.cs | 4 +- ...yAGI.OpenAI.JsonConverters.VideoModel.g.cs | 4 +- ....JsonConverters.VoiceIdsOrCustomVoice.g.cs | 4 +- ....OpenAI.JsonConverters.VoiceIdsShared.g.cs | 4 +- ...sonConverters.WebSearchActionResource.g.cs | 8 +- ...sonConverters.WebSearchToolCallAction.g.cs | 6 +- .../tryAGI.OpenAI.JsonSerializerContext.g.cs | 733 +- ...AGI.OpenAI.JsonSerializerContextTypes.g.cs | 10556 ++++++++-------- ...AGI.OpenAI.Live.JsonSerializerContext.g.cs | 3 - ...I.OpenAI.LiveClient.AcceptLiveSession.g.cs | 12 +- .../tryAGI.OpenAI.LiveClient.CreateLive.g.cs | 10 +- ...enAI.LiveClient.DownloadLiveRecording.g.cs | 24 +- ...AGI.OpenAI.LiveClient.ForkLiveSession.g.cs | 12 +- ...I.OpenAI.LiveClient.HangupLiveSession.g.cs | 12 +- ...GI.OpenAI.LiveClient.ReferLiveSession.g.cs | 12 +- ...I.OpenAI.LiveClient.RejectLiveSession.g.cs | 12 +- ...enAI.Models.AdminApiKeyCreateResponse.g.cs | 32 +- ...GI.OpenAI.Models.AgentContentResource.g.cs | 32 +- ...OpenAI.Models.AgentOutputItemResource.g.cs | 192 +- ...GI.OpenAI.Models.AgentToolConfigParam.g.cs | 80 +- ...ryAGI.OpenAI.Models.AgentToolResource.g.cs | 64 +- .../tryAGI.OpenAI.Models.Annotation.g.cs | 64 +- ...tryAGI.OpenAI.Models.AnnotationsItem3.g.cs | 32 +- ...tryAGI.OpenAI.Models.AnnotationsItem4.g.cs | 48 +- ...penAI.Models.ApplyPatchOperationParam.g.cs | 48 +- ...GI.OpenAI.Models.AssistantStreamEvent.g.cs | 96 +- ...els.AssistantsApiResponseFormatOption.g.cs | 64 +- ....Models.AssistantsApiToolChoiceOption.g.cs | 32 +- .../tryAGI.OpenAI.Models.BetaAnnotation.g.cs | 64 +- ...I.Models.BetaApplyPatchOperationParam.g.cs | 48 +- ...dels.BetaCompoundFilterFilterVariant2.g.cs | 19 - ...yAGI.OpenAI.Models.BetaComputerAction.g.cs | 144 +- ...ls.BetaComputerToolCallOutputResource.g.cs | 32 +- .../tryAGI.OpenAI.Models.BetaContent.g.cs | 32 +- ...I.OpenAI.Models.BetaConversationParam.g.cs | 32 +- ...els.BetaCreateModelResponseProperties.g.cs | 32 +- ...yAGI.OpenAI.Models.BetaCreateResponse.g.cs | 48 +- ...dels.BetaCustomToolCallOutputResource.g.cs | 32 +- ...nAI.Models.BetaCustomToolCallResource.g.cs | 32 +- ...dels.BetaDeleteResponseResponse.Json.g.cs} | 26 +- ...nAI.Models.BetaDeleteResponseResponse.g.cs | 68 + ...dels.BetaDeleteResponseResponseObject.g.cs | 45 + ...GI.OpenAI.Models.BetaFileCitationBody.g.cs | 4 +- .../tryAGI.OpenAI.Models.BetaFilters.g.cs | 32 +- ...s.BetaFunctionAndCustomToolCallOutput.g.cs | 48 +- ...taFunctionShellCallOutputOutcomeParam.g.cs | 32 +- ...ls.BetaFunctionToolCallOutputResource.g.cs | 32 +- ...I.Models.BetaFunctionToolCallResource.g.cs | 32 +- ...tryAGI.OpenAI.Models.BetaInputContent.g.cs | 48 +- .../tryAGI.OpenAI.Models.BetaInputItem.g.cs | 96 +- ...penAI.Models.BetaInputMessageResource.g.cs | 32 +- .../tryAGI.OpenAI.Models.BetaInputParam.g.cs | 32 +- .../tryAGI.OpenAI.Models.BetaItem.g.cs | 496 +- .../tryAGI.OpenAI.Models.BetaItemField.g.cs | 496 +- ...tryAGI.OpenAI.Models.BetaItemResource.g.cs | 528 +- ...GI.OpenAI.Models.BetaMCPToolCallError.g.cs | 48 +- ...enAI.Models.BetaMisalignmentErrorType.g.cs | 32 +- ....OpenAI.Models.BetaModelIdsCompaction.g.cs | 48 +- ...I.OpenAI.Models.BetaModelIdsResponses.g.cs | 32 +- ...yAGI.OpenAI.Models.BetaModelIdsShared.g.cs | 32 +- ...ryAGI.OpenAI.Models.BetaOutputContent.g.cs | 48 +- .../tryAGI.OpenAI.Models.BetaOutputItem.g.cs | 496 +- ...penAI.Models.BetaOutputMessageContent.g.cs | 32 +- ...AGI.OpenAI.Models.BetaPersonalityEnum.g.cs | 32 +- ...nAI.Models.BetaPromptCacheDiagnostics.g.cs | 64 +- ...I.OpenAI.Models.BetaReasoningModeEnum.g.cs | 32 +- .../tryAGI.OpenAI.Models.BetaResponse.g.cs | 50 +- ...nAI.Models.BetaResponseCompletedEvent.g.cs | 6 +- ...penAI.Models.BetaResponseCreatedEvent.g.cs | 6 +- ...OpenAI.Models.BetaResponseFailedEvent.g.cs | 6 +- ...AI.Models.BetaResponseInProgressEvent.g.cs | 6 +- ...AI.Models.BetaResponseIncompleteEvent.g.cs | 6 +- ...OpenAI.Models.BetaResponseQueuedEvent.g.cs | 6 +- ...nAI.Models.BetaResponseSteerErrorCode.g.cs | 32 +- ....OpenAI.Models.BetaResponseSteerInput.g.cs | 32 +- ...nAI.Models.BetaResponseSteerInputItem.g.cs | 32 +- ...Models.BetaResponseSteerPendingReason.g.cs | 32 +- ...Models.BetaResponseSteerRequiredInput.g.cs | 112 +- ...OpenAI.Models.BetaResponseStreamEvent.g.cs | 944 +- ...GI.OpenAI.Models.BetaResponseVariant3.g.cs | 8 +- ...penAI.Models.BetaResponsesClientEvent.g.cs | 48 +- ...etaResponsesClientEventResponseCreate.g.cs | 32 +- ...penAI.Models.BetaResponsesServerEvent.g.cs | 1024 +- ...els.BetaResponsesWebSocketStreamEvent.g.cs | 32 +- ...s.BetaTextResponseFormatConfiguration.g.cs | 48 +- .../tryAGI.OpenAI.Models.BetaTool.g.cs | 256 +- ...yAGI.OpenAI.Models.BetaToolCallCaller.g.cs | 32 +- ...OpenAI.Models.BetaToolCallCallerParam.g.cs | 32 +- ...AGI.OpenAI.Models.BetaToolChoiceParam.g.cs | 144 +- ...I.OpenAI.Models.BetaWebSearchToolCall.g.cs | 15 +- ...AI.Models.BetaWebSearchToolCallAction.g.cs | 48 +- ...enAI.Models.ChatCompletionMessageList.g.cs | 24 +- ...els.ChatCompletionMessageListDataItem.g.cs | 39 +- ...DataItemContentPartsVariant1Item.Json.g.cs | 141 + ...eListDataItemContentPartsVariant1Item.g.cs | 82 + ...ItemContentPartsVariant1ItemFile.Json.g.cs | 141 + ...tDataItemContentPartsVariant1ItemFile.g.cs | 62 + ...ContentPartsVariant1ItemImageUrl.Json.g.cs | 141 + ...aItemContentPartsVariant1ItemImageUrl.g.cs | 54 + ...ntentPartsVariant1ItemInputAudio.Json.g.cs | 141 + ...temContentPartsVariant1ItemInputAudio.g.cs | 55 + ...tDataItemContentPartsVariant1ItemType.g.cs | 63 + ...ChatCompletionMessageListDataItemRole.g.cs | 75 + ...ls.ChatCompletionMessageToolCallsItem.g.cs | 32 +- ...ionRequestAssistantMessageContentPart.g.cs | 32 +- ...I.Models.ChatCompletionRequestMessage.g.cs | 96 +- ...letionRequestSystemMessageContentPart.g.cs | 16 +- ...mpletionRequestToolMessageContentPart.g.cs | 16 +- ...mpletionRequestUserMessageContentPart.g.cs | 64 +- ...Models.ChatCompletionToolChoiceOption.g.cs | 64 +- ...I.Models.ChunkingStrategyRequestParam.g.cs | 32 +- .../tryAGI.OpenAI.Models.ComputerAction.g.cs | 144 +- ...Models.ComputerToolCallOutputResource.g.cs | 32 +- .../tryAGI.OpenAI.Models.Content5.g.cs | 32 +- .../tryAGI.OpenAI.Models.ContentItem3.g.cs | 144 +- .../tryAGI.OpenAI.Models.ContentItem4.g.cs | 32 +- .../tryAGI.OpenAI.Models.ContentItem5.g.cs | 32 +- .../tryAGI.OpenAI.Models.ContentItem6.g.cs | 48 +- .../tryAGI.OpenAI.Models.ContentItem7.g.cs | 160 +- .../tryAGI.OpenAI.Models.ContentItem8.g.cs | 160 +- ...AGI.OpenAI.Models.ContentVariant1Item.g.cs | 48 +- ...GI.OpenAI.Models.ContentVariant1Item2.g.cs | 48 +- ...tryAGI.OpenAI.Models.ConversationItem.g.cs | 464 +- ...ryAGI.OpenAI.Models.ConversationParam.g.cs | 32 +- ...AI.Models.CreateChatCompletionRequest.g.cs | 32 +- ...etionStreamResponseChoiceFinishReason.g.cs | 6 + .../tryAGI.OpenAI.Models.CreateEvalItem.g.cs | 32 +- ....CreateMcpOauthTokenEndpointAuthParam.g.cs | 48 +- ....Models.CreateModelResponseProperties.g.cs | 32 +- .../tryAGI.OpenAI.Models.CreateResponse.g.cs | 48 +- ...OpenAI.Models.CreateSessionInputParam.g.cs | 32 +- ...odels.CreateSpeechResponseStreamEvent.g.cs | 32 +- ...ranscriptionResponseDiarizedJsonUsage.g.cs | 32 +- ...reateTranscriptionResponseStreamEvent.g.cs | 48 +- ...Models.CreateVaultCredentialAuthParam.g.cs | 48 +- ...I.Models.CustomToolCallOutputResource.g.cs | 32 +- ....OpenAI.Models.CustomToolCallResource.g.cs | 32 +- ...yAGI.OpenAI.Models.DelegationVariant1.g.cs | 32 +- ...AGI.OpenAI.Models.DelegationVariant12.g.cs | 32 +- ...AGI.OpenAI.Models.DelegationVariant13.g.cs | 32 +- ...AGI.OpenAI.Models.DelegationVariant14.g.cs | 32 +- ...dels.DeleteContainerFileResponse.Json.g.cs | 141 + ...AI.Models.DeleteContainerFileResponse.g.cs | 65 + ...els.DeleteContainerFileResponseObject.g.cs | 45 + ...I.Models.DeleteContainerResponse.Json.g.cs | 141 + ...OpenAI.Models.DeleteContainerResponse.g.cs | 65 + ....Models.DeleteContainerResponseObject.g.cs | 45 + ...I.Models.DeleteResponseResponse.Json.g.cs} | 26 +- ....OpenAI.Models.DeleteResponseResponse.g.cs | 68 + ...I.Models.DeleteResponseResponseObject.g.cs | 45 + ...AGI.OpenAI.Models.DeletedConversation.g.cs | 16 +- .../tryAGI.OpenAI.Models.Embedding.g.cs | 11 +- ...tryAGI.OpenAI.Models.EnvironmentParam.g.cs | 48 +- ...AGI.OpenAI.Models.EnvironmentResource.g.cs | 48 +- ...AGI.OpenAI.Models.EnvironmentVariant1.g.cs | 48 +- ...GI.OpenAI.Models.EnvironmentVariant12.g.cs | 32 +- ...GI.OpenAI.Models.EnvironmentVariant13.g.cs | 32 +- ...GI.OpenAI.Models.EnvironmentVariant14.g.cs | 48 +- ...GI.OpenAI.Models.EnvironmentVariant15.g.cs | 32 +- ...GI.OpenAI.Models.EnvironmentVariant16.g.cs | 32 +- ...GI.OpenAI.Models.EvalGraderLabelModel.g.cs | 16 +- ...tryAGI.OpenAI.Models.EvalGraderPython.g.cs | 32 +- ...GI.OpenAI.Models.EvalGraderScoreModel.g.cs | 32 +- ...I.OpenAI.Models.EvalGraderStringCheck.g.cs | 16 +- ...penAI.Models.EvalGraderTextSimilarity.g.cs | 32 +- .../tryAGI.OpenAI.Models.EvalItemContent.g.cs | 32 +- ...AGI.OpenAI.Models.EvalItemContentItem.g.cs | 80 +- ...OpenAI.Models.EvalRunOutputItemSample.g.cs | 15 +- ...tryAGI.OpenAI.Models.FileCitationBody.g.cs | 4 +- .../tryAGI.OpenAI.Models.Filters2.g.cs | 32 +- .../tryAGI.OpenAI.Models.FiltersItem.g.cs | 97 +- .../tryAGI.OpenAI.Models.FiltersItem2.g.cs | 97 +- ...ChatCompletionRequestAssistantMessage.g.cs | 32 +- .../tryAGI.OpenAI.Models.FineTuningJob.g.cs | 42 +- ...dels.FineTuningJobErrorVariant1.Json.g.cs} | 26 +- ...AI.Models.FineTuningJobErrorVariant1.g.cs} | 10 +- ...odels.FineTuningJobErrorVariant3.Json.g.cs | 141 + ...AI.Models.FineTuningJobErrorVariant3.g.cs} | 2 +- ...AGI.OpenAI.Models.FineTuningJobStatus.g.cs | 14 +- .../tryAGI.OpenAI.Models.Format2.g.cs | 32 +- .../tryAGI.OpenAI.Models.Format3.g.cs | 32 +- ...odels.FunctionAndCustomToolCallOutput.g.cs | 48 +- ...OpenAI.Models.FunctionCallOutputParam.g.cs | 32 +- ...nAI.Models.FunctionCallOutputResource.g.cs | 32 +- ...s.FunctionShellCallOutputOutcomeParam.g.cs | 32 +- ...Models.FunctionToolCallOutputResource.g.cs | 32 +- ...penAI.Models.FunctionToolCallResource.g.cs | 32 +- ...nAI.Models.HostedEnvironmentFileParam.g.cs | 32 +- ....Models.HostedEnvironmentFileResource.g.cs | 32 +- ...ryAGI.OpenAI.Models.HostedPluginParam.g.cs | 16 +- ...GI.OpenAI.Models.HostedPluginResource.g.cs | 16 +- ...tryAGI.OpenAI.Models.HostedSkillParam.g.cs | 32 +- ...AGI.OpenAI.Models.HostedSkillResource.g.cs | 32 +- ...nAI.Models.HostedTemplateFileResource.g.cs | 32 +- ...AI.Models.HostedTemplateSkillResource.g.cs | 32 +- ...GI.OpenAI.Models.ImageEditStreamEvent.g.cs | 32 +- ...AGI.OpenAI.Models.ImageGenStreamEvent.g.cs | 32 +- ...tryAGI.OpenAI.Models.InferenceOptions.g.cs | 4 +- ...AI.Models.InlineCapabilitySourceParam.g.cs | 16 +- .../Generated/tryAGI.OpenAI.Models.Input.g.cs | 32 +- .../tryAGI.OpenAI.Models.Input4.g.cs | 32 +- .../tryAGI.OpenAI.Models.Input5.g.cs | 32 +- .../tryAGI.OpenAI.Models.InputContent.g.cs | 48 +- ...ryAGI.OpenAI.Models.InputContentParam.g.cs | 32 +- ...GI.OpenAI.Models.InputContentResource.g.cs | 32 +- .../tryAGI.OpenAI.Models.InputItem.g.cs | 96 +- ...GI.OpenAI.Models.InputMessageResource.g.cs | 32 +- .../tryAGI.OpenAI.Models.InputParam.g.cs | 32 +- .../Generated/tryAGI.OpenAI.Models.Item.g.cs | 448 +- .../tryAGI.OpenAI.Models.ItemField.g.cs | 448 +- .../tryAGI.OpenAI.Models.ItemResource.g.cs | 480 +- ...I.OpenAI.Models.JsonSerializerContext.g.cs | 3 - .../tryAGI.OpenAI.Models.LiveAudioFormat.g.cs | 48 +- .../tryAGI.OpenAI.Models.LiveClientEvent.g.cs | 176 +- ...AGI.OpenAI.Models.LiveForkClientEvent.g.cs | 176 +- .../tryAGI.OpenAI.Models.LiveInitialItem.g.cs | 48 +- .../tryAGI.OpenAI.Models.LiveServerEvent.g.cs | 16 +- ...tryAGI.OpenAI.Models.LiveServerEvent2.g.cs | 354 +- ...OpenAI.Models.LiveSidebandClientEvent.g.cs | 144 +- ...OpenAI.Models.LiveSidebandServerEvent.g.cs | 240 +- ...I.OpenAI.Models.LiveTransportDTMFSend.g.cs | 13 +- ...tryAGI.OpenAI.Models.MCPToolCallError.g.cs | 48 +- ...els.McpOauthTokenEndpointAuthResource.g.cs | 48 +- ...OpenAI.Models.McpTransportConfigParam.g.cs | 32 +- ...GI.OpenAI.Models.McpTransportResource.g.cs | 32 +- ....OpenAI.Models.MessageContentResource.g.cs | 48 +- ...yAGI.OpenAI.Models.MessageStreamEvent.g.cs | 80 +- ...I.OpenAI.Models.MisalignmentErrorType.g.cs | 32 +- .../tryAGI.OpenAI.Models.ModelIds.g.cs | 32 +- ...yAGI.OpenAI.Models.ModelIdsCompaction.g.cs | 48 +- .../tryAGI.OpenAI.Models.ModelIdsLive.g.cs | 32 +- ...ryAGI.OpenAI.Models.ModelIdsResponses.g.cs | 32 +- .../tryAGI.OpenAI.Models.ModelIdsShared.g.cs | 32 +- .../tryAGI.OpenAI.Models.NetworkPolicy.g.cs | 32 +- .../tryAGI.OpenAI.Models.NetworkPolicy2.g.cs | 32 +- .../tryAGI.OpenAI.Models.NetworkPolicy3.g.cs | 32 +- .../tryAGI.OpenAI.Models.NetworkPolicy4.g.cs | 32 +- .../tryAGI.OpenAI.Models.NetworkPolicy5.g.cs | 32 +- .../tryAGI.OpenAI.Models.Operation.g.cs | 48 +- .../tryAGI.OpenAI.Models.Operation2.g.cs | 48 +- .../tryAGI.OpenAI.Models.Outcome.g.cs | 32 +- .../tryAGI.OpenAI.Models.Outcome2.g.cs | 32 +- .../tryAGI.OpenAI.Models.Output.g.cs | 32 +- .../tryAGI.OpenAI.Models.Output5.g.cs | 32 +- .../tryAGI.OpenAI.Models.Output9.g.cs | 32 +- .../tryAGI.OpenAI.Models.OutputContent.g.cs | 48 +- .../tryAGI.OpenAI.Models.OutputItem.g.cs | 448 +- ...GI.OpenAI.Models.OutputMessageContent.g.cs | 32 +- ...yAGI.OpenAI.Models.OutputVariant2Item.g.cs | 48 +- ...AGI.OpenAI.Models.OutputVariant2Item2.g.cs | 48 +- ...AGI.OpenAI.Models.OutputsVariant1Item.g.cs | 32 +- ...GI.OpenAI.Models.OutputsVariant1Item2.g.cs | 32 +- ....Models.PersistedAgentToolConfigParam.g.cs | 80 +- ...nAI.Models.PersistedAgentToolResource.g.cs | 80 +- ...dels.PersistedMcpTransportConfigParam.g.cs | 32 +- ....Models.PersistedMcpTransportResource.g.cs | 32 +- .../tryAGI.OpenAI.Models.PersonalityEnum.g.cs | 32 +- ....OpenAI.Models.PromptCacheDiagnostics.g.cs | 64 +- .../tryAGI.OpenAI.Models.Provider.g.cs | 48 +- .../tryAGI.OpenAI.Models.Provider2.g.cs | 48 +- .../tryAGI.OpenAI.Models.Provider3.g.cs | 48 +- ...GI.OpenAI.Models.RealtimeAudioFormats.g.cs | 48 +- ...AGI.OpenAI.Models.RealtimeClientEvent.g.cs | 176 +- ...penAI.Models.RealtimeConversationItem.g.cs | 144 +- ...AGI.OpenAI.Models.RealtimeServerEvent.g.cs | 736 +- ...Models.RealtimeTranslationClientEvent.g.cs | 48 +- ...Models.RealtimeTranslationServerEvent.g.cs | 112 +- ...yAGI.OpenAI.Models.RealtimeTruncation.g.cs | 32 +- ...meTurnDetectionRealtimeTurnDetection1.g.cs | 32 +- ...ryAGI.OpenAI.Models.ReasoningModeEnum.g.cs | 32 +- .../tryAGI.OpenAI.Models.Response.g.cs | 50 +- ...els.ResponseCompactionCompactingEvent.g.cs | 16 +- ....OpenAI.Models.ResponseCompletedEvent.g.cs | 6 +- ...GI.OpenAI.Models.ResponseCreatedEvent.g.cs | 6 +- ...AGI.OpenAI.Models.ResponseFailedEvent.g.cs | 6 +- .../tryAGI.OpenAI.Models.ResponseFormat.g.cs | 48 +- ...OpenAI.Models.ResponseInProgressEvent.g.cs | 6 +- ...OpenAI.Models.ResponseIncompleteEvent.g.cs | 6 +- ...AGI.OpenAI.Models.ResponseQueuedEvent.g.cs | 6 +- ....OpenAI.Models.ResponseSteerErrorCode.g.cs | 32 +- ...yAGI.OpenAI.Models.ResponseSteerInput.g.cs | 32 +- ....OpenAI.Models.ResponseSteerInputItem.g.cs | 32 +- ...nAI.Models.ResponseSteerPendingReason.g.cs | 32 +- ...nAI.Models.ResponseSteerRequiredInput.g.cs | 112 +- ...AGI.OpenAI.Models.ResponseStreamEvent.g.cs | 944 +- ...tryAGI.OpenAI.Models.ResponseVariant3.g.cs | 8 +- ...GI.OpenAI.Models.ResponsesClientEvent.g.cs | 32 +- ...ls.ResponsesClientEventResponseCreate.g.cs | 32 +- ...GI.OpenAI.Models.ResponsesServerEvent.g.cs | 992 +- ....Models.ResponsesWebSocketStreamEvent.g.cs | 32 +- .../tryAGI.OpenAI.Models.ResultsItem.g.cs | 176 +- .../tryAGI.OpenAI.Models.ResultsItem2.g.cs | 32 +- ....RotateMcpOauthTokenEndpointAuthParam.g.cs | 32 +- ...Models.RotateVaultCredentialAuthParam.g.cs | 48 +- .../tryAGI.OpenAI.Models.RunObject.g.cs | 36 +- ...yAGI.OpenAI.Models.RunStepStreamEvent.g.cs | 112 +- .../tryAGI.OpenAI.Models.RunStreamEvent.g.cs | 160 +- .../tryAGI.OpenAI.Models.Session2.g.cs | 32 +- .../tryAGI.OpenAI.Models.SessionEvent.g.cs | 496 +- ...ryAGI.OpenAI.Models.SessionInputParam.g.cs | 48 +- ....Models.SessionRequiredActionResource.g.cs | 32 +- ...OpenAI.Models.SessionTurnItemResource.g.cs | 224 +- .../tryAGI.OpenAI.Models.SkillsItem.g.cs | 32 +- .../tryAGI.OpenAI.Models.SkillsItem2.g.cs | 32 +- .../tryAGI.OpenAI.Models.SkillsItem3.g.cs | 32 +- ...yAGI.OpenAI.Models.SpendLimitCurrency.g.cs | 32 +- ...AI.Models.SpendLimitEnforcementStatus.g.cs | 32 +- ...yAGI.OpenAI.Models.SpendLimitInterval.g.cs | 32 +- .../tryAGI.OpenAI.Models.Status.g.cs | 48 +- ...ryAGI.OpenAI.Models.StopConfiguration.g.cs | 32 +- .../tryAGI.OpenAI.Models.TextFormatParam.g.cs | 32 +- ...yAGI.OpenAI.Models.TextFormatResource.g.cs | 32 +- ...odels.TextResponseFormatConfiguration.g.cs | 48 +- .../tryAGI.OpenAI.Models.ThreadItem.g.cs | 96 +- ...ryAGI.OpenAI.Models.ThreadStreamEvent.g.cs | 16 +- .../Generated/tryAGI.OpenAI.Models.Tool.g.cs | 256 +- .../tryAGI.OpenAI.Models.ToolCallCaller.g.cs | 32 +- ...AGI.OpenAI.Models.ToolCallCallerParam.g.cs | 32 +- ...ryAGI.OpenAI.Models.ToolChoice9.Json.g.cs} | 26 +- ... => tryAGI.OpenAI.Models.ToolChoice9.g.cs} | 10 +- .../tryAGI.OpenAI.Models.ToolChoiceParam.g.cs | 144 +- .../tryAGI.OpenAI.Models.ToolsItem13.g.cs | 32 +- .../tryAGI.OpenAI.Models.ToolsItem14.g.cs | 32 +- .../tryAGI.OpenAI.Models.ToolsItem15.g.cs | 32 +- .../tryAGI.OpenAI.Models.ToolsItem16.g.cs | 32 +- ....Models.TranscriptionChunkingStrategy.g.cs | 32 +- .../tryAGI.OpenAI.Models.Upload.g.cs | 11 +- ...AI.Models.VaultCredentialAuthResource.g.cs | 48 +- ...Models.VaultCredentialNetworkingParam.g.cs | 32 +- ...els.VaultCredentialNetworkingResource.g.cs | 32 +- ....OpenAI.Models.VaultStatusFilterParam.g.cs | 32 +- ...dels.VectorStoreFileBatchObjectObject.g.cs | 6 +- .../tryAGI.OpenAI.Models.VideoModel.g.cs | 32 +- ...I.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs | 32 +- .../tryAGI.OpenAI.Models.VoiceIdsShared.g.cs | 32 +- ...OpenAI.Models.WebSearchActionResource.g.cs | 64 +- ...ryAGI.OpenAI.Models.WebSearchToolCall.g.cs | 13 +- ...OpenAI.Models.WebSearchToolCallAction.g.cs | 48 +- ...ryAGI.OpenAI.ModelsClient.DeleteModel.g.cs | 12 +- ...tryAGI.OpenAI.ModelsClient.ListModels.g.cs | 10 +- ...AGI.OpenAI.ModelsClient.RetrieveModel.g.cs | 12 +- ...nAI.Moderations.JsonSerializerContext.g.cs | 3 - ...AI.ModerationsClient.CreateModeration.g.cs | 10 +- .../Generated/tryAGI.OpenAI.OneOf.2.g.cs | 32 +- .../Generated/tryAGI.OpenAI.OneOf.3.g.cs | 48 +- .../Generated/tryAGI.OpenAI.OneOf.4.g.cs | 64 +- .../Generated/tryAGI.OpenAI.OneOf.5.g.cs | 80 +- ...penAI.OpenAiClient.AdminApiKeysCreate.g.cs | 10 +- ...penAI.OpenAiClient.AdminApiKeysDelete.g.cs | 12 +- ...I.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs | 12 +- ....OpenAI.OpenAiClient.AdminApiKeysList.g.cs | 10 +- ....OpenAiClient.CancelChatSessionMethod.g.cs | 12 +- ....OpenAiClient.CreateChatSessionMethod.g.cs | 10 +- ...I.OpenAI.OpenAiClient.CreateContainer.g.cs | 10 +- ...enAI.OpenAiClient.CreateContainerFile.g.cs | 12 +- ...AI.OpenAiClient.CreateWebhookEndpoint.g.cs | 10 +- ...ient.CreateanAPIkeyforaserviceaccount.g.cs | 14 +- ....Createanexternalstorageconfiguration.g.cs | 10 +- ...AiClient.Createcontentprovenancecheck.g.cs | 30 +- ...I.OpenAI.OpenAiClient.DeleteContainer.g.cs | 49 +- ...enAI.OpenAiClient.DeleteContainerFile.g.cs | 51 +- ...penAI.OpenAiClient.DeleteThreadMethod.g.cs | 12 +- ...AI.OpenAiClient.DeleteWebhookEndpoint.g.cs | 12 +- ....Deleteanexternalstorageconfiguration.g.cs | 12 +- ...AiClient.Deleteorganizationspendlimit.g.cs | 10 +- ....OpenAiClient.Deleteprojectspendlimit.g.cs | 12 +- ...I.OpenAI.OpenAiClient.GetThreadMethod.g.cs | 12 +- ...ent.Getanexternalstorageconfiguration.g.cs | 12 +- ...penAiClient.Getorganizationspendlimit.g.cs | 10 +- ...AI.OpenAiClient.Getprojectsafetyalert.g.cs | 12 +- ...nAI.OpenAiClient.Getprojectspendlimit.g.cs | 12 +- ...AGI.OpenAI.OpenAiClient.Getsafetycase.g.cs | 12 +- ...penAI.OpenAiClient.ListContainerFiles.g.cs | 12 +- ...GI.OpenAI.OpenAiClient.ListContainers.g.cs | 10 +- ...AI.OpenAiClient.ListThreadItemsMethod.g.cs | 12 +- ...OpenAI.OpenAiClient.ListThreadsMethod.g.cs | 10 +- ...nAI.OpenAiClient.ListWebhookEndpoints.g.cs | 10 +- ...AI.OpenAiClient.ListWebhookEventTypes.g.cs | 10 +- ...ent.Listexternalstorageconfigurations.g.cs | 10 +- ...OpenAI.OpenAiClient.RetrieveContainer.g.cs | 12 +- ...AI.OpenAiClient.RetrieveContainerFile.g.cs | 14 +- ...AiClient.RetrieveContainerFileContent.g.cs | 448 +- ....OpenAiClient.RetrieveWebhookEndpoint.g.cs | 12 +- ...nt.RotateWebhookEndpointSigningSecret.g.cs | 12 +- ...enAI.OpenAiClient.TestWebhookEndpoint.g.cs | 12 +- ...AI.OpenAiClient.UpdateWebhookEndpoint.g.cs | 12 +- ...AiClient.Updateorganizationspendlimit.g.cs | 10 +- ....OpenAiClient.Updateprojectspendlimit.g.cs | 12 +- ...alidateanexternalstorageconfiguration.g.cs | 12 +- .../tryAGI.OpenAI.OptionsSupport.g.cs | 15 +- ...RoleAssignments.JsonSerializerContext.g.cs | 3 - ...ignmentsClient.AssignProjectGroupRole.g.cs | 14 +- ...lient.ListProjectGroupRoleAssignments.g.cs | 14 +- ...nmentsClient.RetrieveProjectGroupRole.g.cs | 16 +- ...nmentsClient.UnassignProjectGroupRole.g.cs | 16 +- ...I.ProjectGroups.JsonSerializerContext.g.cs | 3 - ...I.ProjectGroupsClient.AddProjectGroup.g.cs | 12 +- ...ProjectGroupsClient.ListProjectGroups.g.cs | 12 +- ...rojectGroupsClient.RemoveProjectGroup.g.cs | 14 +- ...jectGroupsClient.RetrieveProjectGroup.g.cs | 14 +- ...RoleAssignments.JsonSerializerContext.g.cs | 3 - ...signmentsClient.AssignProjectUserRole.g.cs | 14 +- ...Client.ListProjectUserRoleAssignments.g.cs | 14 +- ...gnmentsClient.RetrieveProjectUserRole.g.cs | 16 +- ...gnmentsClient.UnassignProjectUserRole.g.cs | 16 +- ...OpenAI.Projects.JsonSerializerContext.g.cs | 3 - ....OpenAI.ProjectsClient.ArchiveProject.g.cs | 12 +- ...I.OpenAI.ProjectsClient.CreateProject.g.cs | 10 +- ...ctsClient.CreateProjectServiceAccount.g.cs | 12 +- ...enAI.ProjectsClient.CreateProjectUser.g.cs | 12 +- ...AI.ProjectsClient.DeleteProjectApiKey.g.cs | 14 +- ...sClient.DeleteProjectModelPermissions.g.cs | 12 +- ...ctsClient.DeleteProjectServiceAccount.g.cs | 14 +- ...enAI.ProjectsClient.DeleteProjectUser.g.cs | 14 +- ...nAI.ProjectsClient.ListProjectApiKeys.g.cs | 12 +- ....ProjectsClient.ListProjectRateLimits.g.cs | 12 +- ...ectsClient.ListProjectServiceAccounts.g.cs | 12 +- ...penAI.ProjectsClient.ListProjectUsers.g.cs | 12 +- ...GI.OpenAI.ProjectsClient.ListProjects.g.cs | 10 +- ...I.OpenAI.ProjectsClient.ModifyProject.g.cs | 12 +- ...enAI.ProjectsClient.ModifyProjectUser.g.cs | 14 +- ...OpenAI.ProjectsClient.RetrieveProject.g.cs | 12 +- ....ProjectsClient.RetrieveProjectApiKey.g.cs | 14 +- ...lient.RetrieveProjectModelPermissions.g.cs | 12 +- ...sClient.RetrieveProjectServiceAccount.g.cs | 14 +- ...AI.ProjectsClient.RetrieveProjectUser.g.cs | 14 +- ...sClient.UpdateProjectModelPermissions.g.cs | 12 +- ...rojectsClient.UpdateProjectRateLimits.g.cs | 14 +- ...ctsClient.UpdateProjectServiceAccount.g.cs | 14 +- ...OpenAI.Realtime.JsonSerializerContext.g.cs | 3 - ...nAI.RealtimeClient.AcceptRealtimeCall.g.cs | 12 +- ...nAI.RealtimeClient.CreateRealtimeCall.g.cs | 20 +- ...eClient.CreateRealtimeCallWithRawBody.g.cs | 20 +- ...timeClient.CreateRealtimeClientSecret.g.cs | 10 +- ....RealtimeClient.CreateRealtimeSession.g.cs | 10 +- ...nt.CreateRealtimeTranscriptionSession.g.cs | 10 +- ...CreateRealtimeTranslationClientSecret.g.cs | 10 +- ...nAI.RealtimeClient.HangupRealtimeCall.g.cs | 12 +- ...enAI.RealtimeClient.ReferRealtimeCall.g.cs | 12 +- ...nAI.RealtimeClient.RejectRealtimeCall.g.cs | 12 +- ...penAI.Responses.JsonSerializerContext.g.cs | 3 - ...AI.ResponsesClient.BetaCancelResponse.g.cs | 12 +- ...sponsesClient.BetaCompactconversation.g.cs | 10 +- ...AI.ResponsesClient.BetaCreateResponse.g.cs | 10 +- ...nsesClient.BetaCreateResponseAsStream.g.cs | 10 +- ...AI.ResponsesClient.BetaDeleteResponse.g.cs | 49 +- ...penAI.ResponsesClient.BetaGetResponse.g.cs | 12 +- ...sponsesClient.BetaGetinputtokencounts.g.cs | 10 +- ...AI.ResponsesClient.BetaListInputItems.g.cs | 12 +- ...OpenAI.ResponsesClient.CancelResponse.g.cs | 12 +- ...I.ResponsesClient.Compactconversation.g.cs | 10 +- ...OpenAI.ResponsesClient.CreateResponse.g.cs | 10 +- ...esponsesClient.CreateResponseAsStream.g.cs | 10 +- ...OpenAI.ResponsesClient.DeleteResponse.g.cs | 49 +- ...GI.OpenAI.ResponsesClient.GetResponse.g.cs | 12 +- ...I.ResponsesClient.Getinputtokencounts.g.cs | 10 +- ...OpenAI.ResponsesClient.ListInputItems.g.cs | 12 +- ...GI.OpenAI.Roles.JsonSerializerContext.g.cs | 3 - ....OpenAI.RolesClient.CreateProjectRole.g.cs | 12 +- .../tryAGI.OpenAI.RolesClient.CreateRole.g.cs | 10 +- ....OpenAI.RolesClient.DeleteProjectRole.g.cs | 14 +- .../tryAGI.OpenAI.RolesClient.DeleteRole.g.cs | 12 +- ...I.OpenAI.RolesClient.ListProjectRoles.g.cs | 12 +- .../tryAGI.OpenAI.RolesClient.ListRoles.g.cs | 10 +- ...penAI.RolesClient.RetrieveProjectRole.g.cs | 14 +- ...ryAGI.OpenAI.RolesClient.RetrieveRole.g.cs | 12 +- ....OpenAI.RolesClient.UpdateProjectRole.g.cs | 14 +- .../tryAGI.OpenAI.RolesClient.UpdateRole.g.cs | 12 +- ...I.OpenAI.Skills.JsonSerializerContext.g.cs | 3 - ...ryAGI.OpenAI.SkillsClient.CreateSkill.g.cs | 10 +- ...penAI.SkillsClient.CreateSkillVersion.g.cs | 12 +- ...ryAGI.OpenAI.SkillsClient.DeleteSkill.g.cs | 12 +- ...penAI.SkillsClient.DeleteSkillVersion.g.cs | 14 +- .../tryAGI.OpenAI.SkillsClient.GetSkill.g.cs | 12 +- ...I.OpenAI.SkillsClient.GetSkillContent.g.cs | 12 +- ...I.SkillsClient.GetSkillContentAsBytes.g.cs | 24 +- ...I.OpenAI.SkillsClient.GetSkillVersion.g.cs | 14 +- ...I.SkillsClient.GetSkillVersionContent.g.cs | 14 +- ...sClient.GetSkillVersionContentAsBytes.g.cs | 28 +- ...OpenAI.SkillsClient.ListSkillVersions.g.cs | 12 +- ...tryAGI.OpenAI.SkillsClient.ListSkills.g.cs | 10 +- ...killsClient.UpdateSkillDefaultVersion.g.cs | 12 +- ...nAI.SpendAlerts.JsonSerializerContext.g.cs | 3 - ...tsClient.CreateOrganizationSpendAlert.g.cs | 10 +- ...dAlertsClient.CreateProjectSpendAlert.g.cs | 12 +- ...tsClient.DeleteOrganizationSpendAlert.g.cs | 12 +- ...dAlertsClient.DeleteProjectSpendAlert.g.cs | 14 +- ...rtsClient.ListOrganizationSpendAlerts.g.cs | 10 +- ...ndAlertsClient.ListProjectSpendAlerts.g.cs | 12 +- ...Client.RetrieveOrganizationSpendAlert.g.cs | 12 +- ...lertsClient.RetrieveProjectSpendAlert.g.cs | 14 +- ...tsClient.UpdateOrganizationSpendAlert.g.cs | 12 +- ...dAlertsClient.UpdateProjectSpendAlert.g.cs | 14 +- ....OpenAI.Uploads.JsonSerializerContext.g.cs | 3 - ...GI.OpenAI.UploadsClient.AddUploadPart.g.cs | 36 +- ...AGI.OpenAI.UploadsClient.CancelUpload.g.cs | 12 +- ...I.OpenAI.UploadsClient.CompleteUpload.g.cs | 12 +- ...AGI.OpenAI.UploadsClient.CreateUpload.g.cs | 10 +- ...GI.OpenAI.Usage.JsonSerializerContext.g.cs | 3 - ...OpenAI.UsageClient.UsageAudioSpeeches.g.cs | 14 +- ....UsageClient.UsageAudioTranscriptions.g.cs | 14 +- ...geClient.UsageCodeInterpreterSessions.g.cs | 14 +- ...I.OpenAI.UsageClient.UsageCompletions.g.cs | 14 +- .../tryAGI.OpenAI.UsageClient.UsageCosts.g.cs | 14 +- ...GI.OpenAI.UsageClient.UsageEmbeddings.g.cs | 14 +- ...enAI.UsageClient.UsageFileSearchCalls.g.cs | 14 +- ...tryAGI.OpenAI.UsageClient.UsageImages.g.cs | 14 +- ...I.OpenAI.UsageClient.UsageModerations.g.cs | 14 +- ....OpenAI.UsageClient.UsageVectorStores.g.cs | 14 +- ...penAI.UsageClient.UsageWebSearchCalls.g.cs | 14 +- ...RoleAssignments.JsonSerializerContext.g.cs | 3 - ...nRoleAssignmentsClient.AssignUserRole.g.cs | 12 +- ...gnmentsClient.ListUserRoleAssignments.g.cs | 12 +- ...oleAssignmentsClient.RetrieveUserRole.g.cs | 14 +- ...oleAssignmentsClient.UnassignUserRole.g.cs | 14 +- ...GI.OpenAI.Users.JsonSerializerContext.g.cs | 3 - .../tryAGI.OpenAI.UsersClient.DeleteUser.g.cs | 12 +- .../tryAGI.OpenAI.UsersClient.ListUsers.g.cs | 10 +- .../tryAGI.OpenAI.UsersClient.ModifyUser.g.cs | 12 +- ...ryAGI.OpenAI.UsersClient.RetrieveUser.g.cs | 12 +- ...I.OpenAI.Vaults.JsonSerializerContext.g.cs | 3 - ...ryAGI.OpenAI.VaultsClient.CreateVault.g.cs | 10 +- ...AI.VaultsClient.CreateVaultCredential.g.cs | 12 +- ...ryAGI.OpenAI.VaultsClient.DeleteVault.g.cs | 12 +- ...AI.VaultsClient.DeleteVaultCredential.g.cs | 14 +- ...nAI.VaultsClient.ListVaultCredentials.g.cs | 12 +- ...tryAGI.OpenAI.VaultsClient.ListVaults.g.cs | 10 +- ...AGI.OpenAI.VaultsClient.RetrieveVault.g.cs | 12 +- ....VaultsClient.RetrieveVaultCredential.g.cs | 14 +- ...AI.VaultsClient.RotateVaultCredential.g.cs | 14 +- ...AI.VectorStores.JsonSerializerContext.g.cs | 3 - ...oresClient.CancelVectorStoreFileBatch.g.cs | 14 +- ....VectorStoresClient.CreateVectorStore.g.cs | 10 +- ...torStoresClient.CreateVectorStoreFile.g.cs | 12 +- ...oresClient.CreateVectorStoreFileBatch.g.cs | 12 +- ....VectorStoresClient.DeleteVectorStore.g.cs | 12 +- ...torStoresClient.DeleteVectorStoreFile.g.cs | 14 +- ...nAI.VectorStoresClient.GetVectorStore.g.cs | 12 +- ...VectorStoresClient.GetVectorStoreFile.g.cs | 14 +- ...rStoresClient.GetVectorStoreFileBatch.g.cs | 14 +- ...resClient.ListFilesInVectorStoreBatch.g.cs | 14 +- ...ctorStoresClient.ListVectorStoreFiles.g.cs | 12 +- ...I.VectorStoresClient.ListVectorStores.g.cs | 10 +- ....VectorStoresClient.ModifyVectorStore.g.cs | 12 +- ...Client.RetrieveVectorStoreFileContent.g.cs | 14 +- ....VectorStoresClient.SearchVectorStore.g.cs | 12 +- ...lient.UpdateVectorStoreFileAttributes.g.cs | 14 +- src/libs/tryAGI.OpenAI/asyncapi.json | 45 +- src/libs/tryAGI.OpenAI/openapi.yaml | 1760 ++- 1443 files changed, 31297 insertions(+), 23057 deletions(-) create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateRunRequestOptionSet.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateThreadAndRunRequestOptionSet.g.cs create mode 100644 src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SubmitToolOutputsRunRequestOptionSet.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRunAsStream.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRunAsStream.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRunAsStream.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRunAsStream.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRunAsStream.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRunAsStream.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRole.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectNullable.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectNullable.g.cs delete mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.Json.g.cs => tryAGI.OpenAI.Models.BetaDeleteResponseResponse.Json.g.cs} (87%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemRole.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponseObject.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.Json.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponseObject.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.FineTuningJobError.Json.g.cs => tryAGI.OpenAI.Models.DeleteResponseResponse.Json.g.cs} (88%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.g.cs create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponseObject.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.Json.g.cs => tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.Json.g.cs} (86%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.FineTuningJobError.g.cs => tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.g.cs} (91%) create mode 100644 src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.Json.g.cs rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.g.cs => tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.g.cs} (88%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.ToolChoice10.Json.g.cs => tryAGI.OpenAI.Models.ToolChoice9.Json.g.cs} (89%) rename src/libs/tryAGI.OpenAI/Generated/{tryAGI.OpenAI.Models.ToolChoice10.g.cs => tryAGI.OpenAI.Models.ToolChoice9.g.cs} (90%) diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/CliRuntime.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/CliRuntime.cs index a2f7cc4c4..d9a0946a4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/CliRuntime.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/CliRuntime.cs @@ -262,6 +262,88 @@ public static TimeSpan ParseDuration(string value, string optionName) } + public static async Task PollUntilTerminalAsync( + Func> fetchAsync, + TimeSpan pollInterval, + TimeSpan waitTimeout, + JsonSerializerContext context, + CancellationToken cancellationToken) + { + if (pollInterval <= TimeSpan.Zero || waitTimeout <= TimeSpan.Zero) + { + throw new CliException("--poll-interval and --wait-timeout must be greater than zero."); + } + + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); + timeout.CancelAfter(waitTimeout); + try + { + while (true) + { + var response = await fetchAsync(timeout.Token).ConfigureAwait(false); + var status = FindJobStatus(ToJsonElement(response, context), depth: 0); + if (string.IsNullOrWhiteSpace(status)) + { + throw new CliException("The status response did not contain a status value."); + } + + switch (status.Trim().ToUpperInvariant()) + { + case "COMPLETED": + case "SUCCEEDED": + case "SUCCESS": + case "DONE": + case "FINISHED": + return response; + case "FAILED": + case "ERRORED": + case "ERROR": + case "CANCELLED": + case "CANCELED": + case "ABORTED": + throw new CliException($"The job ended with status '{status}'."); + } + + await Task.Delay(pollInterval, timeout.Token).ConfigureAwait(false); + } + } + catch (OperationCanceledException) when (timeout.IsCancellationRequested && !cancellationToken.IsCancellationRequested) + { + throw new CliException($"The job did not finish within {waitTimeout}."); + } + } + + private static string? FindJobStatus(JsonElement element, int depth) + { + if (element.ValueKind != JsonValueKind.Object || depth > 3) + { + return null; + } + + foreach (var property in element.EnumerateObject()) + { + if (string.Equals(property.Name, "status", StringComparison.OrdinalIgnoreCase)) + { + return property.Value.ValueKind == JsonValueKind.String + ? property.Value.GetString() + : property.Value.ToString(); + } + } + + foreach (var property in element.EnumerateObject()) + { + if (property.Name is "data" or "result" or "job" or "task") + { + var status = FindJobStatus(property.Value, depth + 1); + if (status is not null) + { + return status; + } + } + } + + return null; + } public static async global::System.Threading.Tasks.Task ReadInputAsync( ParseResult parseResult, @@ -355,9 +437,10 @@ public static TimeSpan ParseDuration(string value, string optionName) public static T DeserializeJsonValue(string json, JsonSerializerContext context) { - _ = context; - return JsonSerializer.Deserialize(json) ?? - throw new CliException($"Unable to deserialize generated CLI value as {typeof(T).Name}."); + var value = JsonSerializer.Deserialize(json, typeof(T), context); + return value is T typed + ? typed + : throw new CliException($"Unable to deserialize generated CLI value as {typeof(T).Name}."); } public static string SerializeKeyValuePairs(IEnumerable pairs) diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs index edda3bd29..9b38fc07d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"admin-api-keys-create", @"Create admin API key @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs index 6cb4864db..033ee6f3c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"admin-api-keys-delete", @"Delete admin API key @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs index 65dbb3bb4..d16eda61f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"admin-api-keys-get", @"Retrieve admin API key @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs index 756717a97..a016e49b3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"admin-api-keys-list", @"List all organization and project API keys. @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsApiGroupCommand.g.cs index 4c290b7c8..02558a34c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class AgentsApiGroupCommand +internal static partial class AgentsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"agents", @"Agents endpoint commands."); @@ -43,6 +45,7 @@ public static Command Create() command.Subcommands.Add(AgentsUpdateAgentCommandApiCommand.Create()); command.Subcommands.Add(AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.Create()); command.Subcommands.Add(AgentsUpdateAgentSessionCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs index 917c255c6..abdac1c29 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs @@ -93,6 +93,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent", @"Create an agent @@ -183,6 +185,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs index 1ba9a1d87..1d4eb5f36 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs @@ -49,6 +49,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent-environment-file", @"Create an agent environment file @@ -96,6 +98,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs index 21bb9ea12..b17bc1236 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -88,6 +88,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent-environment-template", @"Create an agent environment template @@ -185,6 +187,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs index b04d3f7b8..a2d5b1f98 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs @@ -45,6 +45,8 @@ internal static partial class AgentsCreateAgentSessionAsStreamCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent-session-as-stream", @"Create an agent session @@ -117,6 +119,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs index 797ee2423..1807dc358 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs @@ -44,6 +44,22 @@ internal static partial class AgentsCreateAgentSessionCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.SessionResource value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -65,6 +81,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent-session", @"Create an agent session @@ -88,7 +106,9 @@ public static Command Create() result.AddError(@"Specify at most one of --request-input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -115,9 +135,44 @@ await CliRuntime.RunAsync(async () => Instructions = agentInstructions, } - : __AgentBase; + : __AgentBase; var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Agents.CreateAgentSessionAsync( + metadata: metadata, + environment: environment, + input: input, + agentId: agentId, + vaultIds: vaultIds, + agent: agent, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Agents.RetrieveAgentSessionAsync( + sessionId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Agents.CreateAgentSessionAsync( metadata: metadata, @@ -136,6 +191,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs index 863cb7836..21838cf45 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs @@ -26,6 +26,8 @@ internal static partial class AgentsCreateAgentSessionEventsCommandApiCommand Required = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-agent-session-events", @"Create agent session input events @@ -52,6 +54,7 @@ await client.Agents.CreateAgentSessionEventsAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs index 22fa4a6bf..f992da93c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-agent", @"Delete an agent @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs index 7bd96cb25..121f6cec6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-agent-environment-template", @"Delete an agent environment template @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs index 32ad42b2d..a54d7c534 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-agent-session-artifact", @"Delete an agent session artifact @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs index 9c7bac0fe..d4211124a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-agent-session", @"Delete an agent session @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs index 008f45841..afb23b026 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-environment-files", @"List agent environment files @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs index 900f6ef54..c466d4026 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-environment-templates", @"List agent environment templates @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs index c7c265902..1cd291827 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-artifacts", @"List agent session artifacts @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs index fd7403a2e..d61d63d87 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class AgentsListAgentSessionEventsCommandApiCommand Description = @"The ID of the session.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-events", @"Stream agent session events @@ -40,6 +42,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs index 1a5157f39..323874481 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-items", @"List agent session items @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs index 6ac83891b..c3fcd0194 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-subagent-items", @"List subagent items @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs index 36c7b60a6..da32fd655 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs @@ -63,6 +63,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-subagent-turn-items", @"List subagent turn items @@ -112,6 +114,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs index 7e152492c..66550f2bc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-subagent-turns", @"List subagent turns @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs index 9479d2a7b..3ade7dc54 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-subagents", @"List session subagents @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs index f7395aecb..783fe7114 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-session-turns", @"List agent session turns @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs index f21509ee1..20bfb8178 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agent-sessions", @"List agent sessions @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs index d6709e327..94827f418 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-agents", @"List agents @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs index 813c0fe94..20096b750 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent", @"Retrieve an agent @@ -67,6 +69,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs index 463a41cc9..7da5aea0f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-environment", @"Retrieve an agent environment @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs index f3b4a2dc9..823f83eab 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-environment-template", @"Retrieve an agent environment template @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs index 869609ab3..7d676f72c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-session-artifact", @"Retrieve an agent session artifact @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs index 661e41730..9dacf9e22 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs @@ -19,6 +19,8 @@ internal static partial class AgentsRetrieveAgentSessionArtifactContentCommandAp Description = @"The immutable session artifact ID.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-session-artifact-content", @"Retrieve agent session artifact content @@ -42,6 +44,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs index 357248dd8..6a27ff95a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-session", @"Retrieve an agent session @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs index 2e8a77d28..a961c24cc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-session-subagent", @"Retrieve a session subagent @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs index d70fd702e..418f3041d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-session-subagent-turn", @"Retrieve a subagent turn @@ -77,6 +79,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs index 922a5a210..2ee840269 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-agent-session-turn", @"Retrieve an agent session turn @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs index 4423e0c1d..492232f0f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs @@ -98,6 +98,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-agent", @"Update an agent @@ -191,6 +193,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs index d02046496..6f1a8cc82 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -94,6 +94,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-agent-environment-template", @"Update an agent environment template @@ -194,6 +196,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs index 330880988..f69939cf3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-agent-session", @"Update an agent session @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs index 07ce639bd..2429ff14d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ApiCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ApiCommand +internal static partial class ApiCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command("api", "Generated endpoint commands."); @@ -53,6 +55,7 @@ public static Command Create() command.Subcommands.Add(UsersApiGroupCommand.Create()); command.Subcommands.Add(VaultsApiGroupCommand.Create()); command.Subcommands.Add(VectorStoresApiGroupCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsApiGroupCommand.g.cs index cac8778e0..2463bcd0a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsApiGroupCommand.g.cs @@ -4,16 +4,20 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class AssistantsApiGroupCommand +internal static partial class AssistantsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"assistants", @"Assistants endpoint commands."); command.Subcommands.Add(AssistantsCancelRunCommandApiCommand.Create()); command.Subcommands.Add(AssistantsCreateMessageCommandApiCommand.Create()); command.Subcommands.Add(AssistantsCreateRunCommandApiCommand.Create()); + command.Subcommands.Add(AssistantsCreateRunAsStreamCommandApiCommand.Create()); command.Subcommands.Add(AssistantsCreateThreadCommandApiCommand.Create()); command.Subcommands.Add(AssistantsCreateThreadAndRunCommandApiCommand.Create()); + command.Subcommands.Add(AssistantsCreateThreadAndRunAsStreamCommandApiCommand.Create()); command.Subcommands.Add(AssistantsDeleteMessageCommandApiCommand.Create()); command.Subcommands.Add(AssistantsDeleteThreadCommandApiCommand.Create()); command.Subcommands.Add(AssistantsGetMessageCommandApiCommand.Create()); @@ -27,6 +31,8 @@ public static Command Create() command.Subcommands.Add(AssistantsModifyRunCommandApiCommand.Create()); command.Subcommands.Add(AssistantsModifyThreadCommandApiCommand.Create()); command.Subcommands.Add(AssistantsSubmitToolOuputsToRunCommandApiCommand.Create()); + command.Subcommands.Add(AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs index eefd915e6..5e507f693 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-run", @"Cancel a run @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs index d76e19b62..76939a35a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs @@ -57,6 +57,22 @@ internal static partial class AssistantsCreateMessageCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.MessageObject value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -78,6 +94,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-message", @"Create message @@ -101,7 +119,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -116,9 +136,43 @@ await CliRuntime.RunAsync(async () => var role = parseResult.GetRequiredValue(Role); var content = parseResult.GetRequiredValue(Content); var attachments = CliRuntime.WasSpecified(parseResult, Attachments) ? parseResult.GetValue(Attachments) : (__requestBase is { } __AttachmentsBaseValue ? __AttachmentsBaseValue.Attachments : default); - var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); + var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Assistants.CreateMessageAsync( + threadId: threadId, + role: role, + content: content, + attachments: attachments, + metadata: metadata, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Assistants.GetMessageAsync( + threadId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Assistants.CreateMessageAsync( threadId: threadId, @@ -144,6 +198,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs new file mode 100644 index 000000000..659dc7688 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs @@ -0,0 +1,198 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class AssistantsCreateRunAsStreamCommandApiCommand +{ + private static Argument ThreadId { get; } = new( + name: @"thread-id") + { + Description = @"The ID of the thread to run.", + }; + + private static Option?> Include { get; } = new( + name: @"--include") + { + Description = @"A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content. + +See the [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization) for more information. +", + }; + + private static Option?> Model { get; } = new( + name: @"--model") + { + Description = @"The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.", + }; + + private static Option ReasoningEffort { get; } = new( + name: @"--reasoning-effort") + { + Description = @"", + }; + + private static Option?> AdditionalMessages { get; } = new( + name: @"--additional-messages") + { + Description = @"Adds additional messages to the thread before creating the run.", + }; + + private static Option>?> Tools { get; } = new( + name: @"--tools") + { + Description = @"Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.", + }; + + private static Option?> Metadata { get; } = new( + name: @"--metadata") + { + Description = @"", + }; + + private static Option?> TruncationStrategy { get; } = new( + name: @"--truncation-strategy") + { + Description = @"", + }; + + private static Option?> ToolChoice { get; } = new( + name: @"--tool-choice") + { + Description = @"", + }; + + private static Option ResponseFormat { get; } = new( + name: @"--response-format") + { + Description = @"Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + +Setting to `{ ""type"": ""json_schema"", ""json_schema"": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs). + +Setting to `{ ""type"": ""json_object"" }` enables JSON mode, which ensures the message the model generates is valid JSON. + +**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly ""stuck"" request. Also note that the message content may be partially cut off if `finish_reason=""length""`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. +", + }; + private static readonly CreateRunRequestOptionSet CreateRunRequestOptionSetOptions = CreateRunRequestOptionSet.Create(); + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + static partial void CustomizeCommand(ref Command command); + + public static Command Create() + { + var command = new Command(@"create-run-as-stream", @"Create run +Create a run."); + command.Arguments.Add(ThreadId); + command.Options.Add(Include); + command.Options.Add(Model); + command.Options.Add(ReasoningEffort); + command.Options.Add(AdditionalMessages); + command.Options.Add(Tools); + command.Options.Add(Metadata); + command.Options.Add(TruncationStrategy); + command.Options.Add(ToolChoice); + command.Options.Add(ResponseFormat); command.Options.Add(CreateRunRequestOptionSetOptions.AssistantId); + command.Options.Add(CreateRunRequestOptionSetOptions.Instructions); + command.Options.Add(CreateRunRequestOptionSetOptions.AdditionalInstructions); + command.Options.Add(CreateRunRequestOptionSetOptions.Temperature); + command.Options.Add(CreateRunRequestOptionSetOptions.TopP); + command.Options.Add(CreateRunRequestOptionSetOptions.MaxPromptTokens); + command.Options.Add(CreateRunRequestOptionSetOptions.MaxCompletionTokens); + command.Options.Add(CreateRunRequestOptionSetOptions.ParallelToolCalls); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var threadId = parseResult.GetRequiredValue(ThreadId); + var include = parseResult.GetValue(Include); + var model = CliRuntime.WasSpecified(parseResult, Model) ? parseResult.GetValue(Model) : (__requestBase is { } __ModelBaseValue ? __ModelBaseValue.Model : default); + var reasoningEffort = CliRuntime.WasSpecified(parseResult, ReasoningEffort) ? parseResult.GetValue(ReasoningEffort) : (__requestBase is { } __ReasoningEffortBaseValue ? __ReasoningEffortBaseValue.ReasoningEffort : default); + var additionalMessages = CliRuntime.WasSpecified(parseResult, AdditionalMessages) ? parseResult.GetValue(AdditionalMessages) : (__requestBase is { } __AdditionalMessagesBaseValue ? __AdditionalMessagesBaseValue.AdditionalMessages : default); + var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : (__requestBase is { } __ToolsBaseValue ? __ToolsBaseValue.Tools : default); + var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); + var truncationStrategy = CliRuntime.WasSpecified(parseResult, TruncationStrategy) ? parseResult.GetValue(TruncationStrategy) : (__requestBase is { } __TruncationStrategyBaseValue ? __TruncationStrategyBaseValue.TruncationStrategy : default); + var toolChoice = CliRuntime.WasSpecified(parseResult, ToolChoice) ? parseResult.GetValue(ToolChoice) : (__requestBase is { } __ToolChoiceBaseValue ? __ToolChoiceBaseValue.ToolChoice : default); + var responseFormat = CliRuntime.WasSpecified(parseResult, ResponseFormat) ? parseResult.GetValue(ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default); var assistantId = parseResult.GetRequiredValue(CreateRunRequestOptionSetOptions.AssistantId); + var instructions = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.Instructions) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.Instructions) : (__requestBase is { } __InstructionsBaseValue ? __InstructionsBaseValue.Instructions : default); + var additionalInstructions = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.AdditionalInstructions) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.AdditionalInstructions) : (__requestBase is { } __AdditionalInstructionsBaseValue ? __AdditionalInstructionsBaseValue.AdditionalInstructions : default); + var temperature = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.Temperature) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default); + var topP = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.TopP) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.TopP) : (__requestBase is { } __TopPBaseValue ? __TopPBaseValue.TopP : default); + var maxPromptTokens = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.MaxPromptTokens) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.MaxPromptTokens) : (__requestBase is { } __MaxPromptTokensBaseValue ? __MaxPromptTokensBaseValue.MaxPromptTokens : default); + var maxCompletionTokens = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.MaxCompletionTokens) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.MaxCompletionTokens) : (__requestBase is { } __MaxCompletionTokensBaseValue ? __MaxCompletionTokensBaseValue.MaxCompletionTokens : default); + var parallelToolCalls = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.ParallelToolCalls) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = client.Assistants.CreateRunAsStreamAsync( + threadId: threadId, + include: include, + model: model, + reasoningEffort: reasoningEffort, + additionalMessages: additionalMessages, + tools: tools, + metadata: metadata, + truncationStrategy: truncationStrategy, + toolChoice: toolChoice, + responseFormat: responseFormat, + assistantId: assistantId, + instructions: instructions, + additionalInstructions: additionalInstructions, + temperature: temperature, + topP: topP, + maxPromptTokens: maxPromptTokens, + maxCompletionTokens: maxCompletionTokens, + parallelToolCalls: parallelToolCalls, + cancellationToken: cancellationToken); + + await foreach (var item in response.WithCancellation(cancellationToken).ConfigureAwait(false)) + { + await CliRuntime.WriteResponseLineAsync( + parseResult, + item, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs index d0f34849a..12b919957 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs @@ -22,13 +22,6 @@ internal static partial class AssistantsCreateRunCommandApiCommand ", }; - private static Option AssistantId { get; } = new( - name: @"--assistant-id") - { - Description = @"The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run.", - Required = true, - }; - private static Option?> Model { get; } = new( name: @"--model") { @@ -41,18 +34,6 @@ internal static partial class AssistantsCreateRunCommandApiCommand Description = @"", }; - private static Option Instructions { get; } = new( - name: @"--instructions") - { - Description = @"Overrides the [instructions](https://developers.openai.com/api/docs/assistants/migration) of the assistant. This is useful for modifying the behavior on a per-run basis.", - }; - - private static Option AdditionalInstructions { get; } = new( - name: @"--additional-instructions") - { - Description = @"Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions.", - }; - private static Option?> AdditionalMessages { get; } = new( name: @"--additional-messages") { @@ -71,41 +52,6 @@ internal static partial class AssistantsCreateRunCommandApiCommand Description = @"", }; - private static Option Temperature { get; } = new( - name: @"--temperature") - { - Description = @"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. -", - }; - - private static Option TopP { get; } = new( - name: @"--top-p") - { - Description = @"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. - -We generally recommend altering this or temperature but not both. -", - }; - - private static Option Stream { get; } = CliRuntime.CreateNullableBoolOption( - name: @"--stream", - description: @"If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. -"); - - private static Option MaxPromptTokens { get; } = new( - name: @"--max-prompt-tokens") - { - Description = @"The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. -", - }; - - private static Option MaxCompletionTokens { get; } = new( - name: @"--max-completion-tokens") - { - Description = @"The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. -", - }; - private static Option?> TruncationStrategy { get; } = new( name: @"--truncation-strategy") { @@ -118,10 +64,6 @@ We generally recommend altering this or temperature but not both. Description = @"", }; - private static Option ParallelToolCalls { get; } = CliRuntime.CreateNullableBoolOption( - name: @"--parallel-tool-calls", - description: @"Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use."); - private static Option ResponseFormat { get; } = new( name: @"--response-format") { @@ -134,6 +76,7 @@ We generally recommend altering this or temperature but not both. **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly ""stuck"" request. Also note that the message content may be partially cut off if `finish_reason=""length""`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ", }; + private static readonly CreateRunRequestOptionSet CreateRunRequestOptionSetOptions = CreateRunRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -150,6 +93,22 @@ We generally recommend altering this or temperature but not both. Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.RunObject value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -171,29 +130,29 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-run", @"Create run Create a run."); command.Arguments.Add(ThreadId); command.Options.Add(Include); - command.Options.Add(AssistantId); command.Options.Add(Model); command.Options.Add(ReasoningEffort); - command.Options.Add(Instructions); - command.Options.Add(AdditionalInstructions); command.Options.Add(AdditionalMessages); command.Options.Add(Tools); command.Options.Add(Metadata); - command.Options.Add(Temperature); - command.Options.Add(TopP); - command.Options.Add(Stream); - command.Options.Add(MaxPromptTokens); - command.Options.Add(MaxCompletionTokens); command.Options.Add(TruncationStrategy); command.Options.Add(ToolChoice); - command.Options.Add(ParallelToolCalls); - command.Options.Add(ResponseFormat); + command.Options.Add(ResponseFormat); command.Options.Add(CreateRunRequestOptionSetOptions.AssistantId); + command.Options.Add(CreateRunRequestOptionSetOptions.Instructions); + command.Options.Add(CreateRunRequestOptionSetOptions.AdditionalInstructions); + command.Options.Add(CreateRunRequestOptionSetOptions.Temperature); + command.Options.Add(CreateRunRequestOptionSetOptions.TopP); + command.Options.Add(CreateRunRequestOptionSetOptions.MaxPromptTokens); + command.Options.Add(CreateRunRequestOptionSetOptions.MaxCompletionTokens); + command.Options.Add(CreateRunRequestOptionSetOptions.ParallelToolCalls); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -208,7 +167,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -221,46 +182,90 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var threadId = parseResult.GetRequiredValue(ThreadId); var include = parseResult.GetValue(Include); - var assistantId = parseResult.GetRequiredValue(AssistantId); var model = CliRuntime.WasSpecified(parseResult, Model) ? parseResult.GetValue(Model) : (__requestBase is { } __ModelBaseValue ? __ModelBaseValue.Model : default); var reasoningEffort = CliRuntime.WasSpecified(parseResult, ReasoningEffort) ? parseResult.GetValue(ReasoningEffort) : (__requestBase is { } __ReasoningEffortBaseValue ? __ReasoningEffortBaseValue.ReasoningEffort : default); - var instructions = CliRuntime.WasSpecified(parseResult, Instructions) ? parseResult.GetValue(Instructions) : (__requestBase is { } __InstructionsBaseValue ? __InstructionsBaseValue.Instructions : default); - var additionalInstructions = CliRuntime.WasSpecified(parseResult, AdditionalInstructions) ? parseResult.GetValue(AdditionalInstructions) : (__requestBase is { } __AdditionalInstructionsBaseValue ? __AdditionalInstructionsBaseValue.AdditionalInstructions : default); var additionalMessages = CliRuntime.WasSpecified(parseResult, AdditionalMessages) ? parseResult.GetValue(AdditionalMessages) : (__requestBase is { } __AdditionalMessagesBaseValue ? __AdditionalMessagesBaseValue.AdditionalMessages : default); var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : (__requestBase is { } __ToolsBaseValue ? __ToolsBaseValue.Tools : default); var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); - var temperature = CliRuntime.WasSpecified(parseResult, Temperature) ? parseResult.GetValue(Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default); - var topP = CliRuntime.WasSpecified(parseResult, TopP) ? parseResult.GetValue(TopP) : (__requestBase is { } __TopPBaseValue ? __TopPBaseValue.TopP : default); - var stream = CliRuntime.WasSpecified(parseResult, Stream) ? parseResult.GetValue(Stream) : (__requestBase is { } __StreamBaseValue ? __StreamBaseValue.Stream : default); - var maxPromptTokens = CliRuntime.WasSpecified(parseResult, MaxPromptTokens) ? parseResult.GetValue(MaxPromptTokens) : (__requestBase is { } __MaxPromptTokensBaseValue ? __MaxPromptTokensBaseValue.MaxPromptTokens : default); - var maxCompletionTokens = CliRuntime.WasSpecified(parseResult, MaxCompletionTokens) ? parseResult.GetValue(MaxCompletionTokens) : (__requestBase is { } __MaxCompletionTokensBaseValue ? __MaxCompletionTokensBaseValue.MaxCompletionTokens : default); var truncationStrategy = CliRuntime.WasSpecified(parseResult, TruncationStrategy) ? parseResult.GetValue(TruncationStrategy) : (__requestBase is { } __TruncationStrategyBaseValue ? __TruncationStrategyBaseValue.TruncationStrategy : default); var toolChoice = CliRuntime.WasSpecified(parseResult, ToolChoice) ? parseResult.GetValue(ToolChoice) : (__requestBase is { } __ToolChoiceBaseValue ? __ToolChoiceBaseValue.ToolChoice : default); - var parallelToolCalls = CliRuntime.WasSpecified(parseResult, ParallelToolCalls) ? parseResult.GetValue(ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); - var responseFormat = CliRuntime.WasSpecified(parseResult, ResponseFormat) ? parseResult.GetValue(ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default); + var responseFormat = CliRuntime.WasSpecified(parseResult, ResponseFormat) ? parseResult.GetValue(ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default); var assistantId = parseResult.GetRequiredValue(CreateRunRequestOptionSetOptions.AssistantId); + var instructions = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.Instructions) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.Instructions) : (__requestBase is { } __InstructionsBaseValue ? __InstructionsBaseValue.Instructions : default); + var additionalInstructions = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.AdditionalInstructions) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.AdditionalInstructions) : (__requestBase is { } __AdditionalInstructionsBaseValue ? __AdditionalInstructionsBaseValue.AdditionalInstructions : default); + var temperature = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.Temperature) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default); + var topP = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.TopP) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.TopP) : (__requestBase is { } __TopPBaseValue ? __TopPBaseValue.TopP : default); + var maxPromptTokens = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.MaxPromptTokens) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.MaxPromptTokens) : (__requestBase is { } __MaxPromptTokensBaseValue ? __MaxPromptTokensBaseValue.MaxPromptTokens : default); + var maxCompletionTokens = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.MaxCompletionTokens) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.MaxCompletionTokens) : (__requestBase is { } __MaxCompletionTokensBaseValue ? __MaxCompletionTokensBaseValue.MaxCompletionTokens : default); + var parallelToolCalls = CliRuntime.WasSpecified(parseResult, CreateRunRequestOptionSetOptions.ParallelToolCalls) ? parseResult.GetValue(CreateRunRequestOptionSetOptions.ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - - var response = await client.Assistants.CreateRunAsync( + if (wait) + { + var createResponse = await client.Assistants.CreateRunAsync( threadId: threadId, include: include, - assistantId: assistantId, model: model, reasoningEffort: reasoningEffort, - instructions: instructions, - additionalInstructions: additionalInstructions, additionalMessages: additionalMessages, tools: tools, metadata: metadata, + truncationStrategy: truncationStrategy, + toolChoice: toolChoice, + responseFormat: responseFormat, + assistantId: assistantId, + instructions: instructions, + additionalInstructions: additionalInstructions, temperature: temperature, topP: topP, - stream: stream, maxPromptTokens: maxPromptTokens, maxCompletionTokens: maxCompletionTokens, + parallelToolCalls: parallelToolCalls, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Assistants.GetRunAsync( + threadId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } + + var response = await client.Assistants.CreateRunAsync( + threadId: threadId, + include: include, + model: model, + reasoningEffort: reasoningEffort, + additionalMessages: additionalMessages, + tools: tools, + metadata: metadata, truncationStrategy: truncationStrategy, toolChoice: toolChoice, - parallelToolCalls: parallelToolCalls, responseFormat: responseFormat, + assistantId: assistantId, + instructions: instructions, + additionalInstructions: additionalInstructions, + temperature: temperature, + topP: topP, + maxPromptTokens: maxPromptTokens, + maxCompletionTokens: maxCompletionTokens, + parallelToolCalls: parallelToolCalls, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -279,6 +284,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs new file mode 100644 index 000000000..9ee5c3f1a --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs @@ -0,0 +1,177 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class AssistantsCreateThreadAndRunAsStreamCommandApiCommand +{ + private static Option Thread { get; } = new( + name: @"--thread") + { + Description = @"Options to create a new thread. If no thread is provided when running a +request, an empty thread will be created. +", + }; + + private static Option?> Model { get; } = new( + name: @"--model") + { + Description = @"The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.", + }; + + private static Option>?> Tools { get; } = new( + name: @"--tools") + { + Description = @"Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.", + }; + + private static Option ToolResources { get; } = new( + name: @"--tool-resources") + { + Description = @"A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs. +", + }; + + private static Option?> Metadata { get; } = new( + name: @"--metadata") + { + Description = @"", + }; + + private static Option?> TruncationStrategy { get; } = new( + name: @"--truncation-strategy") + { + Description = @"", + }; + + private static Option?> ToolChoice { get; } = new( + name: @"--tool-choice") + { + Description = @"", + }; + + private static Option ResponseFormat { get; } = new( + name: @"--response-format") + { + Description = @"Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`. + +Setting to `{ ""type"": ""json_schema"", ""json_schema"": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs). + +Setting to `{ ""type"": ""json_object"" }` enables JSON mode, which ensures the message the model generates is valid JSON. + +**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly ""stuck"" request. Also note that the message content may be partially cut off if `finish_reason=""length""`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. +", + }; + private static readonly CreateThreadAndRunRequestOptionSet CreateThreadAndRunRequestOptionSetOptions = CreateThreadAndRunRequestOptionSet.Create(); + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + static partial void CustomizeCommand(ref Command command); + + public static Command Create() + { + var command = new Command(@"create-thread-and-run-as-stream", @"Create thread and run +Create a thread and run it in one request."); + command.Options.Add(Thread); + command.Options.Add(Model); + command.Options.Add(Tools); + command.Options.Add(ToolResources); + command.Options.Add(Metadata); + command.Options.Add(TruncationStrategy); + command.Options.Add(ToolChoice); + command.Options.Add(ResponseFormat); command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.AssistantId); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.Instructions); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.Temperature); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.TopP); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.MaxPromptTokens); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.MaxCompletionTokens); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.ParallelToolCalls); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var thread = CliRuntime.WasSpecified(parseResult, Thread) ? parseResult.GetValue(Thread) : (__requestBase is { } __ThreadBaseValue ? __ThreadBaseValue.Thread : default); + var model = CliRuntime.WasSpecified(parseResult, Model) ? parseResult.GetValue(Model) : (__requestBase is { } __ModelBaseValue ? __ModelBaseValue.Model : default); + var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : (__requestBase is { } __ToolsBaseValue ? __ToolsBaseValue.Tools : default); + var toolResources = CliRuntime.WasSpecified(parseResult, ToolResources) ? parseResult.GetValue(ToolResources) : (__requestBase is { } __ToolResourcesBaseValue ? __ToolResourcesBaseValue.ToolResources : default); + var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); + var truncationStrategy = CliRuntime.WasSpecified(parseResult, TruncationStrategy) ? parseResult.GetValue(TruncationStrategy) : (__requestBase is { } __TruncationStrategyBaseValue ? __TruncationStrategyBaseValue.TruncationStrategy : default); + var toolChoice = CliRuntime.WasSpecified(parseResult, ToolChoice) ? parseResult.GetValue(ToolChoice) : (__requestBase is { } __ToolChoiceBaseValue ? __ToolChoiceBaseValue.ToolChoice : default); + var responseFormat = CliRuntime.WasSpecified(parseResult, ResponseFormat) ? parseResult.GetValue(ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default); var assistantId = parseResult.GetRequiredValue(CreateThreadAndRunRequestOptionSetOptions.AssistantId); + var instructions = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.Instructions) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.Instructions) : (__requestBase is { } __InstructionsBaseValue ? __InstructionsBaseValue.Instructions : default); + var temperature = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.Temperature) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default); + var topP = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.TopP) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.TopP) : (__requestBase is { } __TopPBaseValue ? __TopPBaseValue.TopP : default); + var maxPromptTokens = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.MaxPromptTokens) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.MaxPromptTokens) : (__requestBase is { } __MaxPromptTokensBaseValue ? __MaxPromptTokensBaseValue.MaxPromptTokens : default); + var maxCompletionTokens = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.MaxCompletionTokens) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.MaxCompletionTokens) : (__requestBase is { } __MaxCompletionTokensBaseValue ? __MaxCompletionTokensBaseValue.MaxCompletionTokens : default); + var parallelToolCalls = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.ParallelToolCalls) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = client.Assistants.CreateThreadAndRunAsStreamAsync( + thread: thread, + model: model, + tools: tools, + toolResources: toolResources, + metadata: metadata, + truncationStrategy: truncationStrategy, + toolChoice: toolChoice, + responseFormat: responseFormat, + assistantId: assistantId, + instructions: instructions, + temperature: temperature, + topP: topP, + maxPromptTokens: maxPromptTokens, + maxCompletionTokens: maxCompletionTokens, + parallelToolCalls: parallelToolCalls, + cancellationToken: cancellationToken); + + await foreach (var item in response.WithCancellation(cancellationToken).ConfigureAwait(false)) + { + await CliRuntime.WriteResponseLineAsync( + parseResult, + item, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs index b80f55121..4d7d37068 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs @@ -7,13 +7,6 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; internal static partial class AssistantsCreateThreadAndRunCommandApiCommand { - private static Option AssistantId { get; } = new( - name: @"--assistant-id") - { - Description = @"The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run.", - Required = true, - }; - private static Option Thread { get; } = new( name: @"--thread") { @@ -28,12 +21,6 @@ internal static partial class AssistantsCreateThreadAndRunCommandApiCommand Description = @"The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.", }; - private static Option Instructions { get; } = new( - name: @"--instructions") - { - Description = @"Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis.", - }; - private static Option>?> Tools { get; } = new( name: @"--tools") { @@ -53,41 +40,6 @@ internal static partial class AssistantsCreateThreadAndRunCommandApiCommand Description = @"", }; - private static Option Temperature { get; } = new( - name: @"--temperature") - { - Description = @"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. -", - }; - - private static Option TopP { get; } = new( - name: @"--top-p") - { - Description = @"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. - -We generally recommend altering this or temperature but not both. -", - }; - - private static Option Stream { get; } = CliRuntime.CreateNullableBoolOption( - name: @"--stream", - description: @"If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. -"); - - private static Option MaxPromptTokens { get; } = new( - name: @"--max-prompt-tokens") - { - Description = @"The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. -", - }; - - private static Option MaxCompletionTokens { get; } = new( - name: @"--max-completion-tokens") - { - Description = @"The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. -", - }; - private static Option?> TruncationStrategy { get; } = new( name: @"--truncation-strategy") { @@ -100,10 +52,6 @@ We generally recommend altering this or temperature but not both. Description = @"", }; - private static Option ParallelToolCalls { get; } = CliRuntime.CreateNullableBoolOption( - name: @"--parallel-tool-calls", - description: @"Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use."); - private static Option ResponseFormat { get; } = new( name: @"--response-format") { @@ -116,6 +64,7 @@ We generally recommend altering this or temperature but not both. **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly ""stuck"" request. Also note that the message content may be partially cut off if `finish_reason=""length""`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. ", }; + private static readonly CreateThreadAndRunRequestOptionSet CreateThreadAndRunRequestOptionSetOptions = CreateThreadAndRunRequestOptionSet.Create(); private static Option Input { get; } = new(@"--input") { Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", @@ -153,26 +102,26 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-thread-and-run", @"Create thread and run Create a thread and run it in one request."); - command.Options.Add(AssistantId); command.Options.Add(Thread); command.Options.Add(Model); - command.Options.Add(Instructions); command.Options.Add(Tools); command.Options.Add(ToolResources); command.Options.Add(Metadata); - command.Options.Add(Temperature); - command.Options.Add(TopP); - command.Options.Add(Stream); - command.Options.Add(MaxPromptTokens); - command.Options.Add(MaxCompletionTokens); command.Options.Add(TruncationStrategy); command.Options.Add(ToolChoice); - command.Options.Add(ParallelToolCalls); - command.Options.Add(ResponseFormat); + command.Options.Add(ResponseFormat); command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.AssistantId); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.Instructions); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.Temperature); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.TopP); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.MaxPromptTokens); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.MaxCompletionTokens); + command.Options.Add(CreateThreadAndRunRequestOptionSetOptions.ParallelToolCalls); command.Options.Add(Input); command.Options.Add(RequestJson); command.Options.Add(RequestFile); @@ -198,42 +147,39 @@ await CliRuntime.RunAsync(async () => RequestFile, global::tryAGI.OpenAI.SourceGenerationContext.Default, cancellationToken).ConfigureAwait(false); - var assistantId = parseResult.GetRequiredValue(AssistantId); var thread = CliRuntime.WasSpecified(parseResult, Thread) ? parseResult.GetValue(Thread) : (__requestBase is { } __ThreadBaseValue ? __ThreadBaseValue.Thread : default); var model = CliRuntime.WasSpecified(parseResult, Model) ? parseResult.GetValue(Model) : (__requestBase is { } __ModelBaseValue ? __ModelBaseValue.Model : default); - var instructions = CliRuntime.WasSpecified(parseResult, Instructions) ? parseResult.GetValue(Instructions) : (__requestBase is { } __InstructionsBaseValue ? __InstructionsBaseValue.Instructions : default); var tools = CliRuntime.WasSpecified(parseResult, Tools) ? parseResult.GetValue(Tools) : (__requestBase is { } __ToolsBaseValue ? __ToolsBaseValue.Tools : default); var toolResources = CliRuntime.WasSpecified(parseResult, ToolResources) ? parseResult.GetValue(ToolResources) : (__requestBase is { } __ToolResourcesBaseValue ? __ToolResourcesBaseValue.ToolResources : default); var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); - var temperature = CliRuntime.WasSpecified(parseResult, Temperature) ? parseResult.GetValue(Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default); - var topP = CliRuntime.WasSpecified(parseResult, TopP) ? parseResult.GetValue(TopP) : (__requestBase is { } __TopPBaseValue ? __TopPBaseValue.TopP : default); - var stream = CliRuntime.WasSpecified(parseResult, Stream) ? parseResult.GetValue(Stream) : (__requestBase is { } __StreamBaseValue ? __StreamBaseValue.Stream : default); - var maxPromptTokens = CliRuntime.WasSpecified(parseResult, MaxPromptTokens) ? parseResult.GetValue(MaxPromptTokens) : (__requestBase is { } __MaxPromptTokensBaseValue ? __MaxPromptTokensBaseValue.MaxPromptTokens : default); - var maxCompletionTokens = CliRuntime.WasSpecified(parseResult, MaxCompletionTokens) ? parseResult.GetValue(MaxCompletionTokens) : (__requestBase is { } __MaxCompletionTokensBaseValue ? __MaxCompletionTokensBaseValue.MaxCompletionTokens : default); var truncationStrategy = CliRuntime.WasSpecified(parseResult, TruncationStrategy) ? parseResult.GetValue(TruncationStrategy) : (__requestBase is { } __TruncationStrategyBaseValue ? __TruncationStrategyBaseValue.TruncationStrategy : default); var toolChoice = CliRuntime.WasSpecified(parseResult, ToolChoice) ? parseResult.GetValue(ToolChoice) : (__requestBase is { } __ToolChoiceBaseValue ? __ToolChoiceBaseValue.ToolChoice : default); - var parallelToolCalls = CliRuntime.WasSpecified(parseResult, ParallelToolCalls) ? parseResult.GetValue(ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); - var responseFormat = CliRuntime.WasSpecified(parseResult, ResponseFormat) ? parseResult.GetValue(ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default); + var responseFormat = CliRuntime.WasSpecified(parseResult, ResponseFormat) ? parseResult.GetValue(ResponseFormat) : (__requestBase is { } __ResponseFormatBaseValue ? __ResponseFormatBaseValue.ResponseFormat : default); var assistantId = parseResult.GetRequiredValue(CreateThreadAndRunRequestOptionSetOptions.AssistantId); + var instructions = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.Instructions) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.Instructions) : (__requestBase is { } __InstructionsBaseValue ? __InstructionsBaseValue.Instructions : default); + var temperature = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.Temperature) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.Temperature) : (__requestBase is { } __TemperatureBaseValue ? __TemperatureBaseValue.Temperature : default); + var topP = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.TopP) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.TopP) : (__requestBase is { } __TopPBaseValue ? __TopPBaseValue.TopP : default); + var maxPromptTokens = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.MaxPromptTokens) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.MaxPromptTokens) : (__requestBase is { } __MaxPromptTokensBaseValue ? __MaxPromptTokensBaseValue.MaxPromptTokens : default); + var maxCompletionTokens = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.MaxCompletionTokens) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.MaxCompletionTokens) : (__requestBase is { } __MaxCompletionTokensBaseValue ? __MaxCompletionTokensBaseValue.MaxCompletionTokens : default); + var parallelToolCalls = CliRuntime.WasSpecified(parseResult, CreateThreadAndRunRequestOptionSetOptions.ParallelToolCalls) ? parseResult.GetValue(CreateThreadAndRunRequestOptionSetOptions.ParallelToolCalls) : (__requestBase is { } __ParallelToolCallsBaseValue ? __ParallelToolCallsBaseValue.ParallelToolCalls : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); var response = await client.Assistants.CreateThreadAndRunAsync( - assistantId: assistantId, thread: thread, model: model, - instructions: instructions, tools: tools, toolResources: toolResources, metadata: metadata, + truncationStrategy: truncationStrategy, + toolChoice: toolChoice, + responseFormat: responseFormat, + assistantId: assistantId, + instructions: instructions, temperature: temperature, topP: topP, - stream: stream, maxPromptTokens: maxPromptTokens, maxCompletionTokens: maxCompletionTokens, - truncationStrategy: truncationStrategy, - toolChoice: toolChoice, parallelToolCalls: parallelToolCalls, - responseFormat: responseFormat, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -252,6 +198,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs index 9684699f5..1d680fc7c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-thread", @"Create thread @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs index 81edb7c58..0853cad2a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-message", @"Delete message @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs index 7efa9f9e3..03e50a0d6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-thread", @"Delete thread @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs index 1ca63849b..a0fbd29f1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-message", @"Retrieve message @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs index f57eef8c5..6ad78f53a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-run", @"Retrieve run @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs index f07839b2f..bf70adfda 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-run-step", @"Retrieve run step @@ -89,6 +91,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs index 3ed0dcbf6..23a29dd78 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-thread", @"Retrieve thread @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs index 4dbaada8b..85fef6d29 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs @@ -68,6 +68,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-messages", @"List messages @@ -117,6 +119,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs index 48ddca7a1..471df6ebb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs @@ -76,6 +76,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-run-steps", @"List run steps @@ -128,6 +130,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs index e428f4f78..6ae0f7303 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-runs", @"List runs @@ -107,6 +109,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs index 55a70636c..7ddb72b1e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-message", @"Modify message @@ -121,6 +123,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs index 0c5b7774f..7c8b6c745 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-run", @"Modify run @@ -121,6 +123,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs index e5173d5bc..1691007eb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-thread", @"Modify thread @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs new file mode 100644 index 000000000..05605866d --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs @@ -0,0 +1,68 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal static partial class AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand +{ + private static Argument ThreadId { get; } = new( + name: @"thread-id") + { + Description = @"The ID of the [thread](https://developers.openai.com/api/docs/assistants/migration) to which this run belongs.", + }; + + private static Argument RunId { get; } = new( + name: @"run-id") + { + Description = @"The ID of the run that requires the tool output submission.", + }; + + private static Option> ToolOutputs { get; } = new( + name: @"--tool-outputs") + { + Description = @"A list of tools for which the outputs are being submitted.", + Required = true, + }; + + static partial void CustomizeCommand(ref Command command); + + public static Command Create() + { + var command = new Command(@"submit-tool-ouputs-to-run-as-stream", @"Submit tool outputs to run +When a run has the `status: ""requires_action""` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. +"); + command.Arguments.Add(ThreadId); + command.Arguments.Add(RunId); + command.Options.Add(ToolOutputs); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var threadId = parseResult.GetRequiredValue(ThreadId); + var runId = parseResult.GetRequiredValue(RunId); + var toolOutputs = parseResult.GetRequiredValue(ToolOutputs); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = client.Assistants.SubmitToolOuputsToRunAsStreamAsync( + threadId: threadId, + runId: runId, + toolOutputs: toolOutputs, + cancellationToken: cancellationToken); + + await foreach (var item in response.WithCancellation(cancellationToken).ConfigureAwait(false)) + { + await CliRuntime.WriteResponseLineAsync( + parseResult, + item, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); + return command; + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs index cb5689fd8..18deb18fa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs @@ -26,26 +26,6 @@ internal static partial class AssistantsSubmitToolOuputsToRunCommandApiCommand Required = true, }; - private static Option Stream { get; } = CliRuntime.CreateNullableBoolOption( - name: @"--stream", - description: @""); - private static Option Input { get; } = new(@"--input") - { - Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", - }; - - private static Option RequestJson { get; } = new(@"--request-json") - { - Description = "Request body as JSON.", - Hidden = true, - }; - - private static Option RequestFile { get; } = new(@"--request-file") - { - Description = "Path to a JSON request file, or '-' for stdin.", - Hidden = true, - }; - private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.RunObject value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; @@ -66,6 +46,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"submit-tool-ouputs-to-run", @"Submit tool outputs to run @@ -74,36 +56,14 @@ public static Command Create() command.Arguments.Add(ThreadId); command.Arguments.Add(RunId); command.Options.Add(ToolOutputs); - command.Options.Add(Stream); - command.Options.Add(Input); - command.Options.Add(RequestJson); - command.Options.Add(RequestFile); - command.Validators.Add(result => - { - var hasInput = result.GetResult(Input) is not null; - var hasRequestJson = result.GetResult(RequestJson) is not null; - var hasRequestFile = result.GetResult(RequestFile) is not null; - var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); - if (specifiedCount > 1) - { - result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); - } - }); + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { - var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( - parseResult, - Input, - RequestJson, - RequestFile, - global::tryAGI.OpenAI.SourceGenerationContext.Default, - cancellationToken).ConfigureAwait(false); var threadId = parseResult.GetRequiredValue(ThreadId); var runId = parseResult.GetRequiredValue(RunId); var toolOutputs = parseResult.GetRequiredValue(ToolOutputs); - var stream = CliRuntime.WasSpecified(parseResult, Stream) ? parseResult.GetValue(Stream) : (__requestBase is { } __StreamBaseValue ? __StreamBaseValue.Stream : default); using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); @@ -111,7 +71,6 @@ await CliRuntime.RunAsync(async () => threadId: threadId, runId: runId, toolOutputs: toolOutputs, - stream: stream, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -130,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioApiGroupCommand.g.cs index e023c2d60..85e6d2fff 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class AudioApiGroupCommand +internal static partial class AudioApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"audio", @"Audio endpoint commands."); @@ -22,6 +24,7 @@ public static Command Create() command.Subcommands.Add(AudioGetVoiceConsentCommandApiCommand.Create()); command.Subcommands.Add(AudioListVoiceConsentsCommandApiCommand.Create()); command.Subcommands.Add(AudioUpdateVoiceConsentCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs index 5fcc85167..d7dbd8739 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs @@ -39,6 +39,8 @@ internal static partial class AudioCreateSpeechAsEventStreamCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-speech-as-event-stream", @"Create speech @@ -105,6 +107,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs index 4e413dca2..3bc6c5eda 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs @@ -39,6 +39,8 @@ internal static partial class AudioCreateSpeechCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-speech", @"Create speech @@ -98,6 +100,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs index 5a029f38d..477820a3d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs @@ -47,6 +47,8 @@ internal static partial class AudioCreateTranscriptionAsStreamCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-transcription-as-stream", @"Create transcription @@ -136,6 +138,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs index 478b2454f..37223583a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-transcription-as-text", @"Create transcription @@ -155,6 +157,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs index 3a06ed6f3..8a80673d5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs @@ -47,7 +47,7 @@ internal static partial class AudioCreateTranscriptionCommandApiCommand Hidden = true, }; - private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.OneOf value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.AnyOf value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { string? text = null; CustomizeResponseText(parseResult, value, ref text); @@ -63,10 +63,12 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); } - static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.OneOf value, ref string? text); + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.AnyOf value, ref string? text); static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-transcription", @"Create transcription @@ -155,6 +157,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs index 2ecfcfd34..f48211207 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs @@ -60,6 +60,8 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-translation-as-text", @"Create translation @@ -119,6 +121,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs index 6c539199d..937670ec9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs @@ -60,6 +60,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-translation", @"Create translation @@ -119,6 +121,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs index 433574228..f2c2bda72 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-voice", @"Create voice @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs index ebd70d272..c317b06a7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-voice-consent", @"Create voice consent @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs index c21507163..1def93cec 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-voice-consent", @"Delete voice consent @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs index 586e1db14..35ceeae30 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-voice-consent", @"Retrieve voice consent @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs index 1cd9d6e71..d61a2d22a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-voice-consents", @"List voice consents @@ -78,6 +80,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs index 909685156..6a14562aa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-voice-consent", @"Update voice consent @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsApiGroupCommand.g.cs index 49106ecbb..0af929cf8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsApiGroupCommand.g.cs @@ -4,12 +4,15 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class AuditLogsApiGroupCommand +internal static partial class AuditLogsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"audit-logs", @"Audit Logs endpoint commands."); command.Subcommands.Add(AuditLogsListAuditLogsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs index 1fa02aa88..f8d0906ac 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs @@ -88,6 +88,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-audit-logs", @"List audit logs @@ -149,6 +151,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchApiGroupCommand.g.cs index 73365b7e6..877ada7e5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class BatchApiGroupCommand +internal static partial class BatchApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"batch", @"Batch endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(BatchCreateBatchCommandApiCommand.Create()); command.Subcommands.Add(BatchListBatchesCommandApiCommand.Create()); command.Subcommands.Add(BatchRetrieveBatchCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs index 66ac42ed2..abeda761b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-batch", @"Cancel batch @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs index 61e9e02c0..fdc2a818c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs @@ -59,6 +59,22 @@ Your input file must be formatted as a [JSONL file](https://developers.openai.co Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.Batch value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -80,6 +96,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-batch", @"Create batch @@ -103,7 +121,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -118,9 +138,43 @@ await CliRuntime.RunAsync(async () => var endpoint = parseResult.GetRequiredValue(Endpoint); var completionWindow = CliRuntime.WasSpecified(parseResult, CompletionWindow) ? parseResult.GetValue(CompletionWindow) : (__requestBase is { } __CompletionWindowBaseValue ? __CompletionWindowBaseValue.CompletionWindow : default); var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); - var outputExpiresAfter = CliRuntime.WasSpecified(parseResult, OutputExpiresAfter) ? parseResult.GetValue(OutputExpiresAfter) : (__requestBase is { } __OutputExpiresAfterBaseValue ? __OutputExpiresAfterBaseValue.OutputExpiresAfter : default); + var outputExpiresAfter = CliRuntime.WasSpecified(parseResult, OutputExpiresAfter) ? parseResult.GetValue(OutputExpiresAfter) : (__requestBase is { } __OutputExpiresAfterBaseValue ? __OutputExpiresAfterBaseValue.OutputExpiresAfter : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Batch.CreateBatchAsync( + inputFileId: inputFileId, + endpoint: endpoint, + completionWindow: completionWindow, + metadata: metadata, + outputExpiresAfter: outputExpiresAfter, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Batch.RetrieveBatchAsync( + batchId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Batch.CreateBatchAsync( inputFileId: inputFileId, @@ -138,6 +192,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs index 423595919..d5afb62b4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-batches", @"List batches @@ -78,6 +80,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs index c6ce5307d..fc22288fe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-batch", @"Retrieve batch @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs index a3396de47..6059e0161 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-chat-session-method", @"Cancel a ChatKit session @@ -61,6 +63,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs index 447386c11..32e374bee 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"activate-organization-certificates", @"Activate certificates for organization @@ -66,6 +68,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs index a431fc5bd..8b4eb73f8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"activate-project-certificates", @"Activate certificates for project @@ -72,6 +74,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesApiGroupCommand.g.cs index 5e923169f..d2c4a6630 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class CertificatesApiGroupCommand +internal static partial class CertificatesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"certificates", @"Certificates endpoint commands."); @@ -19,6 +21,7 @@ public static Command Create() command.Subcommands.Add(CertificatesListProjectCertificatesCommandApiCommand.Create()); command.Subcommands.Add(CertificatesModifyCertificateCommandApiCommand.Create()); command.Subcommands.Add(CertificatesUploadCertificateCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs index e2678b98c..bbfdf0218 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"deactivate-organization-certificates", @"Deactivate certificates for organization @@ -66,6 +68,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs index ce96754c4..79d56842f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"deactivate-project-certificates", @"Deactivate certificates for project @@ -71,6 +73,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs index 8131bde7b..bdb751cf5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-certificate", @"Delete certificate @@ -62,6 +64,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs index 69bac34a8..5283a89c8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-certificate", @"Get certificate @@ -71,6 +73,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs index 27e92fdd2..33909fb12 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs @@ -48,6 +48,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-organization-certificates", @"List organization certificates @@ -88,6 +90,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs index 351071858..0e28c922a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-certificates", @"List project certificates @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs index 7866b0b52..018e0470c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-certificate", @"Modify certificate @@ -105,6 +107,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs index 7b5bf5e4e..daebd165c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs @@ -56,6 +56,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"upload-certificate", @"Upload certificate @@ -108,6 +110,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatApiGroupCommand.g.cs index 1cd6617aa..ea6129158 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ChatApiGroupCommand +internal static partial class ChatApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"chat", @"Chat endpoint commands."); @@ -16,6 +18,7 @@ public static Command Create() command.Subcommands.Add(ChatGetChatCompletionMessagesCommandApiCommand.Create()); command.Subcommands.Add(ChatListChatCompletionsCommandApiCommand.Create()); command.Subcommands.Add(ChatUpdateChatCompletionCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs index 0b4587976..a645d87f5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs @@ -25,6 +25,8 @@ internal static partial class ChatCreateChatCompletionAsStreamCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-chat-completion-as-stream", @"Create chat completion @@ -91,6 +93,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs index 0e7627bf4..0a22c482d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-chat-completion", @"Create chat completion @@ -118,6 +120,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs index 50a8f0bc2..affcd9603 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-chat-completion", @"Delete chat completion @@ -61,6 +63,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs index 48e993699..53a0b7cf7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-chat-completion", @"Get chat completion @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs index 1dbf993a3..2f817e5c2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-chat-completion-messages", @"Get chat messages @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs index 1f3c155e0..90807855e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs @@ -60,6 +60,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-chat-completions", @"List Chat Completions @@ -108,6 +110,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs index 0f7ed24e8..91aebd922 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-chat-completion", @"Update chat completion @@ -115,6 +117,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsApiGroupCommand.g.cs index a92f2acae..84b4c9722 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsApiGroupCommand.g.cs @@ -4,12 +4,15 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class CompletionsApiGroupCommand +internal static partial class CompletionsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"completions", @"Completions endpoint commands."); command.Subcommands.Add(CompletionsCreateCompletionCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs index ed8d38a67..7de9ea4bc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs @@ -196,6 +196,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-completion", @"Create completion @@ -304,6 +306,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsApiGroupCommand.g.cs index 096a4b033..6200b55c3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ConversationsApiGroupCommand +internal static partial class ConversationsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"conversations", @"Conversations endpoint commands."); @@ -17,6 +19,7 @@ public static Command Create() command.Subcommands.Add(ConversationsGetConversationItemCommandApiCommand.Create()); command.Subcommands.Add(ConversationsListConversationItemsCommandApiCommand.Create()); command.Subcommands.Add(ConversationsUpdateConversationCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs index e0b070129..162c652a6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-conversation", @"Create a conversation @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs index d46adde7d..35b17aae9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs @@ -49,6 +49,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-conversation-items", @"Create items @@ -89,6 +91,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs index 0afc680e5..965a8c887 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-conversation", @"Delete a conversation @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs index ba5dc4750..5bb7ccf76 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-conversation-item", @"Delete an item @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs index 8fef11999..fd8418c6a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-conversation", @"Retrieve a conversation @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs index 08a95bdc8..0f434e77b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-conversation-item", @"Retrieve an item @@ -79,6 +81,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs index 768240b74..d85cd8489 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs @@ -70,6 +70,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-conversation-items", @"List items @@ -116,6 +118,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs index 01fa83aac..0982b2e1d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs @@ -56,6 +56,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-conversation", @"Update a conversation @@ -105,6 +107,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs index 6f888cfbf..7f5eb3320 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs @@ -75,6 +75,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-chat-session-method", @"Create a ChatKit session @@ -133,6 +135,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs index 7d11f071d..075a2e8b3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs @@ -58,6 +58,22 @@ internal static partial class CreateContainerCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.ContainerResource value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -79,6 +95,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-container", @"Create container @@ -103,7 +121,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -119,9 +139,44 @@ await CliRuntime.RunAsync(async () => var expiresAfter = CliRuntime.WasSpecified(parseResult, ExpiresAfter) ? parseResult.GetValue(ExpiresAfter) : (__requestBase is { } __ExpiresAfterBaseValue ? __ExpiresAfterBaseValue.ExpiresAfter : default); var skills = CliRuntime.WasSpecified(parseResult, Skills) ? parseResult.GetValue(Skills) : (__requestBase is { } __SkillsBaseValue ? __SkillsBaseValue.Skills : default); var memoryLimit = CliRuntime.WasSpecified(parseResult, MemoryLimit) ? parseResult.GetValue(MemoryLimit) : (__requestBase is { } __MemoryLimitBaseValue ? __MemoryLimitBaseValue.MemoryLimit : default); - var networkPolicy = CliRuntime.WasSpecified(parseResult, NetworkPolicy) ? parseResult.GetValue(NetworkPolicy) : (__requestBase is { } __NetworkPolicyBaseValue ? __NetworkPolicyBaseValue.NetworkPolicy : default); + var networkPolicy = CliRuntime.WasSpecified(parseResult, NetworkPolicy) ? parseResult.GetValue(NetworkPolicy) : (__requestBase is { } __NetworkPolicyBaseValue ? __NetworkPolicyBaseValue.NetworkPolicy : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.CreateContainerAsync( + name: name, + fileIds: fileIds, + expiresAfter: expiresAfter, + skills: skills, + memoryLimit: memoryLimit, + networkPolicy: networkPolicy, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.RetrieveContainerAsync( + containerId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.CreateContainerAsync( name: name, @@ -140,6 +195,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs index 736073732..b9991b6f9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs @@ -69,6 +69,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-container-file", @"Create container file @@ -127,6 +129,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateRunRequestOptionSet.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateRunRequestOptionSet.g.cs new file mode 100644 index 000000000..ed30eaf4a --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateRunRequestOptionSet.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal sealed record CreateRunRequestOptionSet( + Option AssistantId, + Option Instructions, + Option AdditionalInstructions, + Option Temperature, + Option TopP, + Option Stream, + Option MaxPromptTokens, + Option MaxCompletionTokens, + Option ParallelToolCalls) +{ + public static CreateRunRequestOptionSet Create(string? prefix = null) + { + var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) + ? string.Empty + : prefix.Trim().Trim('-') + "-"; + return new CreateRunRequestOptionSet( + AssistantId: new Option($"--{normalizedPrefix}assistant-id") + { + Description = @"The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run.", + Required = true, + }, + Instructions: new Option($"--{normalizedPrefix}instructions") + { + Description = @"Overrides the [instructions](https://developers.openai.com/api/docs/assistants/migration) of the assistant. This is useful for modifying the behavior on a per-run basis.", + }, + AdditionalInstructions: new Option($"--{normalizedPrefix}additional-instructions") + { + Description = @"Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions.", + }, + Temperature: new Option($"--{normalizedPrefix}temperature") + { + Description = @"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. +", + }, + TopP: new Option($"--{normalizedPrefix}top-p") + { + Description = @"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. + +We generally recommend altering this or temperature but not both. +", + }, + Stream: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}stream", description: @"If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. +"), + MaxPromptTokens: new Option($"--{normalizedPrefix}max-prompt-tokens") + { + Description = @"The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. +", + }, + MaxCompletionTokens: new Option($"--{normalizedPrefix}max-completion-tokens") + { + Description = @"The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. +", + }, + ParallelToolCalls: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}parallel-tool-calls", description: @"Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.") + ); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateThreadAndRunRequestOptionSet.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateThreadAndRunRequestOptionSet.g.cs new file mode 100644 index 000000000..00fcd5ecd --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateThreadAndRunRequestOptionSet.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal sealed record CreateThreadAndRunRequestOptionSet( + Option AssistantId, + Option Instructions, + Option Temperature, + Option TopP, + Option Stream, + Option MaxPromptTokens, + Option MaxCompletionTokens, + Option ParallelToolCalls) +{ + public static CreateThreadAndRunRequestOptionSet Create(string? prefix = null) + { + var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) + ? string.Empty + : prefix.Trim().Trim('-') + "-"; + return new CreateThreadAndRunRequestOptionSet( + AssistantId: new Option($"--{normalizedPrefix}assistant-id") + { + Description = @"The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run.", + Required = true, + }, + Instructions: new Option($"--{normalizedPrefix}instructions") + { + Description = @"Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis.", + }, + Temperature: new Option($"--{normalizedPrefix}temperature") + { + Description = @"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. +", + }, + TopP: new Option($"--{normalizedPrefix}top-p") + { + Description = @"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. + +We generally recommend altering this or temperature but not both. +", + }, + Stream: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}stream", description: @"If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. +"), + MaxPromptTokens: new Option($"--{normalizedPrefix}max-prompt-tokens") + { + Description = @"The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. +", + }, + MaxCompletionTokens: new Option($"--{normalizedPrefix}max-completion-tokens") + { + Description = @"The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. +", + }, + ParallelToolCalls: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}parallel-tool-calls", description: @"Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.") + ); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs index 8d98657ab..82377813c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs @@ -48,6 +48,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-webhook-endpoint", @"Create Webhook Endpoint @@ -88,6 +90,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs index f369b7f1b..84850ff54 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs @@ -73,6 +73,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"createan-apikeyforaserviceaccount", @"Create an API key for a service account @@ -131,6 +133,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs index 976d544d7..dedd65cde 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs @@ -20,6 +20,22 @@ internal static partial class CreateanexternalstorageconfigurationCommandApiComm Description = @"", Required = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.ExternalStorageResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -41,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"createanexternalstorageconfiguration", @"Create an external storage configuration @@ -48,14 +66,47 @@ public static Command Create() command.Options.Add(ProjectId); command.Options.Add(Provider); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { var projectId = parseResult.GetRequiredValue(ProjectId); - var provider = parseResult.GetRequiredValue(Provider); + var provider = parseResult.GetRequiredValue(Provider); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.CreateanexternalstorageconfigurationAsync( + projectId: projectId, + provider: provider, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.GetanexternalstorageconfigurationAsync( + externalStorageId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.CreateanexternalstorageconfigurationAsync( projectId: projectId, @@ -70,6 +121,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs index 8174df1be..bf2fc4cad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"createcontentprovenancecheck", @"Create content provenance check @@ -80,6 +82,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionApiGroupCommand.g.cs index 47faff105..ea30d92ad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class DataRetentionApiGroupCommand +internal static partial class DataRetentionApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"data-retention", @"Data retention endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(DataRetentionRetrieveProjectDataRetentionCommandApiCommand.Create()); command.Subcommands.Add(DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.Create()); command.Subcommands.Add(DataRetentionUpdateProjectDataRetentionCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs index e4eca3be9..b326b256c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-organization-data-retention", @"Retrieve organization data retention @@ -55,6 +57,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs index 22f11df79..93047bea3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-data-retention", @"Retrieve project data retention @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs index 75d63e4e1..c999c5aed 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-organization-data-retention", @"Update organization data retention @@ -60,6 +62,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs index c9836e3fc..fa8de6138 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-data-retention", @"Update project data retention @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs index e4eb03da6..be2795d34 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DefaultApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class DefaultApiGroupCommand +internal static partial class DefaultApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"default", @"default endpoint commands."); @@ -51,6 +53,7 @@ public static Command Create() command.Subcommands.Add(UpdateorganizationspendlimitCommandApiCommand.Create()); command.Subcommands.Add(UpdateprojectspendlimitCommandApiCommand.Create()); command.Subcommands.Add(ValidateanexternalstorageconfigurationCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs index 2d6b6ae2c..07cd8f1f2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs @@ -13,6 +13,28 @@ internal static partial class DeleteContainerCommandApiCommand Description = @"The ID of the container to delete.", }; + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.DeleteContainerResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.DeleteContainerResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-container", @"Delete a container @@ -27,12 +49,19 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - await client.DeleteContainerAsync( + var response = await client.DeleteContainerAsync( containerId: containerId, cancellationToken: cancellationToken).ConfigureAwait(false); - await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs index f00a7350e..6d043fb93 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs @@ -19,6 +19,28 @@ internal static partial class DeleteContainerFileCommandApiCommand Description = @"", }; + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.DeleteContainerFileResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.DeleteContainerFileResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-container-file", @"Delete a container file @@ -35,13 +57,20 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - await client.DeleteContainerFileAsync( + var response = await client.DeleteContainerFileAsync( containerId: containerId, fileId: fileId, cancellationToken: cancellationToken).ConfigureAwait(false); - await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs index c7ee0ffca..032399bbf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-thread-method", @"Delete a ChatKit thread @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs index 0dc014f65..b65fa00a7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-webhook-endpoint", @"Delete Webhook Endpoint @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs index 8a6f963cf..70bb4abab 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"deleteanexternalstorageconfiguration", @"Delete an external storage configuration @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs index e03364b3c..be0258d4c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"deleteorganizationspendlimit", @"Delete organization spend limit @@ -55,6 +57,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs index 39ae17135..3b394b5b2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"deleteprojectspendlimit", @"Delete project spend limit @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsApiGroupCommand.g.cs index c161ab2ff..713274f27 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsApiGroupCommand.g.cs @@ -4,12 +4,15 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class EmbeddingsApiGroupCommand +internal static partial class EmbeddingsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"embeddings", @"Embeddings endpoint commands."); command.Subcommands.Add(EmbeddingsCreateEmbeddingCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs index c617b989a..762a316a7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs @@ -79,6 +79,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-embedding", @"Create embeddings @@ -145,6 +147,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsApiGroupCommand.g.cs index 1003020da..9d3381fad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class EvalsApiGroupCommand +internal static partial class EvalsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"evals", @"Evals endpoint commands."); @@ -21,6 +23,7 @@ public static Command Create() command.Subcommands.Add(EvalsGetEvalRunsCommandApiCommand.Create()); command.Subcommands.Add(EvalsListEvalsCommandApiCommand.Create()); command.Subcommands.Add(EvalsUpdateEvalCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs index 5a7494f86..28db7f647 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-eval-run", @"Cancel eval run @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs index 1c1a2e7da..8453708af 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs @@ -69,6 +69,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-eval", @"Create eval @@ -135,6 +137,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs index 1a8128a19..8065a9ff1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs @@ -47,6 +47,22 @@ internal static partial class EvalsCreateEvalRunCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.EvalRun value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -68,6 +84,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-eval-run", @"Create eval run @@ -91,7 +109,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -105,9 +125,42 @@ await CliRuntime.RunAsync(async () => var evalId = parseResult.GetRequiredValue(EvalId); var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); - var dataSource = parseResult.GetRequiredValue(DataSource); + var dataSource = parseResult.GetRequiredValue(DataSource); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Evals.CreateEvalRunAsync( + evalId: evalId, + name: name, + metadata: metadata, + dataSource: dataSource, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Evals.GetEvalRunAsync( + evalId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Evals.CreateEvalRunAsync( evalId: evalId, @@ -124,6 +177,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs index f99df3b73..413fa6c4a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-eval", @"Delete an eval @@ -60,6 +62,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs index 5170402df..2393dc27e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-eval-run", @"Delete eval run @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs index d68d48f00..deec016f9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-eval", @"Get an eval @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs index e4295f60a..84f8fd75c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-eval-run", @"Get an eval run @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs index 2540f475a..80abaae46 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-eval-run-output-item", @"Get an output item of an eval run @@ -86,6 +88,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs index 0d02ce3d7..3e00d12c0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs @@ -65,6 +65,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-eval-run-output-items", @"Get eval run output items @@ -115,6 +117,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs index 4cd2b980d..0e8c74fe7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-eval-runs", @"Get eval runs @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs index f0a7db8f4..5cfbd995f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs @@ -53,6 +53,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-evals", @"List evals @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs index 6a18976ad..35ecac6b6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-eval", @"Update an eval @@ -122,6 +124,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesApiGroupCommand.g.cs index 4b6a45adc..115e8898d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class FilesApiGroupCommand +internal static partial class FilesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"files", @"Files endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(FilesDownloadFileCommandApiCommand.Create()); command.Subcommands.Add(FilesListFilesCommandApiCommand.Create()); command.Subcommands.Add(FilesRetrieveFileCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs index 22b115b28..d1100094c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs @@ -53,6 +53,22 @@ internal static partial class FilesCreateFileCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.OpenAIFile value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -74,6 +90,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-file", @"Upload file @@ -121,7 +139,9 @@ storage limits. result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -147,9 +167,42 @@ await CliRuntime.RunAsync(async () => Seconds = expiresAfterSeconds!, } - : __ExpiresAfterBase; + : __ExpiresAfterBase; var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Files.CreateFileAsync( + file: file, + filename: filename, + purpose: purpose, + expiresAfter: expiresAfter, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Files.RetrieveFileAsync( + fileId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Files.CreateFileAsync( file: file, @@ -166,6 +219,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs index 8f1a940fa..88d3f1948 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-file", @"Delete file @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs index f60a05c7d..fe1ccf271 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class FilesDownloadFileCommandApiCommand Description = @"The ID of the file to use for this request.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"download-file", @"Retrieve file content @@ -33,6 +35,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs index 8b68dfed2..b87fae156 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-files", @"List files @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs index 1e0ead1dd..676d213c5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-file", @"Retrieve file @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningApiGroupCommand.g.cs index 6d8e7cc3b..765e2297a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class FineTuningApiGroupCommand +internal static partial class FineTuningApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"fine-tuning", @"Fine-tuning endpoint commands."); @@ -22,6 +24,7 @@ public static Command Create() command.Subcommands.Add(FineTuningRetrieveFineTuningJobCommandApiCommand.Create()); command.Subcommands.Add(FineTuningRunGraderCommandApiCommand.Create()); command.Subcommands.Add(FineTuningValidateGraderCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs index 63e7f4cc9..e002ddfc6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-fine-tuning-job", @"Cancel fine-tuning @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs index 2e129cec2..3ab2888c1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-fine-tuning-checkpoint-permission", @"Create checkpoint permissions @@ -81,6 +83,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs index b20146873..315f4255a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs @@ -98,6 +98,22 @@ Your dataset must be formatted as a JSONL file. You must upload your file with t Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.FineTuningJob value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -119,6 +135,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-fine-tuning-job", @"Create fine-tuning job @@ -150,7 +168,9 @@ Response includes details of the enqueued job including job status and the name result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -168,9 +188,46 @@ await CliRuntime.RunAsync(async () => var integrations = CliRuntime.WasSpecified(parseResult, Integrations) ? parseResult.GetValue(Integrations) : (__requestBase is { } __IntegrationsBaseValue ? __IntegrationsBaseValue.Integrations : default); var seed = CliRuntime.WasSpecified(parseResult, Seed) ? parseResult.GetValue(Seed) : (__requestBase is { } __SeedBaseValue ? __SeedBaseValue.Seed : default); var method = CliRuntime.WasSpecified(parseResult, Method) ? parseResult.GetValue(Method) : (__requestBase is { } __MethodBaseValue ? __MethodBaseValue.Method : default); - var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); + var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.FineTuning.CreateFineTuningJobAsync( + model: model, + trainingFile: trainingFile, + suffix: suffix, + validationFile: validationFile, + integrations: integrations, + seed: seed, + method: method, + metadata: metadata, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.FineTuning.RetrieveFineTuningJobAsync( + fineTuningJobId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.FineTuning.CreateFineTuningJobAsync( model: model, @@ -199,6 +256,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs index 564205397..ecddfd81f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-fine-tuning-checkpoint-permission", @"Delete checkpoint permission @@ -73,6 +75,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs index a2095e8d2..ed33e7726 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs @@ -58,6 +58,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-fine-tuning-checkpoint-permissions", @"List checkpoint permissions @@ -107,6 +109,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs index 1f11e4727..1d92d8bd3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs @@ -46,6 +46,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-fine-tuning-events", @"List fine-tuning events @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs index 3333c0a40..8f20c3b0f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs @@ -46,6 +46,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-fine-tuning-job-checkpoints", @"List fine-tuning checkpoints @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs index 30bce7ecd..a1002d395 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs @@ -46,6 +46,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-paginated-fine-tuning-jobs", @"List fine-tuning jobs @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs index acec1a34e..f783760c1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"pause-fine-tuning-job", @"Pause fine-tuning @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs index eb8da9068..0325d4cff 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"resume-fine-tuning-job", @"Resume fine-tuning @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs index d0890b33c..463a5f06c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-fine-tuning-job", @"Retrieve fine-tuning job @@ -71,6 +73,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs index c57495342..c1ce43284 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs @@ -69,6 +69,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"run-grader", @"Run grader @@ -122,6 +124,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs index 815b739dd..2850cb960 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"validate-grader", @"Validate grader @@ -61,6 +63,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs index c0ec41d84..73fe060c4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-thread-method", @"Retrieve a ChatKit thread @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs index ca5598971..c90e6872d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"getanexternalstorageconfiguration", @"Get an external storage configuration @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs index 351b5d045..dacabd802 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"getorganizationspendlimit", @"Get organization spend limit @@ -55,6 +57,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs index 6731b13ce..dcfac7042 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"getprojectsafetyalert", @"Get project safety alert @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs index 514253bc4..bf6cbfbcd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"getprojectspendlimit", @"Get project spend limit @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs index 1d1b1db86..3ce59e558 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"getsafetycase", @"Get safety case @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsApiGroupCommand.g.cs index e466b252b..d24e5bdd2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class GroupOrganizationRoleAssignmentsApiGroupCommand +internal static partial class GroupOrganizationRoleAssignmentsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"group-organization-role-assignments", @"Group organization role assignments endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.Create()); command.Subcommands.Add(GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.Create()); command.Subcommands.Add(GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs index 7777f7543..abe1d2f9c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"assign-group-role", @"Assign organization role to group @@ -61,6 +63,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs index ac2fd6256..baf847b4e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-group-role-assignments", @"List group organization role assignments @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs index a5fb28494..b4d11e8c8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-group-role", @"Retrieve group organization role @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs index 3e6cd275e..ab79ab149 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"unassign-group-role", @"Unassign organization role from group @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs index 2c762a7d5..ecb7c27b8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"add-group-user", @"Add group user @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersApiGroupCommand.g.cs index 889ecea5a..61e2258c8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class GroupUsersApiGroupCommand +internal static partial class GroupUsersApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"group-users", @"Group users endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(GroupUsersListGroupUsersCommandApiCommand.Create()); command.Subcommands.Add(GroupUsersRemoveGroupUserCommandApiCommand.Create()); command.Subcommands.Add(GroupUsersRetrieveGroupUserCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs index ac5c1eb26..9ec7a23b2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs @@ -53,6 +53,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-group-users", @"List group users @@ -96,6 +98,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs index 6278cb584..a5f2dae94 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"remove-group-user", @"Remove group user @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs index 2b05e4e1b..98706c499 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-group-user", @"Retrieve group user @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsApiGroupCommand.g.cs index 1757daebd..fed772ebe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class GroupsApiGroupCommand +internal static partial class GroupsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"groups", @"Groups endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(GroupsListGroupsCommandApiCommand.Create()); command.Subcommands.Add(GroupsRetrieveGroupCommandApiCommand.Create()); command.Subcommands.Add(GroupsUpdateGroupCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs index 685c3361c..6091d1c9d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-group", @"Create group @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs index b4d33ca3b..47ed6e21c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-group", @"Delete group @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs index 925626f43..86070b5bb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-groups", @"List groups @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs index 729901aef..c5f5af4ea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-group", @"Retrieve group @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs index 0c60092d8..a0ccd99a7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-group", @"Update group @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsApiGroupCommand.g.cs index 78ef76bfc..1b24b451f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsApiGroupCommand.g.cs @@ -4,13 +4,16 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class HostedToolsApiGroupCommand +internal static partial class HostedToolsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"hosted-tools", @"Hosted tools endpoint commands."); command.Subcommands.Add(HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.Create()); command.Subcommands.Add(HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs index 248f828ce..b4471ef78 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-hosted-tool-permissions", @"Retrieve project hosted tool permissions @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs index aec62def2..2543d8263 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs @@ -58,6 +58,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-hosted-tool-permissions", @"Modify project hosted tool permissions @@ -164,6 +166,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesApiGroupCommand.g.cs index a947166e8..7a0c292a4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ImagesApiGroupCommand +internal static partial class ImagesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"images", @"Images endpoint commands."); @@ -14,6 +16,7 @@ public static Command Create() command.Subcommands.Add(ImagesCreateImageEditCommandApiCommand.Create()); command.Subcommands.Add(ImagesCreateImageEditAsStreamCommandApiCommand.Create()); command.Subcommands.Add(ImagesCreateImageVariationCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs index fd0cb5d09..4fc092b01 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs @@ -36,6 +36,8 @@ internal static partial class ImagesCreateImageAsStreamCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-image-as-stream", @"Create image @@ -118,6 +120,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs index e322b0d51..8b6129d3d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs @@ -56,6 +56,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-image", @"Create image @@ -145,6 +147,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs index 24aa4084e..b228acac3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs @@ -66,6 +66,8 @@ file less than 4MB. Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-image-edit-as-stream", @"Create image edit @@ -153,6 +155,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs index be51294b2..1c39eaf21 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs @@ -86,6 +86,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-image-edit", @"Create image edit @@ -180,6 +182,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs index 8a5c74ef1..4309a9ad4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs @@ -88,6 +88,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-image-variation", @"Create image variation @@ -160,6 +162,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesApiGroupCommand.g.cs index e37e5cc78..b79c2c9c8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class InvitesApiGroupCommand +internal static partial class InvitesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"invites", @"Invites endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(InvitesInviteUserCommandApiCommand.Create()); command.Subcommands.Add(InvitesListInvitesCommandApiCommand.Create()); command.Subcommands.Add(InvitesRetrieveInviteCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs index 100fb08c5..433bcc922 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-invite", @"Delete invite @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs index dd0539214..e56c4aae5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs @@ -42,6 +42,22 @@ internal static partial class InvitesInviteUserCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.Invite value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -63,6 +79,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"user", @"Create invite @@ -84,7 +102,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -97,9 +117,41 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var email = parseResult.GetRequiredValue(Email); var role = parseResult.GetRequiredValue(Role); - var projects = CliRuntime.WasSpecified(parseResult, Projects) ? parseResult.GetValue(Projects) : (__requestBase is { } __ProjectsBaseValue ? __ProjectsBaseValue.Projects : default); + var projects = CliRuntime.WasSpecified(parseResult, Projects) ? parseResult.GetValue(Projects) : (__requestBase is { } __ProjectsBaseValue ? __ProjectsBaseValue.Projects : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Invites.InviteUserAsync( + email: email, + role: role, + projects: projects, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Invites.RetrieveInviteAsync( + inviteId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Invites.InviteUserAsync( email: email, @@ -123,6 +175,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs index d50ab6155..e65e960e8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs @@ -41,6 +41,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-invites", @"List invites @@ -78,6 +80,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs index d1c9ca5b7..d66444644 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-invite", @"Retrieve invite @@ -67,6 +69,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs index 61a59bf94..678b097f9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-container-files", @"List container files @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs index 04d7785c1..85f705fd3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-containers", @"List containers @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs index 751f0ab43..ae2612c47 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-thread-items-method", @"List ChatKit thread items @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs index 98d637270..705936a2f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-threads-method", @"List ChatKit threads @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs index 38be7e5f1..f72137dd5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-webhook-endpoints", @"List Webhook Endpoints @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs index cc5e54e83..066c849f6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-webhook-event-types", @"List Webhook Event Types @@ -63,6 +65,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs index 5fcfd8678..b4b6241e1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"listexternalstorageconfigurations", @"List external storage configurations @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs index 90b0ad6b1..cde22e664 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs @@ -20,6 +20,8 @@ internal static partial class LiveAcceptLiveSessionCommandApiCommand Required = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"accept-live-session", @"Accept call @@ -43,6 +45,7 @@ await client.Live.AcceptLiveSessionAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveApiGroupCommand.g.cs index f8ee12d38..3a6bdf1e8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class LiveApiGroupCommand +internal static partial class LiveApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"live", @"Live endpoint commands."); @@ -16,6 +18,7 @@ public static Command Create() command.Subcommands.Add(LiveHangupLiveSessionCommandApiCommand.Create()); command.Subcommands.Add(LiveReferLiveSessionCommandApiCommand.Create()); command.Subcommands.Add(LiveRejectLiveSessionCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs index f9f9bd89b..e48566fad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs @@ -35,6 +35,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-live", @"Create session @@ -75,6 +77,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs index 3ceee711c..7069b166a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class LiveDownloadLiveRecordingCommandApiCommand Description = @"The ID of the stored Live session to download. Use the session ID returned when the session started with storage enabled.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"download-live-recording", @"Download recording @@ -33,6 +35,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs index 784dbd969..4270caa1e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs @@ -56,6 +56,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"fork-live-session", @"Fork session @@ -120,6 +122,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs index 773baa1f0..850c5b285 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class LiveHangupLiveSessionCommandApiCommand Description = @"Opaque Live session identifier from the creation response or incoming-call webhook. Preserve the returned value unchanged, including its prefix.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"hangup-live-session", @"Hang up session @@ -33,6 +35,7 @@ await client.Live.HangupLiveSessionAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs index 15b6db141..48c11c707 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs @@ -20,6 +20,8 @@ internal static partial class LiveReferLiveSessionCommandApiCommand Required = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"refer-live-session", @"Transfer call @@ -43,6 +45,7 @@ await client.Live.ReferLiveSessionAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs index c321d37ab..0fd5abff5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs @@ -20,6 +20,8 @@ internal static partial class LiveRejectLiveSessionCommandApiCommand Required = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"reject-live-session", @"Reject call @@ -43,6 +45,7 @@ await client.Live.RejectLiveSessionAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsApiGroupCommand.g.cs index 324ce3118..05fe18eab 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsApiGroupCommand.g.cs @@ -4,14 +4,17 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ModelsApiGroupCommand +internal static partial class ModelsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"models", @"Models endpoint commands."); command.Subcommands.Add(ModelsDeleteModelCommandApiCommand.Create()); command.Subcommands.Add(ModelsListModelsCommandApiCommand.Create()); command.Subcommands.Add(ModelsRetrieveModelCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs index 54696e5bf..6fd9f0d9c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-model", @"Delete a fine-tuned model @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs index f92596db1..e15dbdf54 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs @@ -29,6 +29,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-models", @"List models @@ -63,6 +65,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs index 1574701ba..6b5ed2306 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-model", @"Retrieve model @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsApiGroupCommand.g.cs index d1029feaa..e762f9cfe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsApiGroupCommand.g.cs @@ -4,12 +4,15 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ModerationsApiGroupCommand +internal static partial class ModerationsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"moderations", @"Moderations endpoint commands."); command.Subcommands.Add(ModerationsCreateModerationCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs index e3786a4fd..869569b22 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-moderation", @"Create moderation @@ -120,6 +122,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsApiGroupCommand.g.cs index 6ac0e9d96..b4082aa5c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ProjectGroupRoleAssignmentsApiGroupCommand +internal static partial class ProjectGroupRoleAssignmentsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"project-group-role-assignments", @"Project group role assignments endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.Create()); command.Subcommands.Add(ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.Create()); command.Subcommands.Add(ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs index 5f88fa757..9eba6869b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"assign-project-group-role", @"Assign project role to group @@ -70,6 +72,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs index 91e0aea8a..8a4a7cbaa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-group-role-assignments", @"List project group role assignments @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs index 14e432002..b84c17e67 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-group-role", @"Retrieve project group role @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs index e4e6bc67e..25d67cef1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"unassign-project-group-role", @"Unassign project role from group @@ -77,6 +79,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs index f1c45719e..0bb563175 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"add-project-group", @"Add project group @@ -79,6 +81,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsApiGroupCommand.g.cs index 948bdb704..c60dae3f0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ProjectGroupsApiGroupCommand +internal static partial class ProjectGroupsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"project-groups", @"Project groups endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(ProjectGroupsListProjectGroupsCommandApiCommand.Create()); command.Subcommands.Add(ProjectGroupsRemoveProjectGroupCommandApiCommand.Create()); command.Subcommands.Add(ProjectGroupsRetrieveProjectGroupCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs index 7c23ed08c..f83cc96f8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-groups", @"List project groups @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs index 2bfaa1f69..6738c599d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"remove-project-group", @"Remove project group @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs index e28c2fde8..f9767d95e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-group", @"Retrieve project group @@ -77,6 +79,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsApiGroupCommand.g.cs index c6dc7db96..07bb548f6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ProjectUserRoleAssignmentsApiGroupCommand +internal static partial class ProjectUserRoleAssignmentsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"project-user-role-assignments", @"Project user role assignments endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.Create()); command.Subcommands.Add(ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.Create()); command.Subcommands.Add(ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs index d68861572..d7e113d23 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"assign-project-user-role", @"Assign project role to user @@ -70,6 +72,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs index d2b8c84d9..5d0490acf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-user-role-assignments", @"List project user role assignments @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs index 8f9642adf..4a46f590e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-user-role", @"Retrieve project user role @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs index 9f80ffb12..d27fe1be9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"unassign-project-user-role", @"Unassign project role from user @@ -77,6 +79,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsApiGroupCommand.g.cs index 3452566f7..963dd26bb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ProjectsApiGroupCommand +internal static partial class ProjectsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"projects", @"Projects endpoint commands."); @@ -32,6 +34,7 @@ public static Command Create() command.Subcommands.Add(ProjectsUpdateProjectModelPermissionsCommandApiCommand.Create()); command.Subcommands.Add(ProjectsUpdateProjectRateLimitsCommandApiCommand.Create()); command.Subcommands.Add(ProjectsUpdateProjectServiceAccountCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs index b0c410f1d..891170e15 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"archive-project", @"Archive project @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs index bb39163bc..9d3bddee2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs @@ -40,6 +40,22 @@ internal static partial class ProjectsCreateProjectCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.Project value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -61,6 +77,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-project", @"Create project @@ -82,7 +100,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -95,9 +115,41 @@ await CliRuntime.RunAsync(async () => cancellationToken).ConfigureAwait(false); var name = parseResult.GetRequiredValue(NameOption); var residency = CliRuntime.WasSpecified(parseResult, Residency) ? parseResult.GetValue(Residency) : (__requestBase is { } __ResidencyBaseValue ? __ResidencyBaseValue.Residency : default); - var externalKeyId = CliRuntime.WasSpecified(parseResult, ExternalKeyId) ? parseResult.GetValue(ExternalKeyId) : (__requestBase is { } __ExternalKeyIdBaseValue ? __ExternalKeyIdBaseValue.ExternalKeyId : default); + var externalKeyId = CliRuntime.WasSpecified(parseResult, ExternalKeyId) ? parseResult.GetValue(ExternalKeyId) : (__requestBase is { } __ExternalKeyIdBaseValue ? __ExternalKeyIdBaseValue.ExternalKeyId : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.Projects.CreateProjectAsync( + name: name, + residency: residency, + externalKeyId: externalKeyId, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.Projects.RetrieveProjectAsync( + projectId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.Projects.CreateProjectAsync( name: name, @@ -113,6 +165,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs index 692f0e44b..a836bbdc4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs @@ -66,6 +66,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-project-service-account", @"Create project service account @@ -121,6 +123,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs index 70df2d5b0..e7f8bae54 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs @@ -68,6 +68,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-project-user", @"Create project user @@ -123,6 +125,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs index 5176d9b9b..fd2a57218 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-project-api-key", @"Delete project API key @@ -72,6 +74,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs index 2e2816707..8bcf644d1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-project-model-permissions", @"Delete project model permissions @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs index 417f04128..5a47679e6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-project-service-account", @"Delete project service account @@ -72,6 +74,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs index 49e8a2ade..5769444ad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-project-user", @"Delete project user @@ -72,6 +74,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs index d2ad05b3c..e32887d06 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-api-keys", @"List project API keys @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs index 3b6dac9e4..a2afced18 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs @@ -54,6 +54,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-rate-limits", @"List project rate limits @@ -97,6 +99,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs index a784802ea..d907022f0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-service-accounts", @"List project service accounts @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs index 162b8c49e..a24d212c0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-users", @"List project users @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs index 1e0b6667d..bc47ccda5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-projects", @"List projects @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs index cc004b003..c9253c955 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-project", @"Modify project @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs index d32104564..1fea5539e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-project-user", @"Modify project user @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs index 69d544e33..e0547542a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-api-key", @"Retrieve project API key @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs index 4b40bc9cf..0bfb9d54a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project", @"Retrieve project @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs index cc3c0dfa8..851a5e458 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-model-permissions", @"Retrieve project model permissions @@ -67,6 +69,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs index f304f3be9..a454309ec 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-service-account", @"Retrieve project service account @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs index bbcf98007..2c9a66350 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-user", @"Retrieve project user @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs index e8b5cef63..b8fc0de56 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-model-permissions", @"Modify project model permissions @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs index f9389d1da..7154388df 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs @@ -91,6 +91,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-rate-limits", @"Modify project rate limit @@ -158,6 +160,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs index 99f6cc27d..96f05bbb4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-service-account", @"Update project service account @@ -122,6 +124,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs index 2e6078036..906ff0599 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs @@ -103,6 +103,8 @@ given model. Defaults to `inf`. Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"accept-realtime-call", @"Accept call @@ -196,6 +198,7 @@ await client.Realtime.AcceptRealtimeCallAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeApiGroupCommand.g.cs index a054834e1..5f51d78c5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class RealtimeApiGroupCommand +internal static partial class RealtimeApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"realtime", @"Realtime endpoint commands."); @@ -19,6 +21,7 @@ public static Command Create() command.Subcommands.Add(RealtimeHangupRealtimeCallCommandApiCommand.Create()); command.Subcommands.Add(RealtimeReferRealtimeCallCommandApiCommand.Create()); command.Subcommands.Add(RealtimeRejectRealtimeCallCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs index b1e0f5722..6f596f705 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs @@ -31,6 +31,8 @@ internal static partial class RealtimeCreateRealtimeCallCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-realtime-call", @"Create call @@ -96,6 +98,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs index e160bc62d..f8d7df3fc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs @@ -25,6 +25,8 @@ internal static partial class RealtimeCreateRealtimeCallWithRawBodyCommandApiCom Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-realtime-call-with-raw-body", @"Create call @@ -67,6 +69,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs index 1a6e961ae..458d45ec0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-realtime-client-secret", @"Create client secret @@ -123,6 +125,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs index 3ad4341bf..6e5d69d2e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs @@ -176,6 +176,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-realtime-session", @"Create session @@ -288,6 +290,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs index e3d7bdd02..05a82f97a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs @@ -83,6 +83,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-realtime-transcription-session", @"Create transcription session @@ -158,6 +160,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs index 46449a1d1..7fce6e199 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-realtime-translation-client-secret", @"Create translation client secret @@ -120,6 +122,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs index 410d1d13d..d35934b17 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs @@ -17,6 +17,8 @@ header when creating the call with [`POST /v1/realtime/calls`](https://developers.openai.com/api/reference/resources/realtime/subresources/calls/methods/create).", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"hangup-realtime-call", @"Hang up call @@ -38,6 +40,7 @@ await client.Realtime.HangupRealtimeCallAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs index 666a5674f..1c10bb2fb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs @@ -23,6 +23,8 @@ internal static partial class RealtimeReferRealtimeCallCommandApiCommand Required = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"refer-realtime-call", @"Refer call @@ -46,6 +48,7 @@ await client.Realtime.ReferRealtimeCallAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs index c3178c544..bde291c61 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs @@ -38,6 +38,8 @@ internal static partial class RealtimeRejectRealtimeCallCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"reject-realtime-call", @"Reject call @@ -81,6 +83,7 @@ await client.Realtime.RejectRealtimeCallAsync( await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesApiGroupCommand.g.cs index fde1f5ec7..5e2e28f28 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class ResponsesApiGroupCommand +internal static partial class ResponsesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"responses", @"Responses endpoint commands."); @@ -25,6 +27,7 @@ public static Command Create() command.Subcommands.Add(ResponsesGetResponseCommandApiCommand.Create()); command.Subcommands.Add(ResponsesGetinputtokencountsCommandApiCommand.Create()); command.Subcommands.Add(ResponsesListInputItemsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs index f5db1f719..b87f6fbe4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-cancel-response", @"Cancel a response @@ -71,6 +73,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs index f399dd01b..9d1c66773 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs @@ -98,6 +98,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-compactconversation", @"Compact conversation @@ -178,6 +180,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs index a50b2a65e..89f131914 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs @@ -29,6 +29,8 @@ internal static partial class ResponsesBetaCreateResponseAsStreamCommandApiComma Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-create-response-as-stream", @"Create a model response @@ -84,6 +86,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs index 32f3dc36e..71729532a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs @@ -49,6 +49,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-create-response", @"Create a model response @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs index 40f7ffc50..3f009acc7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs @@ -19,6 +19,28 @@ internal static partial class ResponsesBetaDeleteResponseCommandApiCommand Description = @"Optional beta features to enable for this request.", }; + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.BetaDeleteResponseResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.BetaDeleteResponseResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-delete-response", @"Delete a model response @@ -36,13 +58,20 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - await client.Responses.BetaDeleteResponseAsync( + var response = await client.Responses.BetaDeleteResponseAsync( responseId: responseId, openaiBeta: openaiBeta, cancellationToken: cancellationToken).ConfigureAwait(false); - await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs index 855bee9d2..46b2f261f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs @@ -73,6 +73,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-get-response", @"Get a model response @@ -115,6 +117,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs index d44b7faf3..422102bfe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs @@ -113,6 +113,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-getinputtokencounts", @"Get input token counts @@ -194,6 +196,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs index a4c6e56ad..4086c00bd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs @@ -71,6 +71,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"beta-list-input-items", @"List input items @@ -120,6 +122,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs index 6122fd37e..8405fcf14 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-response", @"Cancel a response @@ -62,6 +64,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs index 11abaa16f..3c5e042d6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs @@ -92,6 +92,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"compactconversation", @"Compact conversation @@ -169,6 +171,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs index 4130e9122..bfcb9bfbb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs @@ -25,6 +25,8 @@ internal static partial class ResponsesCreateResponseAsStreamCommandApiCommand Hidden = true, }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-response-as-stream", @"Create a model response @@ -80,6 +82,7 @@ await CliRuntime.WriteResponseLineAsync( cancellationToken: cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs index 3dee01056..72b76f120 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-response", @"Create a model response @@ -99,6 +101,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs index b591d1ba3..5d62180e8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs @@ -13,6 +13,28 @@ internal static partial class ResponsesDeleteResponseCommandApiCommand Description = @"The ID of the response to delete.", }; + private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.DeleteResponseResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::tryAGI.OpenAI.DeleteResponseResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-response", @"Delete a model response @@ -28,12 +50,19 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - await client.Responses.DeleteResponseAsync( + var response = await client.Responses.DeleteResponseAsync( responseId: responseId, cancellationToken: cancellationToken).ConfigureAwait(false); - await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs index 22f0a4e41..fa4dcda9f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-response", @"Get a model response @@ -106,6 +108,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs index 4fbc0d46d..23b8edb9a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs @@ -107,6 +107,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"getinputtokencounts", @"Get input token counts @@ -185,6 +187,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs index d4e9dfeb7..388ddba7b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs @@ -65,6 +65,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-input-items", @"List input items @@ -111,6 +113,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs index 231feb543..cc778b431 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-container", @"Retrieve container @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs index 1e16f411c..33c3a111a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-container-file", @"Retrieve container file @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs index 603e1e662..a69ebec63 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs @@ -19,6 +19,8 @@ internal static partial class RetrieveContainerFileContentCommandApiCommand Description = @"", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-container-file-content", @"Retrieve container file content @@ -35,13 +37,14 @@ await CliRuntime.RunAsync(async () => using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); - await client.RetrieveContainerFileContentAsync( + var response = await client.RetrieveContainerFileContentAsync( containerId: containerId, fileId: fileId, cancellationToken: cancellationToken).ConfigureAwait(false); - await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs index 32ba524c1..273dc63e0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-webhook-endpoint", @"Retrieve Webhook Endpoint @@ -67,6 +69,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesApiGroupCommand.g.cs index 343f49eb3..2b5bb51ab 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class RolesApiGroupCommand +internal static partial class RolesApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"roles", @"Roles endpoint commands."); @@ -19,6 +21,7 @@ public static Command Create() command.Subcommands.Add(RolesRetrieveRoleCommandApiCommand.Create()); command.Subcommands.Add(RolesUpdateProjectRoleCommandApiCommand.Create()); command.Subcommands.Add(RolesUpdateRoleCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs index bd8e367ce..db15a3a63 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs @@ -50,6 +50,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-project-role", @"Create project role @@ -111,6 +113,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs index d8f5277f1..022acb71b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-role", @"Create organization role @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs index 4c60d8d13..50ed978fb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-project-role", @"Delete project role @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs index 0719a2e8c..a897a03a2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-role", @"Delete organization role @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs index cabc8ac7c..1a3a6c108 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-roles", @"List project roles @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs index 426a3f63e..6020e00f4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-roles", @"List organization roles @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs index c5f1ddc6a..2081d8883 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-role", @"Retrieve project role @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs index e25ba1d81..3e55fa1cb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-role", @"Retrieve organization role @@ -67,6 +69,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs index 56882e19e..5a9c3261d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-role", @"Update project role @@ -126,6 +128,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs index 15f479ae8..6363f90ae 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs @@ -56,6 +56,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-role", @"Update organization role @@ -117,6 +119,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs index 98efffe25..dadb9cbfa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs @@ -53,6 +53,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"rotate-webhook-endpoint-signing-secret", @"Rotate Webhook Endpoint Signing Secret @@ -110,6 +112,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsApiGroupCommand.g.cs index 0f5e02e67..762c9d5b7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class SkillsApiGroupCommand +internal static partial class SkillsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"skills", @"Skills endpoint commands."); @@ -22,6 +24,7 @@ public static Command Create() command.Subcommands.Add(SkillsListSkillVersionsCommandApiCommand.Create()); command.Subcommands.Add(SkillsListSkillsCommandApiCommand.Create()); command.Subcommands.Add(SkillsUpdateSkillDefaultVersionCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs index 72dd38976..13a9d7c7c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-skill", @"Create Skill @@ -60,6 +62,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs index ab083e5ff..b0217ac5e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs @@ -60,6 +60,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-skill-version", @"Create Skill Version @@ -112,6 +114,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs index 21ed9afe0..460043629 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-skill", @"Delete Skill @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs index 6b504453d..223083adb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-skill-version", @"Delete Skill Version @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs index 7f2d9978c..88662b5a3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-skill", @"Get Skill @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs index 76e75290f..f100fadfc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs @@ -13,6 +13,8 @@ internal static partial class SkillsGetSkillContentAsBytesCommandApiCommand Description = @"The identifier of the skill to download.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-skill-content-as-bytes", @"Get Skill Content @@ -33,6 +35,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs index 3ba25a1c9..30fd7f3ae 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-skill-content", @"Get Skill Content @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs index e0eb18c14..a80966cce 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-skill-version", @"Get Skill Version @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs index 6c2aed005..3a82001c9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs @@ -19,6 +19,8 @@ internal static partial class SkillsGetSkillVersionContentAsBytesCommandApiComma Description = @"The skill version number.", }; + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-skill-version-content-as-bytes", @"Get Skill Version Content @@ -42,6 +44,7 @@ await CliRuntime.RunAsync(async () => await CliRuntime.WriteBinaryAsync(parseResult, response, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs index a43f229b2..b3b745112 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-skill-version-content", @"Get Skill Version Content @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs index 3fe6fa0da..33c39b64b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-skill-versions", @"List Skill Versions @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs index 6b908d006..fa3b6106b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs @@ -45,6 +45,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-skills", @"List Skills @@ -85,6 +87,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs index f8e78f646..06f60f7c6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-skill-default-version", @"Update Skill Default Version @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsApiGroupCommand.g.cs index 878918e65..69149675a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class SpendAlertsApiGroupCommand +internal static partial class SpendAlertsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"spend-alerts", @"Spend alerts endpoint commands."); @@ -19,6 +21,7 @@ public static Command Create() command.Subcommands.Add(SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.Create()); command.Subcommands.Add(SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.Create()); command.Subcommands.Add(SpendAlertsUpdateProjectSpendAlertCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs index ca1686f50..8f7daad29 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-organization-spend-alert", @"Create organization spend alert @@ -116,6 +118,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs index 186724098..b038c3bde 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs @@ -52,6 +52,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-project-spend-alert", @"Create project spend alert @@ -123,6 +125,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs index 8220d160f..f6c093744 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-organization-spend-alert", @"Delete organization spend alert @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs index 0871cc53c..f20c01991 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-project-spend-alert", @"Delete project spend alert @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs index b4b480492..8c5d5ede0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-organization-spend-alerts", @"List organization spend alerts @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs index e88ccf9f9..6978adcfe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-project-spend-alerts", @"List project spend alerts @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs index 5a66dc7be..d4759f62f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-organization-spend-alert", @"Retrieve organization spend alert @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs index 67db8c634..cd621124b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-project-spend-alert", @"Retrieve project spend alert @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs index dc201c075..d0b5d36bb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs @@ -52,6 +52,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-organization-spend-alert", @"Update organization spend alert @@ -123,6 +125,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs index db3c57744..847ba59dd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs @@ -58,6 +58,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-project-spend-alert", @"Update project spend alert @@ -132,6 +134,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SubmitToolOutputsRunRequestOptionSet.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SubmitToolOutputsRunRequestOptionSet.g.cs new file mode 100644 index 000000000..9ed871791 --- /dev/null +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SubmitToolOutputsRunRequestOptionSet.g.cs @@ -0,0 +1,19 @@ +#nullable enable + +using System.CommandLine; + +namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; + +internal sealed record SubmitToolOutputsRunRequestOptionSet( + Option Stream) +{ + public static SubmitToolOutputsRunRequestOptionSet Create(string? prefix = null) + { + var normalizedPrefix = string.IsNullOrWhiteSpace(prefix) + ? string.Empty + : prefix.Trim().Trim('-') + "-"; + return new SubmitToolOutputsRunRequestOptionSet( + Stream: CliRuntime.CreateNullableBoolOption(name: $"--{normalizedPrefix}stream", description: @"") + ); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs index 9c7055cca..8e56cc410 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs @@ -40,6 +40,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"test-webhook-endpoint", @"Test Webhook Endpoint @@ -69,6 +71,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs index 48f6eead6..44c76459b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-webhook-endpoint", @"Update Webhook Endpoint @@ -130,6 +132,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs index d1f6eb1ed..450db864b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs @@ -62,6 +62,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"updateorganizationspendlimit", @"Update organization spend limit @@ -114,6 +116,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs index cc9088e0c..b0569e0c2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs @@ -68,6 +68,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"updateprojectspendlimit", @"Update project spend limit @@ -123,6 +125,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs index ff7bfe648..a7999dc0b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs @@ -50,6 +50,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"add-upload-part", @"Add upload part @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsApiGroupCommand.g.cs index d5290d5ca..b5ae0dc32 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class UploadsApiGroupCommand +internal static partial class UploadsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"uploads", @"Uploads endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(UploadsCancelUploadCommandApiCommand.Create()); command.Subcommands.Add(UploadsCompleteUploadCommandApiCommand.Create()); command.Subcommands.Add(UploadsCreateUploadCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs index 6c6ea9d97..4457fb212 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-upload", @"Cancel upload @@ -63,6 +65,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs index 9534849fc..4c9c25de7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs @@ -65,6 +65,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"complete-upload", @"Complete upload @@ -125,6 +127,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs index d97412f1b..6a54c820a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs @@ -83,6 +83,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-upload", @"Create upload @@ -172,6 +174,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageApiGroupCommand.g.cs index 77f57afc7..892ea80fe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class UsageApiGroupCommand +internal static partial class UsageApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"usage", @"Usage endpoint commands."); @@ -20,6 +22,7 @@ public static Command Create() command.Subcommands.Add(UsageUsageModerationsCommandApiCommand.Create()); command.Subcommands.Add(UsageUsageVectorStoresCommandApiCommand.Create()); command.Subcommands.Add(UsageUsageWebSearchCallsCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs index acfc8f2bb..cb2222132 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs @@ -92,6 +92,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"audio-speeches", @"Audio speeches @@ -153,6 +155,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs index a88bbaae9..d2a403221 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs @@ -92,6 +92,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"audio-transcriptions", @"Audio transcriptions @@ -153,6 +155,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs index 7f62a561b..cd9efba02 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs @@ -74,6 +74,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"code-interpreter-sessions", @"Code interpreter sessions @@ -126,6 +128,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs index bff7695d0..7aa3063ca 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs @@ -97,6 +97,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"completions", @"Completions @@ -161,6 +163,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs index c840c77f6..a0e61c9da 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs @@ -83,6 +83,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"costs", @"Costs @@ -141,6 +143,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs index 14f37e462..3b1f0e317 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs @@ -92,6 +92,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"embeddings", @"Embeddings @@ -153,6 +155,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs index 1114e42fc..1a4bbfa96 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs @@ -92,6 +92,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"file-search-calls", @"File search calls @@ -153,6 +155,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs index 0d1bde477..33a09da33 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs @@ -104,6 +104,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"images", @"Images @@ -171,6 +173,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs index 8a68d39c2..ae776e5f0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs @@ -92,6 +92,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"moderations", @"Moderations @@ -153,6 +155,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs index 84a8cd3af..9650568a7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs @@ -74,6 +74,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"vector-stores", @"Vector stores @@ -126,6 +128,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs index f6e5ac701..a006a8f80 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs @@ -98,6 +98,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"web-search-calls", @"Web search calls @@ -162,6 +164,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsApiGroupCommand.g.cs index 9f95b9c2b..44facf852 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class UserOrganizationRoleAssignmentsApiGroupCommand +internal static partial class UserOrganizationRoleAssignmentsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"user-organization-role-assignments", @"User organization role assignments endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.Create()); command.Subcommands.Add(UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.Create()); command.Subcommands.Add(UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs index e1b9eae4e..cd26282b7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs @@ -34,6 +34,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"assign-user-role", @"Assign organization role to user @@ -61,6 +63,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs index 9032f6baf..0efaca8f3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-user-role-assignments", @"List user organization role assignments @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs index 5e2b764e7..9cd180586 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-user-role", @"Retrieve user organization role @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs index b46366cd4..e70d34645 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"unassign-user-role", @"Unassign organization role from user @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersApiGroupCommand.g.cs index 9f8e52948..d297b58b0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class UsersApiGroupCommand +internal static partial class UsersApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"users", @"Users endpoint commands."); @@ -13,6 +15,7 @@ public static Command Create() command.Subcommands.Add(UsersListUsersCommandApiCommand.Create()); command.Subcommands.Add(UsersModifyUserCommandApiCommand.Create()); command.Subcommands.Add(UsersRetrieveUserCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs index 247d46d81..cdf3453da 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-user", @"Delete user @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs index 91e0a4f7b..4d46b1ce8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs @@ -47,6 +47,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-users", @"List users @@ -87,6 +89,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs index ede33bf1c..418a26b1d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs @@ -73,6 +73,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-user", @"Modify user @@ -131,6 +133,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs index 6fb1002c9..eaa12e39c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-user", @"Retrieve user @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs index 7634cc66b..c5273a1ec 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"validateanexternalstorageconfiguration", @"Validate an external storage configuration @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs index 69bd01234..ef5ed77c0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class VaultsApiGroupCommand +internal static partial class VaultsApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"vaults", @"Vaults endpoint commands."); @@ -18,6 +20,7 @@ public static Command Create() command.Subcommands.Add(VaultsRetrieveVaultCommandApiCommand.Create()); command.Subcommands.Add(VaultsRetrieveVaultCredentialCommandApiCommand.Create()); command.Subcommands.Add(VaultsRotateVaultCredentialCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs index 12c4afe34..c66d9bf0a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-vault", @"Create a vault @@ -104,6 +106,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs index 1934d5759..05659a9bc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs @@ -69,6 +69,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-vault-credential", @"Create a vault credential @@ -124,6 +126,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs index 031a2d93b..e81e96e33 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-vault", @"Delete a vault @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs index df8fff895..5d60a81ae 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-vault-credential", @"Delete a vault credential @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs index 498dee2c6..c048785f2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs @@ -57,6 +57,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-vault-credentials", @"List vault credentials @@ -103,6 +105,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs index 169c94839..f6e45e2fd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs @@ -51,6 +51,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-vaults", @"List vaults @@ -94,6 +96,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs index 8bf4e7276..6642f3116 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-vault", @"Retrieve a vault @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs index 5c1da099a..4120b990d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-vault-credential", @"Retrieve a vault credential @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs index c1c5bc741..6da7fe3c4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"rotate-vault-credential", @"Update a vault credential @@ -122,6 +124,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresApiGroupCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresApiGroupCommand.g.cs index 14db098a4..a4b3ad301 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresApiGroupCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresApiGroupCommand.g.cs @@ -4,8 +4,10 @@ namespace tryAGI.OpenAI.Cli.GeneratedApi.Commands; -internal static class VectorStoresApiGroupCommand +internal static partial class VectorStoresApiGroupCommand { + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"vector-stores", @"Vector stores endpoint commands."); @@ -25,6 +27,7 @@ public static Command Create() command.Subcommands.Add(VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.Create()); command.Subcommands.Add(VectorStoresSearchVectorStoreCommandApiCommand.Create()); command.Subcommands.Add(VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.Create()); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs index 93f6c471b..0b7a35f9e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"cancel-vector-store-file-batch", @"Cancel vector store file batch @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs index d488965b3..b8ccd55a3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs @@ -58,6 +58,22 @@ internal static partial class VectorStoresCreateVectorStoreCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.VectorStoreObject value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -79,6 +95,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-vector-store", @"Create vector store @@ -103,7 +121,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -119,9 +139,44 @@ await CliRuntime.RunAsync(async () => var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); var expiresAfter = CliRuntime.WasSpecified(parseResult, ExpiresAfter) ? parseResult.GetValue(ExpiresAfter) : (__requestBase is { } __ExpiresAfterBaseValue ? __ExpiresAfterBaseValue.ExpiresAfter : default); var chunkingStrategy = CliRuntime.WasSpecified(parseResult, ChunkingStrategy) ? parseResult.GetValue(ChunkingStrategy) : (__requestBase is { } __ChunkingStrategyBaseValue ? __ChunkingStrategyBaseValue.ChunkingStrategy : default); - var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); + var metadata = CliRuntime.WasSpecified(parseResult, Metadata) ? parseResult.GetValue(Metadata) : (__requestBase is { } __MetadataBaseValue ? __MetadataBaseValue.Metadata : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.VectorStores.CreateVectorStoreAsync( + fileIds: fileIds, + name: name, + description: description, + expiresAfter: expiresAfter, + chunkingStrategy: chunkingStrategy, + metadata: metadata, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.VectorStores.GetVectorStoreAsync( + vectorStoreId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.VectorStores.CreateVectorStoreAsync( fileIds: fileIds, @@ -140,6 +195,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs index b06914500..c86cca174 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs @@ -53,6 +53,22 @@ internal static partial class VectorStoresCreateVectorStoreFileBatchCommandApiCo Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.VectorStoreFileBatchObject value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -74,6 +90,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-vector-store-file-batch", @"Create vector store file batch @@ -97,7 +115,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -112,9 +132,43 @@ await CliRuntime.RunAsync(async () => var fileIds = CliRuntime.WasSpecified(parseResult, FileIds) ? parseResult.GetValue(FileIds) : (__requestBase is { } __FileIdsBaseValue ? __FileIdsBaseValue.FileIds : default); var files = CliRuntime.WasSpecified(parseResult, Files) ? parseResult.GetValue(Files) : (__requestBase is { } __FilesBaseValue ? __FilesBaseValue.Files : default); var chunkingStrategy = CliRuntime.WasSpecified(parseResult, ChunkingStrategy) ? parseResult.GetValue(ChunkingStrategy) : (__requestBase is { } __ChunkingStrategyBaseValue ? __ChunkingStrategyBaseValue.ChunkingStrategy : default); - var attributes = CliRuntime.WasSpecified(parseResult, Attributes) ? parseResult.GetValue(Attributes) : (__requestBase is { } __AttributesBaseValue ? __AttributesBaseValue.Attributes : default); + var attributes = CliRuntime.WasSpecified(parseResult, Attributes) ? parseResult.GetValue(Attributes) : (__requestBase is { } __AttributesBaseValue ? __AttributesBaseValue.Attributes : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.VectorStores.CreateVectorStoreFileBatchAsync( + vectorStoreId: vectorStoreId, + fileIds: fileIds, + files: files, + chunkingStrategy: chunkingStrategy, + attributes: attributes, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.VectorStores.GetVectorStoreFileBatchAsync( + vectorStoreId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.VectorStores.CreateVectorStoreFileBatchAsync( vectorStoreId: vectorStoreId, @@ -132,6 +186,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs index 966edc67f..f4a179980 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs @@ -48,6 +48,22 @@ internal static partial class VectorStoresCreateVectorStoreFileCommandApiCommand Description = "Path to a JSON request file, or '-' for stdin.", Hidden = true, }; + private static Option Wait { get; } = new("--wait") + { + Description = "Poll the generated wait helper until the resource reaches a terminal state.", + }; + + private static Option PollInterval { get; } = new("--poll-interval") + { + Description = "Polling interval, for example 250ms, 2s, 30m, or 01:00:00.", + DefaultValueFactory = _ => "2s", + }; + + private static Option WaitTimeout { get; } = new("--wait-timeout") + { + Description = "Maximum time to wait before timing out, for example 30m or 00:30:00.", + DefaultValueFactory = _ => "30m", + }; private static string FormatResponse(ParseResult parseResult, global::tryAGI.OpenAI.VectorStoreFileObject value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -69,6 +85,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"create-vector-store-file", @"Create vector store file @@ -91,7 +109,9 @@ public static Command Create() result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); } }); - + command.Options.Add(Wait); + command.Options.Add(PollInterval); + command.Options.Add(WaitTimeout); command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => await CliRuntime.RunAsync(async () => { @@ -105,9 +125,42 @@ await CliRuntime.RunAsync(async () => var vectorStoreId = parseResult.GetRequiredValue(VectorStoreId); var fileId = parseResult.GetRequiredValue(FileId); var chunkingStrategy = CliRuntime.WasSpecified(parseResult, ChunkingStrategy) ? parseResult.GetValue(ChunkingStrategy) : (__requestBase is { } __ChunkingStrategyBaseValue ? __ChunkingStrategyBaseValue.ChunkingStrategy : default); - var attributes = CliRuntime.WasSpecified(parseResult, Attributes) ? parseResult.GetValue(Attributes) : (__requestBase is { } __AttributesBaseValue ? __AttributesBaseValue.Attributes : default); + var attributes = CliRuntime.WasSpecified(parseResult, Attributes) ? parseResult.GetValue(Attributes) : (__requestBase is { } __AttributesBaseValue ? __AttributesBaseValue.Attributes : default); var wait = parseResult.GetValue(Wait); + var pollInterval = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(PollInterval), PollInterval.Name) : default; + var waitTimeout = wait ? CliRuntime.ParseDuration(parseResult.GetRequiredValue(WaitTimeout), WaitTimeout.Name) : default; using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + if (wait) + { + var createResponse = await client.VectorStores.CreateVectorStoreFileAsync( + vectorStoreId: vectorStoreId, + fileId: fileId, + chunkingStrategy: chunkingStrategy, + attributes: attributes, + cancellationToken: cancellationToken).ConfigureAwait(false); + var resourceId = global::System.Convert.ToString( + createResponse.Id, + global::System.Globalization.CultureInfo.InvariantCulture); + if (string.IsNullOrWhiteSpace(resourceId)) + { + throw new CliException("The create response did not contain a job id."); + } + + var waitResponse = await CliRuntime.PollUntilTerminalAsync( + fetchAsync: token => client.VectorStores.GetVectorStoreFileAsync( + vectorStoreId: resourceId, + cancellationToken: token), + pollInterval: pollInterval, + waitTimeout: waitTimeout, + context: global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + await CliRuntime.WriteResponseAsync( + parseResult, + waitResponse, + global::tryAGI.OpenAI.SourceGenerationContext.Default, + cancellationToken: cancellationToken).ConfigureAwait(false); + return; + } var response = await client.VectorStores.CreateVectorStoreFileAsync( vectorStoreId: vectorStoreId, @@ -124,6 +177,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs index d98ed4f22..206311562 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-vector-store", @"Delete vector store @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs index c8692ce34..80dd86b70 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"delete-vector-store-file", @"Delete vector store file @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs index 5443f047e..2d3dcb4dd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs @@ -33,6 +33,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-vector-store", @"Retrieve vector store @@ -59,6 +61,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs index d26d72f34..00ad3cdee 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-vector-store-file-batch", @"Retrieve vector store file batch @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs index e7821c022..60d329e75 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"get-vector-store-file", @"Retrieve vector store file @@ -68,6 +70,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs index 905409c47..d7e91fcc8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs @@ -73,6 +73,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-files-in-vector-store-batch", @"List vector store files in a batch @@ -125,6 +127,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs index 6bb66b985..afd833966 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-vector-store-files", @"List vector store files @@ -116,6 +118,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs index 75d2e9992..4692ab634 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs @@ -55,6 +55,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"list-vector-stores", @"List vector stores @@ -98,6 +100,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs index 28e7eb973..18ebdb0a0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs @@ -67,6 +67,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"modify-vector-store", @"Modify vector store @@ -122,6 +124,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs index 9d2ecb80d..819a95dd0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs @@ -39,6 +39,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"retrieve-vector-store-file-content", @"Retrieve vector store file content @@ -76,6 +78,7 @@ await CliRuntime.WriteResponseAsync( cancellationToken).ConfigureAwait(false); } }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs index f26ee7153..5b659ea65 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs @@ -78,6 +78,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"search-vector-store", @"Search vector store @@ -139,6 +141,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs index 7f3cf631b..ba43a903c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs @@ -61,6 +61,8 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeResponseFormatHints(Dictionary hints); + static partial void CustomizeCommand(ref Command command); + public static Command Create() { var command = new Command(@"update-vector-store-file-attributes", @"Update vector store file attributes @@ -113,6 +115,7 @@ await CliRuntime.WriteResponseAsync( FormatResponse, cancellationToken).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false)); + CustomizeCommand(ref command); return command; } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs index a2253f191..399486169 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.AnyOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs index d12cdb7a0..496a865f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs index 920314b84..87a237a37 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs index a0470765c..099e486de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs @@ -197,19 +197,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs index ad097bbda..0a2226093 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs @@ -246,25 +246,25 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs index 9bbf5d5b5..aadd248b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs @@ -167,19 +167,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmAudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPcmAudioFormat(), typeInfo); } else if (value.IsPcmuAudioFormat) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmuAudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPcmuAudioFormat(), typeInfo); } else if (value.IsPcmaAudioFormat) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PcmaAudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPcmaAudioFormat(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs index c5871b5ad..abaf4c0bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs @@ -122,55 +122,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage1(), typeInfo); } else if (value.IsMessage2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage2(), typeInfo); } else if (value.IsMessage3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage3(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpListTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsMcpApprovalRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs index 9b7b0c116..1b04be2f5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs @@ -137,13 +137,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsRetentionRatioTruncation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetentionRatioTruncation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetentionRatioTruncation(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 885032f63..9c4f55860 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ServerVad!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickServerVad(), typeInfo); } else if (value.IsSemanticVad) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SemanticVad!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSemanticVad(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.ServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.ServerEvent.g.cs index 6d7733450..1f4713009 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.ServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.ServerEvent.g.cs @@ -464,283 +464,283 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationCreated(), typeInfo); } else if (value.IsConversationItemAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemAdded(), typeInfo); } else if (value.IsConversationItemCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemCreated(), typeInfo); } else if (value.IsConversationItemDeleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDeleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemDeleted(), typeInfo); } else if (value.IsConversationItemDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemDone(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionCompleted(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionDelta(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionFailed(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionSegment) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemInputAudioTranscriptionSegment!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionSegment(), typeInfo); } else if (value.IsConversationItemRetrieved) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemRetrieved!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemRetrieved(), typeInfo); } else if (value.IsConversationItemTruncated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationItemTruncated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemTruncated(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsInputAudioBufferCleared) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCleared!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferCleared(), typeInfo); } else if (value.IsInputAudioBufferCommitted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferCommitted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferCommitted(), typeInfo); } else if (value.IsInputAudioBufferDtmfEventReceived) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferDtmfEventReceived!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferDtmfEventReceived(), typeInfo); } else if (value.IsInputAudioBufferSpeechStarted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferSpeechStarted(), typeInfo); } else if (value.IsInputAudioBufferSpeechStopped) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferSpeechStopped!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferSpeechStopped(), typeInfo); } else if (value.IsInputAudioBufferTimeoutTriggered) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputAudioBufferTimeoutTriggered!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferTimeoutTriggered(), typeInfo); } else if (value.IsMcpListToolsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListToolsCompleted(), typeInfo); } else if (value.IsMcpListToolsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListToolsFailed(), typeInfo); } else if (value.IsMcpListToolsInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListToolsInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListToolsInProgress(), typeInfo); } else if (value.IsOutputAudioBufferCleared) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferCleared!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferCleared(), typeInfo); } else if (value.IsOutputAudioBufferStarted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferStarted(), typeInfo); } else if (value.IsOutputAudioBufferStopped) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputAudioBufferStopped!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferStopped(), typeInfo); } else if (value.IsRateLimitsUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RateLimitsUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRateLimitsUpdated(), typeInfo); } else if (value.IsResponseContentPartAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartAdded(), typeInfo); } else if (value.IsResponseContentPartDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartDone(), typeInfo); } else if (value.IsResponseCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreated(), typeInfo); } else if (value.IsResponseDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseDone(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDelta(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDone(), typeInfo); } else if (value.IsResponseMcpCallCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallCompleted(), typeInfo); } else if (value.IsResponseMcpCallFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallFailed(), typeInfo); } else if (value.IsResponseMcpCallInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallInProgress(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDelta(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDone(), typeInfo); } else if (value.IsResponseOutputAudioDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioDelta(), typeInfo); } else if (value.IsResponseOutputAudioDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioDone(), typeInfo); } else if (value.IsResponseOutputAudioTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioTranscriptDelta(), typeInfo); } else if (value.IsResponseOutputAudioTranscriptDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputAudioTranscriptDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioTranscriptDone(), typeInfo); } else if (value.IsResponseOutputItemAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemAdded(), typeInfo); } else if (value.IsResponseOutputItemDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemDone(), typeInfo); } else if (value.IsResponseOutputTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDelta(), typeInfo); } else if (value.IsResponseOutputTextDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDone(), typeInfo); } else if (value.IsSessionCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCreated(), typeInfo); } else if (value.IsSessionUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdated(), typeInfo); } else if (value.IsTranscriptionSessionUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TranscriptionSessionUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTranscriptionSessionUpdated(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs index d8edf395b..d8685d5b6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs @@ -127,13 +127,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsShared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShared(), typeInfo); } else if (value.IsVoiceIdsOrCustomVoiceVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsOrCustomVoiceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoiceIdsOrCustomVoiceVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs index 913cfb1fd..6cfb7b4d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoiceIdsSharedVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs index 2cbc63070..9596c670d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs @@ -1,14 +1,12 @@ #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.Realtime { /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] @@ -685,6 +683,7 @@ namespace tryAGI.OpenAI.Realtime typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.OneOfJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.AudioTranscription))] @@ -714,7 +713,9 @@ namespace tryAGI.OpenAI.Realtime [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.MCPListToolsTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.MCPTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.MCPToolType), TypeInfoPropertyName = "MCPToolType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.MCPToolConnectorId), TypeInfoPropertyName = "MCPToolConnectorId2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.OneOf, global::tryAGI.OpenAI.Realtime.MCPToolFilter>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.MCPToolFilter))] diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs index 4970b8ebe..1241c315d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeAudioFormats.g.cs @@ -42,8 +42,8 @@ public bool TryPickPcmAudioFormat( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat PickPcmAudioFormat() => IsPcmAudioFormat - ? PcmAudioFormat! + public global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat PickPcmAudioFormat() => PcmAudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PcmAudioFormat' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickPcmuAudioFormat( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat PickPcmuAudioFormat() => IsPcmuAudioFormat - ? PcmuAudioFormat! + public global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat PickPcmuAudioFormat() => PcmuAudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PcmuAudioFormat' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickPcmaAudioFormat( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat PickPcmaAudioFormat() => IsPcmaAudioFormat - ? PcmaAudioFormat! + public global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat PickPcmaAudioFormat() => PcmaAudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PcmaAudioFormat' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsPcmAudioFormat && pcmAudioFormat != null) + if (PcmAudioFormat is { } __value0 && pcmAudioFormat != null) { - return pcmAudioFormat(PcmAudioFormat!); + return pcmAudioFormat(__value0); } - else if (IsPcmuAudioFormat && pcmuAudioFormat != null) + else if (PcmuAudioFormat is { } __value1 && pcmuAudioFormat != null) { - return pcmuAudioFormat(PcmuAudioFormat!); + return pcmuAudioFormat(__value1); } - else if (IsPcmaAudioFormat && pcmaAudioFormat != null) + else if (PcmaAudioFormat is { } __value2 && pcmaAudioFormat != null) { - return pcmaAudioFormat(PcmaAudioFormat!); + return pcmaAudioFormat(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsPcmAudioFormat) + if (PcmAudioFormat is { } __value0) { - pcmAudioFormat?.Invoke(PcmAudioFormat!); + pcmAudioFormat?.Invoke(__value0); } - else if (IsPcmuAudioFormat) + else if (PcmuAudioFormat is { } __value1) { - pcmuAudioFormat?.Invoke(PcmuAudioFormat!); + pcmuAudioFormat?.Invoke(__value1); } - else if (IsPcmaAudioFormat) + else if (PcmaAudioFormat is { } __value2) { - pcmaAudioFormat?.Invoke(PcmaAudioFormat!); + pcmaAudioFormat?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsPcmAudioFormat) + if (PcmAudioFormat is { } __value0) { - pcmAudioFormat?.Invoke(PcmAudioFormat!); + pcmAudioFormat?.Invoke(__value0); } - else if (IsPcmuAudioFormat) + else if (PcmuAudioFormat is { } __value1) { - pcmuAudioFormat?.Invoke(PcmuAudioFormat!); + pcmuAudioFormat?.Invoke(__value1); } - else if (IsPcmaAudioFormat) + else if (PcmaAudioFormat is { } __value2) { - pcmaAudioFormat?.Invoke(PcmaAudioFormat!); + pcmaAudioFormat?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs index bbf822fb2..0cd92e2c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickMessage1( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem PickMessage1() => IsMessage1 - ? Message1! + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem PickMessage1() => Message1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message1' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickMessage2( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser PickMessage2() => IsMessage2 - ? Message2! + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser PickMessage2() => Message2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message2' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickMessage3( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant PickMessage3() => IsMessage3 - ? Message3! + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant PickMessage3() => Message3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message3' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// /// @@ -640,41 +640,41 @@ public bool Validate() Validate(); } - if (IsMessage1 && message1 != null) + if (Message1 is { } __value0 && message1 != null) { - return message1(Message1!); + return message1(__value0); } - else if (IsMessage2 && message2 != null) + else if (Message2 is { } __value1 && message2 != null) { - return message2(Message2!); + return message2(__value1); } - else if (IsMessage3 && message3 != null) + else if (Message3 is { } __value2 && message3 != null) { - return message3(Message3!); + return message3(__value2); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value3 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value3); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value4 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value4); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value5 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value5); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value6 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value6); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value7 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value7); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value8 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value8); } return default(TResult); @@ -708,41 +708,41 @@ public void Match( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsMessage3) + else if (Message3 is { } __value2) { - message3?.Invoke(Message3!); + message3?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value4) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value4); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value5) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value5); } - else if (IsMcpListTools) + else if (McpListTools is { } __value6) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value6); } - else if (IsMcpCall) + else if (McpCall is { } __value7) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value7); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value8) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value8); } } @@ -766,41 +766,41 @@ public void Switch( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsMessage3) + else if (Message3 is { } __value2) { - message3?.Invoke(Message3!); + message3?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value4) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value4); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value5) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value5); } - else if (IsMcpListTools) + else if (McpListTools is { } __value6) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value6); } - else if (IsMcpCall) + else if (McpCall is { } __value7) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value7); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value8) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs index 810721613..85b80bdc1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTruncation.g.cs @@ -45,8 +45,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickRetentionRatioTruncation( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2 PickRetentionRatioTruncation() => IsRetentionRatioTruncation - ? RetentionRatioTruncation! + public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2 PickRetentionRatioTruncation() => RetentionRatioTruncation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RetentionRatioTruncation' but the value was {ToString()}."); /// /// @@ -180,13 +180,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsRetentionRatioTruncation && retentionRatioTruncation != null) + else if (RetentionRatioTruncation is { } __value1 && retentionRatioTruncation != null) { - return retentionRatioTruncation(RetentionRatioTruncation!); + return retentionRatioTruncation(__value1); } return default(TResult); @@ -206,13 +206,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsRetentionRatioTruncation) + else if (RetentionRatioTruncation is { } __value1) { - retentionRatioTruncation?.Invoke(RetentionRatioTruncation!); + retentionRatioTruncation?.Invoke(__value1); } } @@ -229,13 +229,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsRetentionRatioTruncation) + else if (RetentionRatioTruncation is { } __value1) { - retentionRatioTruncation?.Invoke(RetentionRatioTruncation!); + retentionRatioTruncation?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 59eb53dca..c5dcba9ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -51,8 +51,8 @@ public bool TryPickServerVad( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad PickServerVad() => IsServerVad - ? ServerVad! + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad PickServerVad() => ServerVad is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ServerVad' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickSemanticVad( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad PickSemanticVad() => IsSemanticVad - ? SemanticVad! + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad PickSemanticVad() => SemanticVad is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SemanticVad' but the value was {ToString()}."); /// /// @@ -189,13 +189,13 @@ public bool Validate() Validate(); } - if (IsServerVad && serverVad != null) + if (ServerVad is { } __value0 && serverVad != null) { - return serverVad(ServerVad!); + return serverVad(__value0); } - else if (IsSemanticVad && semanticVad != null) + else if (SemanticVad is { } __value1 && semanticVad != null) { - return semanticVad(SemanticVad!); + return semanticVad(__value1); } return default(TResult); @@ -215,13 +215,13 @@ public void Match( Validate(); } - if (IsServerVad) + if (ServerVad is { } __value0) { - serverVad?.Invoke(ServerVad!); + serverVad?.Invoke(__value0); } - else if (IsSemanticVad) + else if (SemanticVad is { } __value1) { - semanticVad?.Invoke(SemanticVad!); + semanticVad?.Invoke(__value1); } } @@ -238,13 +238,13 @@ public void Switch( Validate(); } - if (IsServerVad) + if (ServerVad is { } __value0) { - serverVad?.Invoke(ServerVad!); + serverVad?.Invoke(__value0); } - else if (IsSemanticVad) + else if (SemanticVad is { } __value1) { - semanticVad?.Invoke(SemanticVad!); + semanticVad?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.ServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.ServerEvent.g.cs index bd8b4b98a..14b29b4e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.ServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.ServerEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickConversationCreated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated PickConversationCreated() => IsConversationCreated - ? ConversationCreated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated PickConversationCreated() => ConversationCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationCreated' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickConversationItemAdded( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded PickConversationItemAdded() => IsConversationItemAdded - ? ConversationItemAdded! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded PickConversationItemAdded() => ConversationItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemAdded' but the value was {ToString()}."); /// @@ -133,8 +133,8 @@ public bool TryPickConversationItemCreated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated PickConversationItemCreated() => IsConversationItemCreated - ? ConversationItemCreated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated PickConversationItemCreated() => ConversationItemCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemCreated' but the value was {ToString()}."); /// @@ -172,8 +172,8 @@ public bool TryPickConversationItemDeleted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted PickConversationItemDeleted() => IsConversationItemDeleted - ? ConversationItemDeleted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted PickConversationItemDeleted() => ConversationItemDeleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemDeleted' but the value was {ToString()}."); /// @@ -210,8 +210,8 @@ public bool TryPickConversationItemDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone PickConversationItemDone() => IsConversationItemDone - ? ConversationItemDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone PickConversationItemDone() => ConversationItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemDone' but the value was {ToString()}."); /// @@ -255,8 +255,8 @@ public bool TryPickConversationItemInputAudioTranscriptionCompleted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted PickConversationItemInputAudioTranscriptionCompleted() => IsConversationItemInputAudioTranscriptionCompleted - ? ConversationItemInputAudioTranscriptionCompleted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted PickConversationItemInputAudioTranscriptionCompleted() => ConversationItemInputAudioTranscriptionCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionCompleted' but the value was {ToString()}."); /// @@ -292,8 +292,8 @@ public bool TryPickConversationItemInputAudioTranscriptionDelta( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta PickConversationItemInputAudioTranscriptionDelta() => IsConversationItemInputAudioTranscriptionDelta - ? ConversationItemInputAudioTranscriptionDelta! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta PickConversationItemInputAudioTranscriptionDelta() => ConversationItemInputAudioTranscriptionDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionDelta' but the value was {ToString()}."); /// @@ -331,8 +331,8 @@ public bool TryPickConversationItemInputAudioTranscriptionFailed( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed PickConversationItemInputAudioTranscriptionFailed() => IsConversationItemInputAudioTranscriptionFailed - ? ConversationItemInputAudioTranscriptionFailed! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed PickConversationItemInputAudioTranscriptionFailed() => ConversationItemInputAudioTranscriptionFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionFailed' but the value was {ToString()}."); /// @@ -368,8 +368,8 @@ public bool TryPickConversationItemInputAudioTranscriptionSegment( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment PickConversationItemInputAudioTranscriptionSegment() => IsConversationItemInputAudioTranscriptionSegment - ? ConversationItemInputAudioTranscriptionSegment! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment PickConversationItemInputAudioTranscriptionSegment() => ConversationItemInputAudioTranscriptionSegment is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionSegment' but the value was {ToString()}."); /// @@ -405,8 +405,8 @@ public bool TryPickConversationItemRetrieved( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved PickConversationItemRetrieved() => IsConversationItemRetrieved - ? ConversationItemRetrieved! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved PickConversationItemRetrieved() => ConversationItemRetrieved is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemRetrieved' but the value was {ToString()}."); /// @@ -446,8 +446,8 @@ public bool TryPickConversationItemTruncated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated PickConversationItemTruncated() => IsConversationItemTruncated - ? ConversationItemTruncated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated PickConversationItemTruncated() => ConversationItemTruncated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemTruncated' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -523,8 +523,8 @@ public bool TryPickInputAudioBufferCleared( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared PickInputAudioBufferCleared() => IsInputAudioBufferCleared - ? InputAudioBufferCleared! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared PickInputAudioBufferCleared() => InputAudioBufferCleared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferCleared' but the value was {ToString()}."); /// @@ -563,8 +563,8 @@ public bool TryPickInputAudioBufferCommitted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted PickInputAudioBufferCommitted() => IsInputAudioBufferCommitted - ? InputAudioBufferCommitted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted PickInputAudioBufferCommitted() => InputAudioBufferCommitted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferCommitted' but the value was {ToString()}."); /// @@ -603,8 +603,8 @@ public bool TryPickInputAudioBufferDtmfEventReceived( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived PickInputAudioBufferDtmfEventReceived() => IsInputAudioBufferDtmfEventReceived - ? InputAudioBufferDtmfEventReceived! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived PickInputAudioBufferDtmfEventReceived() => InputAudioBufferDtmfEventReceived is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferDtmfEventReceived' but the value was {ToString()}."); /// @@ -648,8 +648,8 @@ public bool TryPickInputAudioBufferSpeechStarted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted PickInputAudioBufferSpeechStarted() => IsInputAudioBufferSpeechStarted - ? InputAudioBufferSpeechStarted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted PickInputAudioBufferSpeechStarted() => InputAudioBufferSpeechStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferSpeechStarted' but the value was {ToString()}."); /// @@ -687,8 +687,8 @@ public bool TryPickInputAudioBufferSpeechStopped( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped PickInputAudioBufferSpeechStopped() => IsInputAudioBufferSpeechStopped - ? InputAudioBufferSpeechStopped! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped PickInputAudioBufferSpeechStopped() => InputAudioBufferSpeechStopped is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferSpeechStopped' but the value was {ToString()}."); /// @@ -734,8 +734,8 @@ public bool TryPickInputAudioBufferTimeoutTriggered( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered PickInputAudioBufferTimeoutTriggered() => IsInputAudioBufferTimeoutTriggered - ? InputAudioBufferTimeoutTriggered! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered PickInputAudioBufferTimeoutTriggered() => InputAudioBufferTimeoutTriggered is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferTimeoutTriggered' but the value was {ToString()}."); /// @@ -771,8 +771,8 @@ public bool TryPickMcpListToolsCompleted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted PickMcpListToolsCompleted() => IsMcpListToolsCompleted - ? McpListToolsCompleted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted PickMcpListToolsCompleted() => McpListToolsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListToolsCompleted' but the value was {ToString()}."); /// @@ -808,8 +808,8 @@ public bool TryPickMcpListToolsFailed( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed PickMcpListToolsFailed() => IsMcpListToolsFailed - ? McpListToolsFailed! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed PickMcpListToolsFailed() => McpListToolsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListToolsFailed' but the value was {ToString()}."); /// @@ -845,8 +845,8 @@ public bool TryPickMcpListToolsInProgress( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress PickMcpListToolsInProgress() => IsMcpListToolsInProgress - ? McpListToolsInProgress! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress PickMcpListToolsInProgress() => McpListToolsInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListToolsInProgress' but the value was {ToString()}."); /// @@ -886,8 +886,8 @@ public bool TryPickOutputAudioBufferCleared( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared PickOutputAudioBufferCleared() => IsOutputAudioBufferCleared - ? OutputAudioBufferCleared! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared PickOutputAudioBufferCleared() => OutputAudioBufferCleared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferCleared' but the value was {ToString()}."); /// @@ -926,8 +926,8 @@ public bool TryPickOutputAudioBufferStarted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted PickOutputAudioBufferStarted() => IsOutputAudioBufferStarted - ? OutputAudioBufferStarted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted PickOutputAudioBufferStarted() => OutputAudioBufferStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferStarted' but the value was {ToString()}."); /// @@ -966,8 +966,8 @@ public bool TryPickOutputAudioBufferStopped( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped PickOutputAudioBufferStopped() => IsOutputAudioBufferStopped - ? OutputAudioBufferStopped! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped PickOutputAudioBufferStopped() => OutputAudioBufferStopped is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferStopped' but the value was {ToString()}."); /// @@ -1006,8 +1006,8 @@ public bool TryPickRateLimitsUpdated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated PickRateLimitsUpdated() => IsRateLimitsUpdated - ? RateLimitsUpdated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated PickRateLimitsUpdated() => RateLimitsUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RateLimitsUpdated' but the value was {ToString()}."); /// @@ -1044,8 +1044,8 @@ public bool TryPickResponseContentPartAdded( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded PickResponseContentPartAdded() => IsResponseContentPartAdded - ? ResponseContentPartAdded! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded PickResponseContentPartAdded() => ResponseContentPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartAdded' but the value was {ToString()}."); /// @@ -1082,8 +1082,8 @@ public bool TryPickResponseContentPartDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone PickResponseContentPartDone() => IsResponseContentPartDone - ? ResponseContentPartDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone PickResponseContentPartDone() => ResponseContentPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartDone' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickResponseCreated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated PickResponseCreated() => IsResponseCreated - ? ResponseCreated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated PickResponseCreated() => ResponseCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreated' but the value was {ToString()}."); /// @@ -1163,8 +1163,8 @@ public bool TryPickResponseDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone PickResponseDone() => IsResponseDone - ? ResponseDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone PickResponseDone() => ResponseDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseDone' but the value was {ToString()}."); /// @@ -1200,8 +1200,8 @@ public bool TryPickResponseFunctionCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta PickResponseFunctionCallArgumentsDelta() => IsResponseFunctionCallArgumentsDelta - ? ResponseFunctionCallArgumentsDelta! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta PickResponseFunctionCallArgumentsDelta() => ResponseFunctionCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDelta' but the value was {ToString()}."); /// @@ -1238,8 +1238,8 @@ public bool TryPickResponseFunctionCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone PickResponseFunctionCallArgumentsDone() => IsResponseFunctionCallArgumentsDone - ? ResponseFunctionCallArgumentsDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone PickResponseFunctionCallArgumentsDone() => ResponseFunctionCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDone' but the value was {ToString()}."); /// @@ -1275,8 +1275,8 @@ public bool TryPickResponseMcpCallCompleted( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted PickResponseMcpCallCompleted() => IsResponseMcpCallCompleted - ? ResponseMcpCallCompleted! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted PickResponseMcpCallCompleted() => ResponseMcpCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallCompleted' but the value was {ToString()}."); /// @@ -1312,8 +1312,8 @@ public bool TryPickResponseMcpCallFailed( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed PickResponseMcpCallFailed() => IsResponseMcpCallFailed - ? ResponseMcpCallFailed! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed PickResponseMcpCallFailed() => ResponseMcpCallFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallFailed' but the value was {ToString()}."); /// @@ -1349,8 +1349,8 @@ public bool TryPickResponseMcpCallInProgress( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress PickResponseMcpCallInProgress() => IsResponseMcpCallInProgress - ? ResponseMcpCallInProgress! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress PickResponseMcpCallInProgress() => ResponseMcpCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallInProgress' but the value was {ToString()}."); /// @@ -1386,8 +1386,8 @@ public bool TryPickResponseMcpCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta PickResponseMcpCallArgumentsDelta() => IsResponseMcpCallArgumentsDelta - ? ResponseMcpCallArgumentsDelta! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta PickResponseMcpCallArgumentsDelta() => ResponseMcpCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDelta' but the value was {ToString()}."); /// @@ -1423,8 +1423,8 @@ public bool TryPickResponseMcpCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone PickResponseMcpCallArgumentsDone() => IsResponseMcpCallArgumentsDone - ? ResponseMcpCallArgumentsDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone PickResponseMcpCallArgumentsDone() => ResponseMcpCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDone' but the value was {ToString()}."); /// @@ -1460,8 +1460,8 @@ public bool TryPickResponseOutputAudioDelta( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta PickResponseOutputAudioDelta() => IsResponseOutputAudioDelta - ? ResponseOutputAudioDelta! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta PickResponseOutputAudioDelta() => ResponseOutputAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioDelta' but the value was {ToString()}."); /// @@ -1498,8 +1498,8 @@ public bool TryPickResponseOutputAudioDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone PickResponseOutputAudioDone() => IsResponseOutputAudioDone - ? ResponseOutputAudioDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone PickResponseOutputAudioDone() => ResponseOutputAudioDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioDone' but the value was {ToString()}."); /// @@ -1535,8 +1535,8 @@ public bool TryPickResponseOutputAudioTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta PickResponseOutputAudioTranscriptDelta() => IsResponseOutputAudioTranscriptDelta - ? ResponseOutputAudioTranscriptDelta! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta PickResponseOutputAudioTranscriptDelta() => ResponseOutputAudioTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioTranscriptDelta' but the value was {ToString()}."); /// @@ -1574,8 +1574,8 @@ public bool TryPickResponseOutputAudioTranscriptDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone PickResponseOutputAudioTranscriptDone() => IsResponseOutputAudioTranscriptDone - ? ResponseOutputAudioTranscriptDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone PickResponseOutputAudioTranscriptDone() => ResponseOutputAudioTranscriptDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioTranscriptDone' but the value was {ToString()}."); /// @@ -1611,8 +1611,8 @@ public bool TryPickResponseOutputItemAdded( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded PickResponseOutputItemAdded() => IsResponseOutputItemAdded - ? ResponseOutputItemAdded! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded PickResponseOutputItemAdded() => ResponseOutputItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemAdded' but the value was {ToString()}."); /// @@ -1649,8 +1649,8 @@ public bool TryPickResponseOutputItemDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone PickResponseOutputItemDone() => IsResponseOutputItemDone - ? ResponseOutputItemDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone PickResponseOutputItemDone() => ResponseOutputItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemDone' but the value was {ToString()}."); /// @@ -1686,8 +1686,8 @@ public bool TryPickResponseOutputTextDelta( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta PickResponseOutputTextDelta() => IsResponseOutputTextDelta - ? ResponseOutputTextDelta! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta PickResponseOutputTextDelta() => ResponseOutputTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDelta' but the value was {ToString()}."); /// @@ -1724,8 +1724,8 @@ public bool TryPickResponseOutputTextDone( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone PickResponseOutputTextDone() => IsResponseOutputTextDone - ? ResponseOutputTextDone! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone PickResponseOutputTextDone() => ResponseOutputTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDone' but the value was {ToString()}."); /// @@ -1763,8 +1763,8 @@ public bool TryPickSessionCreated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated PickSessionCreated() => IsSessionCreated - ? SessionCreated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated PickSessionCreated() => SessionCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCreated' but the value was {ToString()}."); /// @@ -1801,8 +1801,8 @@ public bool TryPickSessionUpdated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated PickSessionUpdated() => IsSessionUpdated - ? SessionUpdated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated PickSessionUpdated() => SessionUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdated' but the value was {ToString()}."); /// @@ -1839,8 +1839,8 @@ public bool TryPickTranscriptionSessionUpdated( /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdated PickTranscriptionSessionUpdated() => IsTranscriptionSessionUpdated - ? TranscriptionSessionUpdated! + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdated PickTranscriptionSessionUpdated() => TranscriptionSessionUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TranscriptionSessionUpdated' but the value was {ToString()}."); /// /// @@ -3200,193 +3200,193 @@ public bool Validate() Validate(); } - if (IsConversationCreated && conversationCreated != null) + if (ConversationCreated is { } __value0 && conversationCreated != null) { - return conversationCreated(ConversationCreated!); + return conversationCreated(__value0); } - else if (IsConversationItemAdded && conversationItemAdded != null) + else if (ConversationItemAdded is { } __value1 && conversationItemAdded != null) { - return conversationItemAdded(ConversationItemAdded!); + return conversationItemAdded(__value1); } - else if (IsConversationItemCreated && conversationItemCreated != null) + else if (ConversationItemCreated is { } __value2 && conversationItemCreated != null) { - return conversationItemCreated(ConversationItemCreated!); + return conversationItemCreated(__value2); } - else if (IsConversationItemDeleted && conversationItemDeleted != null) + else if (ConversationItemDeleted is { } __value3 && conversationItemDeleted != null) { - return conversationItemDeleted(ConversationItemDeleted!); + return conversationItemDeleted(__value3); } - else if (IsConversationItemDone && conversationItemDone != null) + else if (ConversationItemDone is { } __value4 && conversationItemDone != null) { - return conversationItemDone(ConversationItemDone!); + return conversationItemDone(__value4); } - else if (IsConversationItemInputAudioTranscriptionCompleted && conversationItemInputAudioTranscriptionCompleted != null) + else if (ConversationItemInputAudioTranscriptionCompleted is { } __value5 && conversationItemInputAudioTranscriptionCompleted != null) { - return conversationItemInputAudioTranscriptionCompleted(ConversationItemInputAudioTranscriptionCompleted!); + return conversationItemInputAudioTranscriptionCompleted(__value5); } - else if (IsConversationItemInputAudioTranscriptionDelta && conversationItemInputAudioTranscriptionDelta != null) + else if (ConversationItemInputAudioTranscriptionDelta is { } __value6 && conversationItemInputAudioTranscriptionDelta != null) { - return conversationItemInputAudioTranscriptionDelta(ConversationItemInputAudioTranscriptionDelta!); + return conversationItemInputAudioTranscriptionDelta(__value6); } - else if (IsConversationItemInputAudioTranscriptionFailed && conversationItemInputAudioTranscriptionFailed != null) + else if (ConversationItemInputAudioTranscriptionFailed is { } __value7 && conversationItemInputAudioTranscriptionFailed != null) { - return conversationItemInputAudioTranscriptionFailed(ConversationItemInputAudioTranscriptionFailed!); + return conversationItemInputAudioTranscriptionFailed(__value7); } - else if (IsConversationItemInputAudioTranscriptionSegment && conversationItemInputAudioTranscriptionSegment != null) + else if (ConversationItemInputAudioTranscriptionSegment is { } __value8 && conversationItemInputAudioTranscriptionSegment != null) { - return conversationItemInputAudioTranscriptionSegment(ConversationItemInputAudioTranscriptionSegment!); + return conversationItemInputAudioTranscriptionSegment(__value8); } - else if (IsConversationItemRetrieved && conversationItemRetrieved != null) + else if (ConversationItemRetrieved is { } __value9 && conversationItemRetrieved != null) { - return conversationItemRetrieved(ConversationItemRetrieved!); + return conversationItemRetrieved(__value9); } - else if (IsConversationItemTruncated && conversationItemTruncated != null) + else if (ConversationItemTruncated is { } __value10 && conversationItemTruncated != null) { - return conversationItemTruncated(ConversationItemTruncated!); + return conversationItemTruncated(__value10); } - else if (IsError && error != null) + else if (Error is { } __value11 && error != null) { - return error(Error!); + return error(__value11); } - else if (IsInputAudioBufferCleared && inputAudioBufferCleared != null) + else if (InputAudioBufferCleared is { } __value12 && inputAudioBufferCleared != null) { - return inputAudioBufferCleared(InputAudioBufferCleared!); + return inputAudioBufferCleared(__value12); } - else if (IsInputAudioBufferCommitted && inputAudioBufferCommitted != null) + else if (InputAudioBufferCommitted is { } __value13 && inputAudioBufferCommitted != null) { - return inputAudioBufferCommitted(InputAudioBufferCommitted!); + return inputAudioBufferCommitted(__value13); } - else if (IsInputAudioBufferDtmfEventReceived && inputAudioBufferDtmfEventReceived != null) + else if (InputAudioBufferDtmfEventReceived is { } __value14 && inputAudioBufferDtmfEventReceived != null) { - return inputAudioBufferDtmfEventReceived(InputAudioBufferDtmfEventReceived!); + return inputAudioBufferDtmfEventReceived(__value14); } - else if (IsInputAudioBufferSpeechStarted && inputAudioBufferSpeechStarted != null) + else if (InputAudioBufferSpeechStarted is { } __value15 && inputAudioBufferSpeechStarted != null) { - return inputAudioBufferSpeechStarted(InputAudioBufferSpeechStarted!); + return inputAudioBufferSpeechStarted(__value15); } - else if (IsInputAudioBufferSpeechStopped && inputAudioBufferSpeechStopped != null) + else if (InputAudioBufferSpeechStopped is { } __value16 && inputAudioBufferSpeechStopped != null) { - return inputAudioBufferSpeechStopped(InputAudioBufferSpeechStopped!); + return inputAudioBufferSpeechStopped(__value16); } - else if (IsInputAudioBufferTimeoutTriggered && inputAudioBufferTimeoutTriggered != null) + else if (InputAudioBufferTimeoutTriggered is { } __value17 && inputAudioBufferTimeoutTriggered != null) { - return inputAudioBufferTimeoutTriggered(InputAudioBufferTimeoutTriggered!); + return inputAudioBufferTimeoutTriggered(__value17); } - else if (IsMcpListToolsCompleted && mcpListToolsCompleted != null) + else if (McpListToolsCompleted is { } __value18 && mcpListToolsCompleted != null) { - return mcpListToolsCompleted(McpListToolsCompleted!); + return mcpListToolsCompleted(__value18); } - else if (IsMcpListToolsFailed && mcpListToolsFailed != null) + else if (McpListToolsFailed is { } __value19 && mcpListToolsFailed != null) { - return mcpListToolsFailed(McpListToolsFailed!); + return mcpListToolsFailed(__value19); } - else if (IsMcpListToolsInProgress && mcpListToolsInProgress != null) + else if (McpListToolsInProgress is { } __value20 && mcpListToolsInProgress != null) { - return mcpListToolsInProgress(McpListToolsInProgress!); + return mcpListToolsInProgress(__value20); } - else if (IsOutputAudioBufferCleared && outputAudioBufferCleared != null) + else if (OutputAudioBufferCleared is { } __value21 && outputAudioBufferCleared != null) { - return outputAudioBufferCleared(OutputAudioBufferCleared!); + return outputAudioBufferCleared(__value21); } - else if (IsOutputAudioBufferStarted && outputAudioBufferStarted != null) + else if (OutputAudioBufferStarted is { } __value22 && outputAudioBufferStarted != null) { - return outputAudioBufferStarted(OutputAudioBufferStarted!); + return outputAudioBufferStarted(__value22); } - else if (IsOutputAudioBufferStopped && outputAudioBufferStopped != null) + else if (OutputAudioBufferStopped is { } __value23 && outputAudioBufferStopped != null) { - return outputAudioBufferStopped(OutputAudioBufferStopped!); + return outputAudioBufferStopped(__value23); } - else if (IsRateLimitsUpdated && rateLimitsUpdated != null) + else if (RateLimitsUpdated is { } __value24 && rateLimitsUpdated != null) { - return rateLimitsUpdated(RateLimitsUpdated!); + return rateLimitsUpdated(__value24); } - else if (IsResponseContentPartAdded && responseContentPartAdded != null) + else if (ResponseContentPartAdded is { } __value25 && responseContentPartAdded != null) { - return responseContentPartAdded(ResponseContentPartAdded!); + return responseContentPartAdded(__value25); } - else if (IsResponseContentPartDone && responseContentPartDone != null) + else if (ResponseContentPartDone is { } __value26 && responseContentPartDone != null) { - return responseContentPartDone(ResponseContentPartDone!); + return responseContentPartDone(__value26); } - else if (IsResponseCreated && responseCreated != null) + else if (ResponseCreated is { } __value27 && responseCreated != null) { - return responseCreated(ResponseCreated!); + return responseCreated(__value27); } - else if (IsResponseDone && responseDone != null) + else if (ResponseDone is { } __value28 && responseDone != null) { - return responseDone(ResponseDone!); + return responseDone(__value28); } - else if (IsResponseFunctionCallArgumentsDelta && responseFunctionCallArgumentsDelta != null) + else if (ResponseFunctionCallArgumentsDelta is { } __value29 && responseFunctionCallArgumentsDelta != null) { - return responseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDelta!); + return responseFunctionCallArgumentsDelta(__value29); } - else if (IsResponseFunctionCallArgumentsDone && responseFunctionCallArgumentsDone != null) + else if (ResponseFunctionCallArgumentsDone is { } __value30 && responseFunctionCallArgumentsDone != null) { - return responseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDone!); + return responseFunctionCallArgumentsDone(__value30); } - else if (IsResponseMcpCallCompleted && responseMcpCallCompleted != null) + else if (ResponseMcpCallCompleted is { } __value31 && responseMcpCallCompleted != null) { - return responseMcpCallCompleted(ResponseMcpCallCompleted!); + return responseMcpCallCompleted(__value31); } - else if (IsResponseMcpCallFailed && responseMcpCallFailed != null) + else if (ResponseMcpCallFailed is { } __value32 && responseMcpCallFailed != null) { - return responseMcpCallFailed(ResponseMcpCallFailed!); + return responseMcpCallFailed(__value32); } - else if (IsResponseMcpCallInProgress && responseMcpCallInProgress != null) + else if (ResponseMcpCallInProgress is { } __value33 && responseMcpCallInProgress != null) { - return responseMcpCallInProgress(ResponseMcpCallInProgress!); + return responseMcpCallInProgress(__value33); } - else if (IsResponseMcpCallArgumentsDelta && responseMcpCallArgumentsDelta != null) + else if (ResponseMcpCallArgumentsDelta is { } __value34 && responseMcpCallArgumentsDelta != null) { - return responseMcpCallArgumentsDelta(ResponseMcpCallArgumentsDelta!); + return responseMcpCallArgumentsDelta(__value34); } - else if (IsResponseMcpCallArgumentsDone && responseMcpCallArgumentsDone != null) + else if (ResponseMcpCallArgumentsDone is { } __value35 && responseMcpCallArgumentsDone != null) { - return responseMcpCallArgumentsDone(ResponseMcpCallArgumentsDone!); + return responseMcpCallArgumentsDone(__value35); } - else if (IsResponseOutputAudioDelta && responseOutputAudioDelta != null) + else if (ResponseOutputAudioDelta is { } __value36 && responseOutputAudioDelta != null) { - return responseOutputAudioDelta(ResponseOutputAudioDelta!); + return responseOutputAudioDelta(__value36); } - else if (IsResponseOutputAudioDone && responseOutputAudioDone != null) + else if (ResponseOutputAudioDone is { } __value37 && responseOutputAudioDone != null) { - return responseOutputAudioDone(ResponseOutputAudioDone!); + return responseOutputAudioDone(__value37); } - else if (IsResponseOutputAudioTranscriptDelta && responseOutputAudioTranscriptDelta != null) + else if (ResponseOutputAudioTranscriptDelta is { } __value38 && responseOutputAudioTranscriptDelta != null) { - return responseOutputAudioTranscriptDelta(ResponseOutputAudioTranscriptDelta!); + return responseOutputAudioTranscriptDelta(__value38); } - else if (IsResponseOutputAudioTranscriptDone && responseOutputAudioTranscriptDone != null) + else if (ResponseOutputAudioTranscriptDone is { } __value39 && responseOutputAudioTranscriptDone != null) { - return responseOutputAudioTranscriptDone(ResponseOutputAudioTranscriptDone!); + return responseOutputAudioTranscriptDone(__value39); } - else if (IsResponseOutputItemAdded && responseOutputItemAdded != null) + else if (ResponseOutputItemAdded is { } __value40 && responseOutputItemAdded != null) { - return responseOutputItemAdded(ResponseOutputItemAdded!); + return responseOutputItemAdded(__value40); } - else if (IsResponseOutputItemDone && responseOutputItemDone != null) + else if (ResponseOutputItemDone is { } __value41 && responseOutputItemDone != null) { - return responseOutputItemDone(ResponseOutputItemDone!); + return responseOutputItemDone(__value41); } - else if (IsResponseOutputTextDelta && responseOutputTextDelta != null) + else if (ResponseOutputTextDelta is { } __value42 && responseOutputTextDelta != null) { - return responseOutputTextDelta(ResponseOutputTextDelta!); + return responseOutputTextDelta(__value42); } - else if (IsResponseOutputTextDone && responseOutputTextDone != null) + else if (ResponseOutputTextDone is { } __value43 && responseOutputTextDone != null) { - return responseOutputTextDone(ResponseOutputTextDone!); + return responseOutputTextDone(__value43); } - else if (IsSessionCreated && sessionCreated != null) + else if (SessionCreated is { } __value44 && sessionCreated != null) { - return sessionCreated(SessionCreated!); + return sessionCreated(__value44); } - else if (IsSessionUpdated && sessionUpdated != null) + else if (SessionUpdated is { } __value45 && sessionUpdated != null) { - return sessionUpdated(SessionUpdated!); + return sessionUpdated(__value45); } - else if (IsTranscriptionSessionUpdated && transcriptionSessionUpdated != null) + else if (TranscriptionSessionUpdated is { } __value46 && transcriptionSessionUpdated != null) { - return transcriptionSessionUpdated(TranscriptionSessionUpdated!); + return transcriptionSessionUpdated(__value46); } return default(TResult); @@ -3496,193 +3496,193 @@ public void Match( Validate(); } - if (IsConversationCreated) + if (ConversationCreated is { } __value0) { - conversationCreated?.Invoke(ConversationCreated!); + conversationCreated?.Invoke(__value0); } - else if (IsConversationItemAdded) + else if (ConversationItemAdded is { } __value1) { - conversationItemAdded?.Invoke(ConversationItemAdded!); + conversationItemAdded?.Invoke(__value1); } - else if (IsConversationItemCreated) + else if (ConversationItemCreated is { } __value2) { - conversationItemCreated?.Invoke(ConversationItemCreated!); + conversationItemCreated?.Invoke(__value2); } - else if (IsConversationItemDeleted) + else if (ConversationItemDeleted is { } __value3) { - conversationItemDeleted?.Invoke(ConversationItemDeleted!); + conversationItemDeleted?.Invoke(__value3); } - else if (IsConversationItemDone) + else if (ConversationItemDone is { } __value4) { - conversationItemDone?.Invoke(ConversationItemDone!); + conversationItemDone?.Invoke(__value4); } - else if (IsConversationItemInputAudioTranscriptionCompleted) + else if (ConversationItemInputAudioTranscriptionCompleted is { } __value5) { - conversationItemInputAudioTranscriptionCompleted?.Invoke(ConversationItemInputAudioTranscriptionCompleted!); + conversationItemInputAudioTranscriptionCompleted?.Invoke(__value5); } - else if (IsConversationItemInputAudioTranscriptionDelta) + else if (ConversationItemInputAudioTranscriptionDelta is { } __value6) { - conversationItemInputAudioTranscriptionDelta?.Invoke(ConversationItemInputAudioTranscriptionDelta!); + conversationItemInputAudioTranscriptionDelta?.Invoke(__value6); } - else if (IsConversationItemInputAudioTranscriptionFailed) + else if (ConversationItemInputAudioTranscriptionFailed is { } __value7) { - conversationItemInputAudioTranscriptionFailed?.Invoke(ConversationItemInputAudioTranscriptionFailed!); + conversationItemInputAudioTranscriptionFailed?.Invoke(__value7); } - else if (IsConversationItemInputAudioTranscriptionSegment) + else if (ConversationItemInputAudioTranscriptionSegment is { } __value8) { - conversationItemInputAudioTranscriptionSegment?.Invoke(ConversationItemInputAudioTranscriptionSegment!); + conversationItemInputAudioTranscriptionSegment?.Invoke(__value8); } - else if (IsConversationItemRetrieved) + else if (ConversationItemRetrieved is { } __value9) { - conversationItemRetrieved?.Invoke(ConversationItemRetrieved!); + conversationItemRetrieved?.Invoke(__value9); } - else if (IsConversationItemTruncated) + else if (ConversationItemTruncated is { } __value10) { - conversationItemTruncated?.Invoke(ConversationItemTruncated!); + conversationItemTruncated?.Invoke(__value10); } - else if (IsError) + else if (Error is { } __value11) { - error?.Invoke(Error!); + error?.Invoke(__value11); } - else if (IsInputAudioBufferCleared) + else if (InputAudioBufferCleared is { } __value12) { - inputAudioBufferCleared?.Invoke(InputAudioBufferCleared!); + inputAudioBufferCleared?.Invoke(__value12); } - else if (IsInputAudioBufferCommitted) + else if (InputAudioBufferCommitted is { } __value13) { - inputAudioBufferCommitted?.Invoke(InputAudioBufferCommitted!); + inputAudioBufferCommitted?.Invoke(__value13); } - else if (IsInputAudioBufferDtmfEventReceived) + else if (InputAudioBufferDtmfEventReceived is { } __value14) { - inputAudioBufferDtmfEventReceived?.Invoke(InputAudioBufferDtmfEventReceived!); + inputAudioBufferDtmfEventReceived?.Invoke(__value14); } - else if (IsInputAudioBufferSpeechStarted) + else if (InputAudioBufferSpeechStarted is { } __value15) { - inputAudioBufferSpeechStarted?.Invoke(InputAudioBufferSpeechStarted!); + inputAudioBufferSpeechStarted?.Invoke(__value15); } - else if (IsInputAudioBufferSpeechStopped) + else if (InputAudioBufferSpeechStopped is { } __value16) { - inputAudioBufferSpeechStopped?.Invoke(InputAudioBufferSpeechStopped!); + inputAudioBufferSpeechStopped?.Invoke(__value16); } - else if (IsInputAudioBufferTimeoutTriggered) + else if (InputAudioBufferTimeoutTriggered is { } __value17) { - inputAudioBufferTimeoutTriggered?.Invoke(InputAudioBufferTimeoutTriggered!); + inputAudioBufferTimeoutTriggered?.Invoke(__value17); } - else if (IsMcpListToolsCompleted) + else if (McpListToolsCompleted is { } __value18) { - mcpListToolsCompleted?.Invoke(McpListToolsCompleted!); + mcpListToolsCompleted?.Invoke(__value18); } - else if (IsMcpListToolsFailed) + else if (McpListToolsFailed is { } __value19) { - mcpListToolsFailed?.Invoke(McpListToolsFailed!); + mcpListToolsFailed?.Invoke(__value19); } - else if (IsMcpListToolsInProgress) + else if (McpListToolsInProgress is { } __value20) { - mcpListToolsInProgress?.Invoke(McpListToolsInProgress!); + mcpListToolsInProgress?.Invoke(__value20); } - else if (IsOutputAudioBufferCleared) + else if (OutputAudioBufferCleared is { } __value21) { - outputAudioBufferCleared?.Invoke(OutputAudioBufferCleared!); + outputAudioBufferCleared?.Invoke(__value21); } - else if (IsOutputAudioBufferStarted) + else if (OutputAudioBufferStarted is { } __value22) { - outputAudioBufferStarted?.Invoke(OutputAudioBufferStarted!); + outputAudioBufferStarted?.Invoke(__value22); } - else if (IsOutputAudioBufferStopped) + else if (OutputAudioBufferStopped is { } __value23) { - outputAudioBufferStopped?.Invoke(OutputAudioBufferStopped!); + outputAudioBufferStopped?.Invoke(__value23); } - else if (IsRateLimitsUpdated) + else if (RateLimitsUpdated is { } __value24) { - rateLimitsUpdated?.Invoke(RateLimitsUpdated!); + rateLimitsUpdated?.Invoke(__value24); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value25) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value25); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value26) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value26); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value27) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value27); } - else if (IsResponseDone) + else if (ResponseDone is { } __value28) { - responseDone?.Invoke(ResponseDone!); + responseDone?.Invoke(__value28); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value29) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value29); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value30) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value30); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value31) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value31); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value32) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value32); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value33) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value33); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value34) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value34); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value35) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value35); } - else if (IsResponseOutputAudioDelta) + else if (ResponseOutputAudioDelta is { } __value36) { - responseOutputAudioDelta?.Invoke(ResponseOutputAudioDelta!); + responseOutputAudioDelta?.Invoke(__value36); } - else if (IsResponseOutputAudioDone) + else if (ResponseOutputAudioDone is { } __value37) { - responseOutputAudioDone?.Invoke(ResponseOutputAudioDone!); + responseOutputAudioDone?.Invoke(__value37); } - else if (IsResponseOutputAudioTranscriptDelta) + else if (ResponseOutputAudioTranscriptDelta is { } __value38) { - responseOutputAudioTranscriptDelta?.Invoke(ResponseOutputAudioTranscriptDelta!); + responseOutputAudioTranscriptDelta?.Invoke(__value38); } - else if (IsResponseOutputAudioTranscriptDone) + else if (ResponseOutputAudioTranscriptDone is { } __value39) { - responseOutputAudioTranscriptDone?.Invoke(ResponseOutputAudioTranscriptDone!); + responseOutputAudioTranscriptDone?.Invoke(__value39); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value40) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value40); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value41) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value41); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value42) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value42); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value43) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value43); } - else if (IsSessionCreated) + else if (SessionCreated is { } __value44) { - sessionCreated?.Invoke(SessionCreated!); + sessionCreated?.Invoke(__value44); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value45) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value45); } - else if (IsTranscriptionSessionUpdated) + else if (TranscriptionSessionUpdated is { } __value46) { - transcriptionSessionUpdated?.Invoke(TranscriptionSessionUpdated!); + transcriptionSessionUpdated?.Invoke(__value46); } } @@ -3744,193 +3744,193 @@ public void Switch( Validate(); } - if (IsConversationCreated) + if (ConversationCreated is { } __value0) { - conversationCreated?.Invoke(ConversationCreated!); + conversationCreated?.Invoke(__value0); } - else if (IsConversationItemAdded) + else if (ConversationItemAdded is { } __value1) { - conversationItemAdded?.Invoke(ConversationItemAdded!); + conversationItemAdded?.Invoke(__value1); } - else if (IsConversationItemCreated) + else if (ConversationItemCreated is { } __value2) { - conversationItemCreated?.Invoke(ConversationItemCreated!); + conversationItemCreated?.Invoke(__value2); } - else if (IsConversationItemDeleted) + else if (ConversationItemDeleted is { } __value3) { - conversationItemDeleted?.Invoke(ConversationItemDeleted!); + conversationItemDeleted?.Invoke(__value3); } - else if (IsConversationItemDone) + else if (ConversationItemDone is { } __value4) { - conversationItemDone?.Invoke(ConversationItemDone!); + conversationItemDone?.Invoke(__value4); } - else if (IsConversationItemInputAudioTranscriptionCompleted) + else if (ConversationItemInputAudioTranscriptionCompleted is { } __value5) { - conversationItemInputAudioTranscriptionCompleted?.Invoke(ConversationItemInputAudioTranscriptionCompleted!); + conversationItemInputAudioTranscriptionCompleted?.Invoke(__value5); } - else if (IsConversationItemInputAudioTranscriptionDelta) + else if (ConversationItemInputAudioTranscriptionDelta is { } __value6) { - conversationItemInputAudioTranscriptionDelta?.Invoke(ConversationItemInputAudioTranscriptionDelta!); + conversationItemInputAudioTranscriptionDelta?.Invoke(__value6); } - else if (IsConversationItemInputAudioTranscriptionFailed) + else if (ConversationItemInputAudioTranscriptionFailed is { } __value7) { - conversationItemInputAudioTranscriptionFailed?.Invoke(ConversationItemInputAudioTranscriptionFailed!); + conversationItemInputAudioTranscriptionFailed?.Invoke(__value7); } - else if (IsConversationItemInputAudioTranscriptionSegment) + else if (ConversationItemInputAudioTranscriptionSegment is { } __value8) { - conversationItemInputAudioTranscriptionSegment?.Invoke(ConversationItemInputAudioTranscriptionSegment!); + conversationItemInputAudioTranscriptionSegment?.Invoke(__value8); } - else if (IsConversationItemRetrieved) + else if (ConversationItemRetrieved is { } __value9) { - conversationItemRetrieved?.Invoke(ConversationItemRetrieved!); + conversationItemRetrieved?.Invoke(__value9); } - else if (IsConversationItemTruncated) + else if (ConversationItemTruncated is { } __value10) { - conversationItemTruncated?.Invoke(ConversationItemTruncated!); + conversationItemTruncated?.Invoke(__value10); } - else if (IsError) + else if (Error is { } __value11) { - error?.Invoke(Error!); + error?.Invoke(__value11); } - else if (IsInputAudioBufferCleared) + else if (InputAudioBufferCleared is { } __value12) { - inputAudioBufferCleared?.Invoke(InputAudioBufferCleared!); + inputAudioBufferCleared?.Invoke(__value12); } - else if (IsInputAudioBufferCommitted) + else if (InputAudioBufferCommitted is { } __value13) { - inputAudioBufferCommitted?.Invoke(InputAudioBufferCommitted!); + inputAudioBufferCommitted?.Invoke(__value13); } - else if (IsInputAudioBufferDtmfEventReceived) + else if (InputAudioBufferDtmfEventReceived is { } __value14) { - inputAudioBufferDtmfEventReceived?.Invoke(InputAudioBufferDtmfEventReceived!); + inputAudioBufferDtmfEventReceived?.Invoke(__value14); } - else if (IsInputAudioBufferSpeechStarted) + else if (InputAudioBufferSpeechStarted is { } __value15) { - inputAudioBufferSpeechStarted?.Invoke(InputAudioBufferSpeechStarted!); + inputAudioBufferSpeechStarted?.Invoke(__value15); } - else if (IsInputAudioBufferSpeechStopped) + else if (InputAudioBufferSpeechStopped is { } __value16) { - inputAudioBufferSpeechStopped?.Invoke(InputAudioBufferSpeechStopped!); + inputAudioBufferSpeechStopped?.Invoke(__value16); } - else if (IsInputAudioBufferTimeoutTriggered) + else if (InputAudioBufferTimeoutTriggered is { } __value17) { - inputAudioBufferTimeoutTriggered?.Invoke(InputAudioBufferTimeoutTriggered!); + inputAudioBufferTimeoutTriggered?.Invoke(__value17); } - else if (IsMcpListToolsCompleted) + else if (McpListToolsCompleted is { } __value18) { - mcpListToolsCompleted?.Invoke(McpListToolsCompleted!); + mcpListToolsCompleted?.Invoke(__value18); } - else if (IsMcpListToolsFailed) + else if (McpListToolsFailed is { } __value19) { - mcpListToolsFailed?.Invoke(McpListToolsFailed!); + mcpListToolsFailed?.Invoke(__value19); } - else if (IsMcpListToolsInProgress) + else if (McpListToolsInProgress is { } __value20) { - mcpListToolsInProgress?.Invoke(McpListToolsInProgress!); + mcpListToolsInProgress?.Invoke(__value20); } - else if (IsOutputAudioBufferCleared) + else if (OutputAudioBufferCleared is { } __value21) { - outputAudioBufferCleared?.Invoke(OutputAudioBufferCleared!); + outputAudioBufferCleared?.Invoke(__value21); } - else if (IsOutputAudioBufferStarted) + else if (OutputAudioBufferStarted is { } __value22) { - outputAudioBufferStarted?.Invoke(OutputAudioBufferStarted!); + outputAudioBufferStarted?.Invoke(__value22); } - else if (IsOutputAudioBufferStopped) + else if (OutputAudioBufferStopped is { } __value23) { - outputAudioBufferStopped?.Invoke(OutputAudioBufferStopped!); + outputAudioBufferStopped?.Invoke(__value23); } - else if (IsRateLimitsUpdated) + else if (RateLimitsUpdated is { } __value24) { - rateLimitsUpdated?.Invoke(RateLimitsUpdated!); + rateLimitsUpdated?.Invoke(__value24); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value25) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value25); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value26) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value26); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value27) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value27); } - else if (IsResponseDone) + else if (ResponseDone is { } __value28) { - responseDone?.Invoke(ResponseDone!); + responseDone?.Invoke(__value28); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value29) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value29); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value30) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value30); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value31) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value31); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value32) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value32); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value33) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value33); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value34) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value34); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value35) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value35); } - else if (IsResponseOutputAudioDelta) + else if (ResponseOutputAudioDelta is { } __value36) { - responseOutputAudioDelta?.Invoke(ResponseOutputAudioDelta!); + responseOutputAudioDelta?.Invoke(__value36); } - else if (IsResponseOutputAudioDone) + else if (ResponseOutputAudioDone is { } __value37) { - responseOutputAudioDone?.Invoke(ResponseOutputAudioDone!); + responseOutputAudioDone?.Invoke(__value37); } - else if (IsResponseOutputAudioTranscriptDelta) + else if (ResponseOutputAudioTranscriptDelta is { } __value38) { - responseOutputAudioTranscriptDelta?.Invoke(ResponseOutputAudioTranscriptDelta!); + responseOutputAudioTranscriptDelta?.Invoke(__value38); } - else if (IsResponseOutputAudioTranscriptDone) + else if (ResponseOutputAudioTranscriptDone is { } __value39) { - responseOutputAudioTranscriptDone?.Invoke(ResponseOutputAudioTranscriptDone!); + responseOutputAudioTranscriptDone?.Invoke(__value39); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value40) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value40); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value41) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value41); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value42) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value42); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value43) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value43); } - else if (IsSessionCreated) + else if (SessionCreated is { } __value44) { - sessionCreated?.Invoke(SessionCreated!); + sessionCreated?.Invoke(__value44); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value45) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value45); } - else if (IsTranscriptionSessionUpdated) + else if (TranscriptionSessionUpdated is { } __value46) { - transcriptionSessionUpdated?.Invoke(TranscriptionSessionUpdated!); + transcriptionSessionUpdated?.Invoke(__value46); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs index a3e4e3fc1..8143bc449 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsOrCustomVoice.g.cs @@ -42,8 +42,8 @@ public bool TryPickShared( /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsShared PickShared() => IsShared - ? Shared!.Value + public global::tryAGI.OpenAI.Realtime.VoiceIdsShared PickShared() => Shared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shared' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickVoiceIdsOrCustomVoiceVariant2( /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2 PickVoiceIdsOrCustomVoiceVariant2() => IsVoiceIdsOrCustomVoiceVariant2 - ? VoiceIdsOrCustomVoiceVariant2! + public global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2 PickVoiceIdsOrCustomVoiceVariant2() => VoiceIdsOrCustomVoiceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VoiceIdsOrCustomVoiceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsShared && shared != null) + if (Shared is { } __value0 && shared != null) { - return shared(Shared!); + return shared(__value0); } - else if (IsVoiceIdsOrCustomVoiceVariant2 && voiceIdsOrCustomVoiceVariant2 != null) + else if (VoiceIdsOrCustomVoiceVariant2 is { } __value1 && voiceIdsOrCustomVoiceVariant2 != null) { - return voiceIdsOrCustomVoiceVariant2(VoiceIdsOrCustomVoiceVariant2!); + return voiceIdsOrCustomVoiceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsVoiceIdsOrCustomVoiceVariant2) + else if (VoiceIdsOrCustomVoiceVariant2 is { } __value1) { - voiceIdsOrCustomVoiceVariant2?.Invoke(VoiceIdsOrCustomVoiceVariant2!); + voiceIdsOrCustomVoiceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsVoiceIdsOrCustomVoiceVariant2) + else if (VoiceIdsOrCustomVoiceVariant2 is { } __value1) { - voiceIdsOrCustomVoiceVariant2?.Invoke(VoiceIdsOrCustomVoiceVariant2!); + voiceIdsOrCustomVoiceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs index 1ef3cd0d6..06a69b5a5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.VoiceIdsShared.g.cs @@ -42,8 +42,8 @@ public bool TryPickVoiceIdsSharedVariant1( /// /// /// - public string PickVoiceIdsSharedVariant1() => IsVoiceIdsSharedVariant1 - ? VoiceIdsSharedVariant1! + public string PickVoiceIdsSharedVariant1() => VoiceIdsSharedVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VoiceIdsSharedVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsVoiceIdsSharedVariant1 && voiceIdsSharedVariant1 != null) + if (VoiceIdsSharedVariant1 is { } __value0 && voiceIdsSharedVariant1 != null) { - return voiceIdsSharedVariant1(VoiceIdsSharedVariant1!); + return voiceIdsSharedVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsVoiceIdsSharedVariant1) + if (VoiceIdsSharedVariant1 is { } __value0) { - voiceIdsSharedVariant1?.Invoke(VoiceIdsSharedVariant1!); + voiceIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsVoiceIdsSharedVariant1) + if (VoiceIdsSharedVariant1 is { } __value0) { - voiceIdsSharedVariant1?.Invoke(VoiceIdsSharedVariant1!); + voiceIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.2.g.cs index bf8b17223..0f66d1f56 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.3.g.cs index e9a7109fc..fe8d572bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.4.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.4.g.cs index 7d3e5c525..bb88b77fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OneOf.4.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// /// @@ -306,21 +306,21 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } return default(TResult); @@ -344,21 +344,21 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } @@ -377,21 +377,21 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs index 88f6aaa7e..f16ffde3a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Rea { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Rea { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::tryAGI.OpenAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::tryAGI.OpenAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Rea for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::tryAGI.OpenAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::tryAGI.OpenAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -486,7 +487,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -501,7 +502,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::tryAGI.OpenAI.Realtime.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::tryAGI.OpenAI.Realtime.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json b/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json index f43a179e4..c372bf137 100644 --- a/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json +++ b/src/libs/tryAGI.OpenAI/Generated/autosdk.generated-examples.json @@ -145,6 +145,28 @@ }, { "Order": 14, + "Title": "List project rate limits", + "Slug": "list-project-rate-limits", + "Description": "Returns the rate limits per model for a project.", + "Language": "http", + "Code": "### List project rate limits\n# @name list-project-rate-limits\nGET {{host}}/organization/projects/{{project_id}}/rate_limits?limit=100\u0026after={{after}}\u0026before={{before}}\nAuthorization: Bearer {{token}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Project rate limits listed successfully.\n# Content-Type: application/json\n# 400\n# Description: The rate limit listing parameters are invalid.\n# Content-Type: application/json\n# 403\n# Description: The caller does not have permission to perform this operation.\n# Content-Type: application/json\n# 404\n# Description: The project or pagination cursor was not found.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "list-project-rate-limits", + "Setup": null + }, + { + "Order": 15, + "Title": "Modify project rate limit", + "Slug": "update-project-rate-limits", + "Description": "Updates a project rate limit.", + "Language": "http", + "Code": "### Modify project rate limit\n# @name update-project-rate-limits\nPOST {{host}}/organization/projects/{{project_id}}/rate_limits/{{rate_limit_id}}\nAuthorization: Bearer {{token}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022max_requests_per_1_minute\u0022: 0,\n \u0022max_tokens_per_1_minute\u0022: 0,\n \u0022max_images_per_1_minute\u0022: 0,\n \u0022max_audio_megabytes_per_1_minute\u0022: 0,\n \u0022max_requests_per_1_day\u0022: 0,\n \u0022batch_1_day_max_input_tokens\u0022: 0\n}\n\n## Responses\n# 200\n# Description: Project rate limit updated successfully.\n# Content-Type: application/json\n# 400\n# Description: Error response for various conditions.\n# Content-Type: application/json\n# 403\n# Description: The caller does not have permission to perform this operation.\n# Content-Type: application/json\n# 404\n# Description: The project was not found.\n# Content-Type: application/json", + "Format": "http", + "OperationId": "update-project-rate-limits", + "Setup": null + }, + { + "Order": 16, "Title": "Cancel a response", "Slug": "beta-cancelresponse", "Description": "Cancels a model response with the given ID. Only responses created with\nthe \u0060background\u0060 parameter set to \u0060true\u0060 can be cancelled.\n[Learn more](https://developers.openai.com/api/docs/guides/background).", @@ -155,7 +177,7 @@ "Setup": null }, { - "Order": 15, + "Order": 17, "Title": "Compact conversation", "Slug": "beta-compactconversation", "Description": "Compact a conversation. Returns a compacted response object.\n\nLearn when and how to compact long-running conversations in the [conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced).", @@ -166,7 +188,7 @@ "Setup": null }, { - "Order": 16, + "Order": 18, "Title": "Create a model response", "Slug": "beta-createresponse", "Description": "Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or\n[image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text)\nor [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](https://developers.openai.com/api/docs/guides/function-calling) or use built-in\n[tools](https://developers.openai.com/api/docs/guides/tools) like [web search](https://developers.openai.com/api/docs/guides/tools-web-search)\nor [file search](https://developers.openai.com/api/docs/guides/tools-file-search) to use your own data\nas input for the model\u0027s response.", @@ -177,7 +199,7 @@ "Setup": null }, { - "Order": 17, + "Order": 19, "Title": "Get a model response", "Slug": "beta-getresponse", "Description": "Retrieves a model response with the given ID.", @@ -188,7 +210,7 @@ "Setup": null }, { - "Order": 18, + "Order": 20, "Title": "Get input token counts", "Slug": "beta-getinputtokencounts", "Description": "Returns input token counts of the request.\n\nReturns an object with \u0060object\u0060 set to \u0060response.input_tokens\u0060 and an \u0060input_tokens\u0060 count.", @@ -199,7 +221,7 @@ "Setup": null }, { - "Order": 19, + "Order": 21, "Title": "Cancel a response", "Slug": "cancelresponse", "Description": "Cancels a model response with the given ID. Only responses created with\nthe \u0060background\u0060 parameter set to \u0060true\u0060 can be cancelled.\n[Learn more](https://developers.openai.com/api/docs/guides/background).", @@ -210,7 +232,7 @@ "Setup": null }, { - "Order": 20, + "Order": 22, "Title": "Compact conversation", "Slug": "compactconversation", "Description": "Compact a conversation. Returns a compacted response object.\n\nLearn when and how to compact long-running conversations in the [conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced).", @@ -221,7 +243,7 @@ "Setup": null }, { - "Order": 21, + "Order": 23, "Title": "Create a model response", "Slug": "createresponse", "Description": "Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or\n[image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text)\nor [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call\nyour own [custom code](https://developers.openai.com/api/docs/guides/function-calling) or use built-in\n[tools](https://developers.openai.com/api/docs/guides/tools) like [web search](https://developers.openai.com/api/docs/guides/tools-web-search)\nor [file search](https://developers.openai.com/api/docs/guides/tools-file-search) to use your own data\nas input for the model\u0027s response.", @@ -232,7 +254,7 @@ "Setup": null }, { - "Order": 22, + "Order": 24, "Title": "Get a model response", "Slug": "getresponse", "Description": "Retrieves a model response with the given ID.", @@ -243,7 +265,7 @@ "Setup": null }, { - "Order": 23, + "Order": 25, "Title": "Get input token counts", "Slug": "getinputtokencounts", "Description": "Returns input token counts of the request.\n\nReturns an object with \u0060object\u0060 set to \u0060response.input_tokens\u0060 and an \u0060input_tokens\u0060 count.", diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Agents.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Agents.JsonSerializerContext.g.cs index 6e2a126b7..9c06a92b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Agents.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Agents.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs index a65ce9517..013544c6e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgent.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateAgentResponseContent( pathTemplate: "\"/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs index c34c1a06d..ded016f81 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentFile.g.cs @@ -164,7 +164,7 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( PrepareCreateAgentEnvironmentFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - environmentId: environmentId!, + environmentId: environmentId, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessCreateAgentEnvironmentFileResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs index fbb21d2b7..a1a50eef4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentEnvironmentTemplate.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs index deffdd3ba..27526733b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSession.g.cs @@ -194,7 +194,7 @@ partial void ProcessCreateAgentSessionResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -228,7 +228,7 @@ partial void ProcessCreateAgentSessionResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -269,7 +269,7 @@ partial void ProcessCreateAgentSessionResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -317,7 +317,7 @@ partial void ProcessCreateAgentSessionResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -339,7 +339,7 @@ partial void ProcessCreateAgentSessionResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionAsStream.g.cs index 7793018b0..1f8506ade 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionAsStream.g.cs @@ -166,7 +166,7 @@ partial void ProcessCreateAgentSessionAsStreamResponse( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -200,7 +200,7 @@ partial void ProcessCreateAgentSessionAsStreamResponse( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -241,7 +241,7 @@ partial void ProcessCreateAgentSessionAsStreamResponse( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -289,7 +289,7 @@ partial void ProcessCreateAgentSessionAsStreamResponse( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -311,7 +311,7 @@ partial void ProcessCreateAgentSessionAsStreamResponse( pathTemplate: "\"/agents/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionEvents.g.cs index 743a2aa40..035ae3699 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.CreateAgentSessionEvents.g.cs @@ -177,7 +177,7 @@ await CreateAgentSessionEventsAsResponseAsync( PrepareCreateAgentSessionEventsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, idempotencyKey: idempotencyKey, request: request); @@ -201,7 +201,7 @@ await CreateAgentSessionEventsAsResponseAsync( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -235,7 +235,7 @@ await CreateAgentSessionEventsAsResponseAsync( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -276,7 +276,7 @@ await CreateAgentSessionEventsAsResponseAsync( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ await CreateAgentSessionEventsAsResponseAsync( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +346,7 @@ await CreateAgentSessionEventsAsResponseAsync( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs index 1fa3c7e5b..314aa2b50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgent.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteAgentResponseContent( PrepareDeleteAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId!); + agentId: agentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentEnvironmentTemplate.g.cs index 562383024..38792fe6c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentEnvironmentTemplate.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteAgentEnvironmentTemplateResponseContent( PrepareDeleteAgentEnvironmentTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - environmentTemplateId: environmentTemplateId!); + environmentTemplateId: environmentTemplateId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSession.g.cs index 0c9dd109b..0dbfae53d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSession.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteAgentSessionResponseContent( PrepareDeleteAgentSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSessionArtifact.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSessionArtifact.g.cs index b9b254a4f..8a8a76e7b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSessionArtifact.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.DeleteAgentSessionArtifact.g.cs @@ -155,8 +155,8 @@ partial void ProcessDeleteAgentSessionArtifactResponseContent( PrepareDeleteAgentSessionArtifactRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - artifactId: artifactId!); + sessionId: sessionId, + artifactId: artifactId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessDeleteAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessDeleteAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessDeleteAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessDeleteAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessDeleteAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs index 62d5ba3e9..94c9418c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentFiles.g.cs @@ -189,7 +189,7 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( PrepareListAgentEnvironmentFilesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - environmentId: environmentId!, + environmentId: environmentId, path: path, limit: limit, order: order, @@ -215,7 +215,7 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -249,7 +249,7 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -360,7 +360,7 @@ partial void ProcessListAgentEnvironmentFilesResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentTemplates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentTemplates.g.cs index 1e4d732d6..00c3240f5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentTemplates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentEnvironmentTemplates.g.cs @@ -202,7 +202,7 @@ partial void ProcessListAgentEnvironmentTemplatesResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -236,7 +236,7 @@ partial void ProcessListAgentEnvironmentTemplatesResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -277,7 +277,7 @@ partial void ProcessListAgentEnvironmentTemplatesResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListAgentEnvironmentTemplatesResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListAgentEnvironmentTemplatesResponseContent( pathTemplate: "\"/agents/environments/templates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionArtifacts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionArtifacts.g.cs index 73b0396ad..7c7595adb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionArtifacts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionArtifacts.g.cs @@ -189,7 +189,7 @@ partial void ProcessListAgentSessionArtifactsResponseContent( PrepareListAgentSessionArtifactsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, order: order, environmentId: environmentId, limit: limit, @@ -215,7 +215,7 @@ partial void ProcessListAgentSessionArtifactsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -249,7 +249,7 @@ partial void ProcessListAgentSessionArtifactsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessListAgentSessionArtifactsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessListAgentSessionArtifactsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -360,7 +360,7 @@ partial void ProcessListAgentSessionArtifactsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionEvents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionEvents.g.cs index 4a7a41f2c..bf462ddbc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionEvents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionEvents.g.cs @@ -121,7 +121,7 @@ partial void ProcessListAgentSessionEventsResponse( PrepareListAgentSessionEventsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -143,7 +143,7 @@ partial void ProcessListAgentSessionEventsResponse( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -177,7 +177,7 @@ partial void ProcessListAgentSessionEventsResponse( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessListAgentSessionEventsResponse( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessListAgentSessionEventsResponse( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -288,7 +288,7 @@ partial void ProcessListAgentSessionEventsResponse( pathTemplate: "$\"/agents/sessions/{sessionId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionItems.g.cs index 72c5d7ccc..4a3d5ed5a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionItems.g.cs @@ -186,7 +186,7 @@ partial void ProcessListAgentSessionItemsResponseContent( PrepareListAgentSessionItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, limit: limit, order: order, after: after); @@ -211,7 +211,7 @@ partial void ProcessListAgentSessionItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListAgentSessionItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListAgentSessionItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListAgentSessionItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListAgentSessionItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentItems.g.cs index 56b5ad03c..465ffb043 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentItems.g.cs @@ -194,8 +194,8 @@ partial void ProcessListAgentSessionSubagentItemsResponseContent( PrepareListAgentSessionSubagentItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - subagentId: subagentId!, + sessionId: sessionId, + subagentId: subagentId, limit: limit, order: order, after: after); @@ -220,7 +220,7 @@ partial void ProcessListAgentSessionSubagentItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -254,7 +254,7 @@ partial void ProcessListAgentSessionSubagentItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -295,7 +295,7 @@ partial void ProcessListAgentSessionSubagentItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessListAgentSessionSubagentItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessListAgentSessionSubagentItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurnItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurnItems.g.cs index 1f1602a17..2fc53dc1b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurnItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurnItems.g.cs @@ -202,9 +202,9 @@ partial void ProcessListAgentSessionSubagentTurnItemsResponseContent( PrepareListAgentSessionSubagentTurnItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - subagentId: subagentId!, - turnId: turnId!, + sessionId: sessionId, + subagentId: subagentId, + turnId: turnId, limit: limit, order: order, after: after); @@ -229,7 +229,7 @@ partial void ProcessListAgentSessionSubagentTurnItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessListAgentSessionSubagentTurnItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -304,7 +304,7 @@ partial void ProcessListAgentSessionSubagentTurnItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -352,7 +352,7 @@ partial void ProcessListAgentSessionSubagentTurnItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -374,7 +374,7 @@ partial void ProcessListAgentSessionSubagentTurnItemsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurns.g.cs index 7cd848f1c..459cd5c41 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagentTurns.g.cs @@ -194,8 +194,8 @@ partial void ProcessListAgentSessionSubagentTurnsResponseContent( PrepareListAgentSessionSubagentTurnsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - subagentId: subagentId!, + sessionId: sessionId, + subagentId: subagentId, limit: limit, order: order, after: after); @@ -220,7 +220,7 @@ partial void ProcessListAgentSessionSubagentTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -254,7 +254,7 @@ partial void ProcessListAgentSessionSubagentTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -295,7 +295,7 @@ partial void ProcessListAgentSessionSubagentTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessListAgentSessionSubagentTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessListAgentSessionSubagentTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagents.g.cs index a9dc48a4a..54ee7f52c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionSubagents.g.cs @@ -186,7 +186,7 @@ partial void ProcessListAgentSessionSubagentsResponseContent( PrepareListAgentSessionSubagentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, limit: limit, order: order, after: after); @@ -211,7 +211,7 @@ partial void ProcessListAgentSessionSubagentsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListAgentSessionSubagentsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListAgentSessionSubagentsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListAgentSessionSubagentsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListAgentSessionSubagentsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs index 8dd51dfa6..2b7f7edce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessionTurns.g.cs @@ -186,7 +186,7 @@ partial void ProcessListAgentSessionTurnsResponseContent( PrepareListAgentSessionTurnsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, limit: limit, order: order, after: after); @@ -211,7 +211,7 @@ partial void ProcessListAgentSessionTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListAgentSessionTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListAgentSessionTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListAgentSessionTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListAgentSessionTurnsResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessions.g.cs index 0e8b943cd..b405d0b0e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgentSessions.g.cs @@ -208,7 +208,7 @@ partial void ProcessListAgentSessionsResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessListAgentSessionsResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessListAgentSessionsResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessListAgentSessionsResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessListAgentSessionsResponseContent( pathTemplate: "\"/agents/sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs index 235ba6e09..c63eb8012 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.ListAgents.g.cs @@ -198,7 +198,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessListAgentsResponseContent( pathTemplate: "\"/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs index ab2eabe35..d18253cdd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgent.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveAgentResponseContent( PrepareRetrieveAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId!); + agentId: agentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs index c35c78fe9..69a32aee6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironment.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( PrepareRetrieveAgentEnvironmentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - environmentId: environmentId!); + environmentId: environmentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveAgentEnvironmentResponseContent( pathTemplate: "$\"/agents/environments/{environmentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironmentTemplate.g.cs index 60f541f61..5601356ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentEnvironmentTemplate.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveAgentEnvironmentTemplateResponseContent( PrepareRetrieveAgentEnvironmentTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - environmentTemplateId: environmentTemplateId!); + environmentTemplateId: environmentTemplateId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSession.g.cs index 1cccb9da7..244343f6e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSession.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveAgentSessionResponseContent( PrepareRetrieveAgentSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifact.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifact.g.cs index c5a0209eb..ebb4ab097 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifact.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifact.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveAgentSessionArtifactResponseContent( PrepareRetrieveAgentSessionArtifactRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - artifactId: artifactId!); + sessionId: sessionId, + artifactId: artifactId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessRetrieveAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessRetrieveAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessRetrieveAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessRetrieveAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessRetrieveAgentSessionArtifactResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifactContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifactContent.g.cs index ad89c4190..cc7e522e5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifactContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionArtifactContent.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( PrepareRetrieveAgentSessionArtifactContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - artifactId: artifactId!); + sessionId: sessionId, + artifactId: artifactId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -733,8 +733,8 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( PrepareRetrieveAgentSessionArtifactContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - artifactId: artifactId!); + sessionId: sessionId, + artifactId: artifactId); return __httpRequest; } @@ -756,7 +756,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -790,7 +790,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -831,7 +831,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -879,7 +879,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -901,7 +901,7 @@ partial void ProcessRetrieveAgentSessionArtifactContentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/artifacts/{artifactId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagent.g.cs index 0da9fafd0..7a5103c72 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagent.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveAgentSessionSubagentResponseContent( PrepareRetrieveAgentSessionSubagentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - subagentId: subagentId!); + sessionId: sessionId, + subagentId: subagentId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessRetrieveAgentSessionSubagentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessRetrieveAgentSessionSubagentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessRetrieveAgentSessionSubagentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessRetrieveAgentSessionSubagentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessRetrieveAgentSessionSubagentResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagentTurn.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagentTurn.g.cs index 582eef922..bce2e68fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagentTurn.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionSubagentTurn.g.cs @@ -163,9 +163,9 @@ partial void ProcessRetrieveAgentSessionSubagentTurnResponseContent( PrepareRetrieveAgentSessionSubagentTurnRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - subagentId: subagentId!, - turnId: turnId!); + sessionId: sessionId, + subagentId: subagentId, + turnId: turnId); return __httpRequest; } @@ -187,7 +187,7 @@ partial void ProcessRetrieveAgentSessionSubagentTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessRetrieveAgentSessionSubagentTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessRetrieveAgentSessionSubagentTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessRetrieveAgentSessionSubagentTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessRetrieveAgentSessionSubagentTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/subagents/{subagentId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs index 5ad22ce09..db0886ea9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.RetrieveAgentSessionTurn.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( PrepareRetrieveAgentSessionTurnRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, - turnId: turnId!); + sessionId: sessionId, + turnId: turnId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessRetrieveAgentSessionTurnResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}/turns/{turnId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs index 88d897e82..67455268d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgent.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateAgentResponseContent( PrepareUpdateAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentId: agentId!, + agentId: agentId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessUpdateAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUpdateAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUpdateAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUpdateAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUpdateAgentResponseContent( pathTemplate: "$\"/agents/{agentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs index 3f066811d..3eafc5562 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentEnvironmentTemplate.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( PrepareUpdateAgentEnvironmentTemplateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - environmentTemplateId: environmentTemplateId!, + environmentTemplateId: environmentTemplateId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent( pathTemplate: "$\"/agents/environments/templates/{environmentTemplateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentSession.g.cs index d03446077..9ecd7a878 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AgentsClient.UpdateAgentSession.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateAgentSessionResponseContent( PrepareUpdateAgentSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessUpdateAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUpdateAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUpdateAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUpdateAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUpdateAgentSessionResponseContent( pathTemplate: "$\"/agents/sessions/{sessionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 7ed102ec2..688bfa8f1 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 @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -190,13 +190,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -216,13 +216,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -239,13 +239,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs index 5f15212bb..eed965290 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs index c0af6b07b..a3d67b681 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.58.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.58.g.cs index 50993e1bf..5026c15e4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.58.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.58.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// @@ -670,8 +670,8 @@ public bool TryPickValue18( /// /// /// - public T18 PickValue18() => IsValue18 - ? Value18! + public T18 PickValue18() => Value18 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value18' but the value was {ToString()}."); /// @@ -707,8 +707,8 @@ public bool TryPickValue19( /// /// /// - public T19 PickValue19() => IsValue19 - ? Value19! + public T19 PickValue19() => Value19 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value19' but the value was {ToString()}."); /// @@ -744,8 +744,8 @@ public bool TryPickValue20( /// /// /// - public T20 PickValue20() => IsValue20 - ? Value20! + public T20 PickValue20() => Value20 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value20' but the value was {ToString()}."); /// @@ -781,8 +781,8 @@ public bool TryPickValue21( /// /// /// - public T21 PickValue21() => IsValue21 - ? Value21! + public T21 PickValue21() => Value21 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value21' but the value was {ToString()}."); /// @@ -818,8 +818,8 @@ public bool TryPickValue22( /// /// /// - public T22 PickValue22() => IsValue22 - ? Value22! + public T22 PickValue22() => Value22 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value22' but the value was {ToString()}."); /// @@ -855,8 +855,8 @@ public bool TryPickValue23( /// /// /// - public T23 PickValue23() => IsValue23 - ? Value23! + public T23 PickValue23() => Value23 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value23' but the value was {ToString()}."); /// @@ -892,8 +892,8 @@ public bool TryPickValue24( /// /// /// - public T24 PickValue24() => IsValue24 - ? Value24! + public T24 PickValue24() => Value24 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value24' but the value was {ToString()}."); /// @@ -929,8 +929,8 @@ public bool TryPickValue25( /// /// /// - public T25 PickValue25() => IsValue25 - ? Value25! + public T25 PickValue25() => Value25 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value25' but the value was {ToString()}."); /// @@ -966,8 +966,8 @@ public bool TryPickValue26( /// /// /// - public T26 PickValue26() => IsValue26 - ? Value26! + public T26 PickValue26() => Value26 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value26' but the value was {ToString()}."); /// @@ -1003,8 +1003,8 @@ public bool TryPickValue27( /// /// /// - public T27 PickValue27() => IsValue27 - ? Value27! + public T27 PickValue27() => Value27 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value27' but the value was {ToString()}."); /// @@ -1040,8 +1040,8 @@ public bool TryPickValue28( /// /// /// - public T28 PickValue28() => IsValue28 - ? Value28! + public T28 PickValue28() => Value28 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value28' but the value was {ToString()}."); /// @@ -1077,8 +1077,8 @@ public bool TryPickValue29( /// /// /// - public T29 PickValue29() => IsValue29 - ? Value29! + public T29 PickValue29() => Value29 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value29' but the value was {ToString()}."); /// @@ -1114,8 +1114,8 @@ public bool TryPickValue30( /// /// /// - public T30 PickValue30() => IsValue30 - ? Value30! + public T30 PickValue30() => Value30 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value30' but the value was {ToString()}."); /// @@ -1151,8 +1151,8 @@ public bool TryPickValue31( /// /// /// - public T31 PickValue31() => IsValue31 - ? Value31! + public T31 PickValue31() => Value31 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value31' but the value was {ToString()}."); /// @@ -1188,8 +1188,8 @@ public bool TryPickValue32( /// /// /// - public T32 PickValue32() => IsValue32 - ? Value32! + public T32 PickValue32() => Value32 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value32' but the value was {ToString()}."); /// @@ -1225,8 +1225,8 @@ public bool TryPickValue33( /// /// /// - public T33 PickValue33() => IsValue33 - ? Value33! + public T33 PickValue33() => Value33 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value33' but the value was {ToString()}."); /// @@ -1262,8 +1262,8 @@ public bool TryPickValue34( /// /// /// - public T34 PickValue34() => IsValue34 - ? Value34! + public T34 PickValue34() => Value34 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value34' but the value was {ToString()}."); /// @@ -1299,8 +1299,8 @@ public bool TryPickValue35( /// /// /// - public T35 PickValue35() => IsValue35 - ? Value35! + public T35 PickValue35() => Value35 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value35' but the value was {ToString()}."); /// @@ -1336,8 +1336,8 @@ public bool TryPickValue36( /// /// /// - public T36 PickValue36() => IsValue36 - ? Value36! + public T36 PickValue36() => Value36 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value36' but the value was {ToString()}."); /// @@ -1373,8 +1373,8 @@ public bool TryPickValue37( /// /// /// - public T37 PickValue37() => IsValue37 - ? Value37! + public T37 PickValue37() => Value37 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value37' but the value was {ToString()}."); /// @@ -1410,8 +1410,8 @@ public bool TryPickValue38( /// /// /// - public T38 PickValue38() => IsValue38 - ? Value38! + public T38 PickValue38() => Value38 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value38' but the value was {ToString()}."); /// @@ -1447,8 +1447,8 @@ public bool TryPickValue39( /// /// /// - public T39 PickValue39() => IsValue39 - ? Value39! + public T39 PickValue39() => Value39 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value39' but the value was {ToString()}."); /// @@ -1484,8 +1484,8 @@ public bool TryPickValue40( /// /// /// - public T40 PickValue40() => IsValue40 - ? Value40! + public T40 PickValue40() => Value40 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value40' but the value was {ToString()}."); /// @@ -1521,8 +1521,8 @@ public bool TryPickValue41( /// /// /// - public T41 PickValue41() => IsValue41 - ? Value41! + public T41 PickValue41() => Value41 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value41' but the value was {ToString()}."); /// @@ -1558,8 +1558,8 @@ public bool TryPickValue42( /// /// /// - public T42 PickValue42() => IsValue42 - ? Value42! + public T42 PickValue42() => Value42 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value42' but the value was {ToString()}."); /// @@ -1595,8 +1595,8 @@ public bool TryPickValue43( /// /// /// - public T43 PickValue43() => IsValue43 - ? Value43! + public T43 PickValue43() => Value43 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value43' but the value was {ToString()}."); /// @@ -1632,8 +1632,8 @@ public bool TryPickValue44( /// /// /// - public T44 PickValue44() => IsValue44 - ? Value44! + public T44 PickValue44() => Value44 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value44' but the value was {ToString()}."); /// @@ -1669,8 +1669,8 @@ public bool TryPickValue45( /// /// /// - public T45 PickValue45() => IsValue45 - ? Value45! + public T45 PickValue45() => Value45 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value45' but the value was {ToString()}."); /// @@ -1706,8 +1706,8 @@ public bool TryPickValue46( /// /// /// - public T46 PickValue46() => IsValue46 - ? Value46! + public T46 PickValue46() => Value46 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value46' but the value was {ToString()}."); /// @@ -1743,8 +1743,8 @@ public bool TryPickValue47( /// /// /// - public T47 PickValue47() => IsValue47 - ? Value47! + public T47 PickValue47() => Value47 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value47' but the value was {ToString()}."); /// @@ -1780,8 +1780,8 @@ public bool TryPickValue48( /// /// /// - public T48 PickValue48() => IsValue48 - ? Value48! + public T48 PickValue48() => Value48 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value48' but the value was {ToString()}."); /// @@ -1817,8 +1817,8 @@ public bool TryPickValue49( /// /// /// - public T49 PickValue49() => IsValue49 - ? Value49! + public T49 PickValue49() => Value49 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value49' but the value was {ToString()}."); /// @@ -1854,8 +1854,8 @@ public bool TryPickValue50( /// /// /// - public T50 PickValue50() => IsValue50 - ? Value50! + public T50 PickValue50() => Value50 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value50' but the value was {ToString()}."); /// @@ -1891,8 +1891,8 @@ public bool TryPickValue51( /// /// /// - public T51 PickValue51() => IsValue51 - ? Value51! + public T51 PickValue51() => Value51 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value51' but the value was {ToString()}."); /// @@ -1928,8 +1928,8 @@ public bool TryPickValue52( /// /// /// - public T52 PickValue52() => IsValue52 - ? Value52! + public T52 PickValue52() => Value52 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value52' but the value was {ToString()}."); /// @@ -1965,8 +1965,8 @@ public bool TryPickValue53( /// /// /// - public T53 PickValue53() => IsValue53 - ? Value53! + public T53 PickValue53() => Value53 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value53' but the value was {ToString()}."); /// @@ -2002,8 +2002,8 @@ public bool TryPickValue54( /// /// /// - public T54 PickValue54() => IsValue54 - ? Value54! + public T54 PickValue54() => Value54 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value54' but the value was {ToString()}."); /// @@ -2039,8 +2039,8 @@ public bool TryPickValue55( /// /// /// - public T55 PickValue55() => IsValue55 - ? Value55! + public T55 PickValue55() => Value55 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value55' but the value was {ToString()}."); /// @@ -2076,8 +2076,8 @@ public bool TryPickValue56( /// /// /// - public T56 PickValue56() => IsValue56 - ? Value56! + public T56 PickValue56() => Value56 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value56' but the value was {ToString()}."); /// @@ -2113,8 +2113,8 @@ public bool TryPickValue57( /// /// /// - public T57 PickValue57() => IsValue57 - ? Value57! + public T57 PickValue57() => Value57 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value57' but the value was {ToString()}."); /// @@ -2150,8 +2150,8 @@ public bool TryPickValue58( /// /// /// - public T58 PickValue58() => IsValue58 - ? Value58! + public T58 PickValue58() => Value58 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value58' but the value was {ToString()}."); /// /// @@ -3816,237 +3816,237 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } - else if (IsValue18 && value18 != null) + else if (Value18 is { } __value17 && value18 != null) { - return value18(Value18!); + return value18(__value17); } - else if (IsValue19 && value19 != null) + else if (Value19 is { } __value18 && value19 != null) { - return value19(Value19!); + return value19(__value18); } - else if (IsValue20 && value20 != null) + else if (Value20 is { } __value19 && value20 != null) { - return value20(Value20!); + return value20(__value19); } - else if (IsValue21 && value21 != null) + else if (Value21 is { } __value20 && value21 != null) { - return value21(Value21!); + return value21(__value20); } - else if (IsValue22 && value22 != null) + else if (Value22 is { } __value21 && value22 != null) { - return value22(Value22!); + return value22(__value21); } - else if (IsValue23 && value23 != null) + else if (Value23 is { } __value22 && value23 != null) { - return value23(Value23!); + return value23(__value22); } - else if (IsValue24 && value24 != null) + else if (Value24 is { } __value23 && value24 != null) { - return value24(Value24!); + return value24(__value23); } - else if (IsValue25 && value25 != null) + else if (Value25 is { } __value24 && value25 != null) { - return value25(Value25!); + return value25(__value24); } - else if (IsValue26 && value26 != null) + else if (Value26 is { } __value25 && value26 != null) { - return value26(Value26!); + return value26(__value25); } - else if (IsValue27 && value27 != null) + else if (Value27 is { } __value26 && value27 != null) { - return value27(Value27!); + return value27(__value26); } - else if (IsValue28 && value28 != null) + else if (Value28 is { } __value27 && value28 != null) { - return value28(Value28!); + return value28(__value27); } - else if (IsValue29 && value29 != null) + else if (Value29 is { } __value28 && value29 != null) { - return value29(Value29!); + return value29(__value28); } - else if (IsValue30 && value30 != null) + else if (Value30 is { } __value29 && value30 != null) { - return value30(Value30!); + return value30(__value29); } - else if (IsValue31 && value31 != null) + else if (Value31 is { } __value30 && value31 != null) { - return value31(Value31!); + return value31(__value30); } - else if (IsValue32 && value32 != null) + else if (Value32 is { } __value31 && value32 != null) { - return value32(Value32!); + return value32(__value31); } - else if (IsValue33 && value33 != null) + else if (Value33 is { } __value32 && value33 != null) { - return value33(Value33!); + return value33(__value32); } - else if (IsValue34 && value34 != null) + else if (Value34 is { } __value33 && value34 != null) { - return value34(Value34!); + return value34(__value33); } - else if (IsValue35 && value35 != null) + else if (Value35 is { } __value34 && value35 != null) { - return value35(Value35!); + return value35(__value34); } - else if (IsValue36 && value36 != null) + else if (Value36 is { } __value35 && value36 != null) { - return value36(Value36!); + return value36(__value35); } - else if (IsValue37 && value37 != null) + else if (Value37 is { } __value36 && value37 != null) { - return value37(Value37!); + return value37(__value36); } - else if (IsValue38 && value38 != null) + else if (Value38 is { } __value37 && value38 != null) { - return value38(Value38!); + return value38(__value37); } - else if (IsValue39 && value39 != null) + else if (Value39 is { } __value38 && value39 != null) { - return value39(Value39!); + return value39(__value38); } - else if (IsValue40 && value40 != null) + else if (Value40 is { } __value39 && value40 != null) { - return value40(Value40!); + return value40(__value39); } - else if (IsValue41 && value41 != null) + else if (Value41 is { } __value40 && value41 != null) { - return value41(Value41!); + return value41(__value40); } - else if (IsValue42 && value42 != null) + else if (Value42 is { } __value41 && value42 != null) { - return value42(Value42!); + return value42(__value41); } - else if (IsValue43 && value43 != null) + else if (Value43 is { } __value42 && value43 != null) { - return value43(Value43!); + return value43(__value42); } - else if (IsValue44 && value44 != null) + else if (Value44 is { } __value43 && value44 != null) { - return value44(Value44!); + return value44(__value43); } - else if (IsValue45 && value45 != null) + else if (Value45 is { } __value44 && value45 != null) { - return value45(Value45!); + return value45(__value44); } - else if (IsValue46 && value46 != null) + else if (Value46 is { } __value45 && value46 != null) { - return value46(Value46!); + return value46(__value45); } - else if (IsValue47 && value47 != null) + else if (Value47 is { } __value46 && value47 != null) { - return value47(Value47!); + return value47(__value46); } - else if (IsValue48 && value48 != null) + else if (Value48 is { } __value47 && value48 != null) { - return value48(Value48!); + return value48(__value47); } - else if (IsValue49 && value49 != null) + else if (Value49 is { } __value48 && value49 != null) { - return value49(Value49!); + return value49(__value48); } - else if (IsValue50 && value50 != null) + else if (Value50 is { } __value49 && value50 != null) { - return value50(Value50!); + return value50(__value49); } - else if (IsValue51 && value51 != null) + else if (Value51 is { } __value50 && value51 != null) { - return value51(Value51!); + return value51(__value50); } - else if (IsValue52 && value52 != null) + else if (Value52 is { } __value51 && value52 != null) { - return value52(Value52!); + return value52(__value51); } - else if (IsValue53 && value53 != null) + else if (Value53 is { } __value52 && value53 != null) { - return value53(Value53!); + return value53(__value52); } - else if (IsValue54 && value54 != null) + else if (Value54 is { } __value53 && value54 != null) { - return value54(Value54!); + return value54(__value53); } - else if (IsValue55 && value55 != null) + else if (Value55 is { } __value54 && value55 != null) { - return value55(Value55!); + return value55(__value54); } - else if (IsValue56 && value56 != null) + else if (Value56 is { } __value55 && value56 != null) { - return value56(Value56!); + return value56(__value55); } - else if (IsValue57 && value57 != null) + else if (Value57 is { } __value56 && value57 != null) { - return value57(Value57!); + return value57(__value56); } - else if (IsValue58 && value58 != null) + else if (Value58 is { } __value57 && value58 != null) { - return value58(Value58!); + return value58(__value57); } return default(TResult); @@ -4178,237 +4178,237 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } - else if (IsValue23) + else if (Value23 is { } __value22) { - value23?.Invoke(Value23!); + value23?.Invoke(__value22); } - else if (IsValue24) + else if (Value24 is { } __value23) { - value24?.Invoke(Value24!); + value24?.Invoke(__value23); } - else if (IsValue25) + else if (Value25 is { } __value24) { - value25?.Invoke(Value25!); + value25?.Invoke(__value24); } - else if (IsValue26) + else if (Value26 is { } __value25) { - value26?.Invoke(Value26!); + value26?.Invoke(__value25); } - else if (IsValue27) + else if (Value27 is { } __value26) { - value27?.Invoke(Value27!); + value27?.Invoke(__value26); } - else if (IsValue28) + else if (Value28 is { } __value27) { - value28?.Invoke(Value28!); + value28?.Invoke(__value27); } - else if (IsValue29) + else if (Value29 is { } __value28) { - value29?.Invoke(Value29!); + value29?.Invoke(__value28); } - else if (IsValue30) + else if (Value30 is { } __value29) { - value30?.Invoke(Value30!); + value30?.Invoke(__value29); } - else if (IsValue31) + else if (Value31 is { } __value30) { - value31?.Invoke(Value31!); + value31?.Invoke(__value30); } - else if (IsValue32) + else if (Value32 is { } __value31) { - value32?.Invoke(Value32!); + value32?.Invoke(__value31); } - else if (IsValue33) + else if (Value33 is { } __value32) { - value33?.Invoke(Value33!); + value33?.Invoke(__value32); } - else if (IsValue34) + else if (Value34 is { } __value33) { - value34?.Invoke(Value34!); + value34?.Invoke(__value33); } - else if (IsValue35) + else if (Value35 is { } __value34) { - value35?.Invoke(Value35!); + value35?.Invoke(__value34); } - else if (IsValue36) + else if (Value36 is { } __value35) { - value36?.Invoke(Value36!); + value36?.Invoke(__value35); } - else if (IsValue37) + else if (Value37 is { } __value36) { - value37?.Invoke(Value37!); + value37?.Invoke(__value36); } - else if (IsValue38) + else if (Value38 is { } __value37) { - value38?.Invoke(Value38!); + value38?.Invoke(__value37); } - else if (IsValue39) + else if (Value39 is { } __value38) { - value39?.Invoke(Value39!); + value39?.Invoke(__value38); } - else if (IsValue40) + else if (Value40 is { } __value39) { - value40?.Invoke(Value40!); + value40?.Invoke(__value39); } - else if (IsValue41) + else if (Value41 is { } __value40) { - value41?.Invoke(Value41!); + value41?.Invoke(__value40); } - else if (IsValue42) + else if (Value42 is { } __value41) { - value42?.Invoke(Value42!); + value42?.Invoke(__value41); } - else if (IsValue43) + else if (Value43 is { } __value42) { - value43?.Invoke(Value43!); + value43?.Invoke(__value42); } - else if (IsValue44) + else if (Value44 is { } __value43) { - value44?.Invoke(Value44!); + value44?.Invoke(__value43); } - else if (IsValue45) + else if (Value45 is { } __value44) { - value45?.Invoke(Value45!); + value45?.Invoke(__value44); } - else if (IsValue46) + else if (Value46 is { } __value45) { - value46?.Invoke(Value46!); + value46?.Invoke(__value45); } - else if (IsValue47) + else if (Value47 is { } __value46) { - value47?.Invoke(Value47!); + value47?.Invoke(__value46); } - else if (IsValue48) + else if (Value48 is { } __value47) { - value48?.Invoke(Value48!); + value48?.Invoke(__value47); } - else if (IsValue49) + else if (Value49 is { } __value48) { - value49?.Invoke(Value49!); + value49?.Invoke(__value48); } - else if (IsValue50) + else if (Value50 is { } __value49) { - value50?.Invoke(Value50!); + value50?.Invoke(__value49); } - else if (IsValue51) + else if (Value51 is { } __value50) { - value51?.Invoke(Value51!); + value51?.Invoke(__value50); } - else if (IsValue52) + else if (Value52 is { } __value51) { - value52?.Invoke(Value52!); + value52?.Invoke(__value51); } - else if (IsValue53) + else if (Value53 is { } __value52) { - value53?.Invoke(Value53!); + value53?.Invoke(__value52); } - else if (IsValue54) + else if (Value54 is { } __value53) { - value54?.Invoke(Value54!); + value54?.Invoke(__value53); } - else if (IsValue55) + else if (Value55 is { } __value54) { - value55?.Invoke(Value55!); + value55?.Invoke(__value54); } - else if (IsValue56) + else if (Value56 is { } __value55) { - value56?.Invoke(Value56!); + value56?.Invoke(__value55); } - else if (IsValue57) + else if (Value57 is { } __value56) { - value57?.Invoke(Value57!); + value57?.Invoke(__value56); } - else if (IsValue58) + else if (Value58 is { } __value57) { - value58?.Invoke(Value58!); + value58?.Invoke(__value57); } } @@ -4481,237 +4481,237 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } - else if (IsValue23) + else if (Value23 is { } __value22) { - value23?.Invoke(Value23!); + value23?.Invoke(__value22); } - else if (IsValue24) + else if (Value24 is { } __value23) { - value24?.Invoke(Value24!); + value24?.Invoke(__value23); } - else if (IsValue25) + else if (Value25 is { } __value24) { - value25?.Invoke(Value25!); + value25?.Invoke(__value24); } - else if (IsValue26) + else if (Value26 is { } __value25) { - value26?.Invoke(Value26!); + value26?.Invoke(__value25); } - else if (IsValue27) + else if (Value27 is { } __value26) { - value27?.Invoke(Value27!); + value27?.Invoke(__value26); } - else if (IsValue28) + else if (Value28 is { } __value27) { - value28?.Invoke(Value28!); + value28?.Invoke(__value27); } - else if (IsValue29) + else if (Value29 is { } __value28) { - value29?.Invoke(Value29!); + value29?.Invoke(__value28); } - else if (IsValue30) + else if (Value30 is { } __value29) { - value30?.Invoke(Value30!); + value30?.Invoke(__value29); } - else if (IsValue31) + else if (Value31 is { } __value30) { - value31?.Invoke(Value31!); + value31?.Invoke(__value30); } - else if (IsValue32) + else if (Value32 is { } __value31) { - value32?.Invoke(Value32!); + value32?.Invoke(__value31); } - else if (IsValue33) + else if (Value33 is { } __value32) { - value33?.Invoke(Value33!); + value33?.Invoke(__value32); } - else if (IsValue34) + else if (Value34 is { } __value33) { - value34?.Invoke(Value34!); + value34?.Invoke(__value33); } - else if (IsValue35) + else if (Value35 is { } __value34) { - value35?.Invoke(Value35!); + value35?.Invoke(__value34); } - else if (IsValue36) + else if (Value36 is { } __value35) { - value36?.Invoke(Value36!); + value36?.Invoke(__value35); } - else if (IsValue37) + else if (Value37 is { } __value36) { - value37?.Invoke(Value37!); + value37?.Invoke(__value36); } - else if (IsValue38) + else if (Value38 is { } __value37) { - value38?.Invoke(Value38!); + value38?.Invoke(__value37); } - else if (IsValue39) + else if (Value39 is { } __value38) { - value39?.Invoke(Value39!); + value39?.Invoke(__value38); } - else if (IsValue40) + else if (Value40 is { } __value39) { - value40?.Invoke(Value40!); + value40?.Invoke(__value39); } - else if (IsValue41) + else if (Value41 is { } __value40) { - value41?.Invoke(Value41!); + value41?.Invoke(__value40); } - else if (IsValue42) + else if (Value42 is { } __value41) { - value42?.Invoke(Value42!); + value42?.Invoke(__value41); } - else if (IsValue43) + else if (Value43 is { } __value42) { - value43?.Invoke(Value43!); + value43?.Invoke(__value42); } - else if (IsValue44) + else if (Value44 is { } __value43) { - value44?.Invoke(Value44!); + value44?.Invoke(__value43); } - else if (IsValue45) + else if (Value45 is { } __value44) { - value45?.Invoke(Value45!); + value45?.Invoke(__value44); } - else if (IsValue46) + else if (Value46 is { } __value45) { - value46?.Invoke(Value46!); + value46?.Invoke(__value45); } - else if (IsValue47) + else if (Value47 is { } __value46) { - value47?.Invoke(Value47!); + value47?.Invoke(__value46); } - else if (IsValue48) + else if (Value48 is { } __value47) { - value48?.Invoke(Value48!); + value48?.Invoke(__value47); } - else if (IsValue49) + else if (Value49 is { } __value48) { - value49?.Invoke(Value49!); + value49?.Invoke(__value48); } - else if (IsValue50) + else if (Value50 is { } __value49) { - value50?.Invoke(Value50!); + value50?.Invoke(__value49); } - else if (IsValue51) + else if (Value51 is { } __value50) { - value51?.Invoke(Value51!); + value51?.Invoke(__value50); } - else if (IsValue52) + else if (Value52 is { } __value51) { - value52?.Invoke(Value52!); + value52?.Invoke(__value51); } - else if (IsValue53) + else if (Value53 is { } __value52) { - value53?.Invoke(Value53!); + value53?.Invoke(__value52); } - else if (IsValue54) + else if (Value54 is { } __value53) { - value54?.Invoke(Value54!); + value54?.Invoke(__value53); } - else if (IsValue55) + else if (Value55 is { } __value54) { - value55?.Invoke(Value55!); + value55?.Invoke(__value54); } - else if (IsValue56) + else if (Value56 is { } __value55) { - value56?.Invoke(Value56!); + value56?.Invoke(__value55); } - else if (IsValue57) + else if (Value57 is { } __value56) { - value57?.Invoke(Value57!); + value57?.Invoke(__value56); } - else if (IsValue58) + else if (Value58 is { } __value57) { - value58?.Invoke(Value58!); + value58?.Invoke(__value57); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Assistants.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Assistants.JsonSerializerContext.g.cs index 57677e384..7b4deb58e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Assistants.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Assistants.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs index 365e232cc..a198379cb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs @@ -155,8 +155,8 @@ partial void ProcessCancelRunResponseContent( PrepareCancelRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - runId: runId!); + threadId: threadId, + runId: runId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessCancelRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCancelRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCancelRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCancelRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCancelRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 9383c0988..2d342a70d 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 @@ -166,7 +166,7 @@ partial void ProcessCreateMessageResponseContent( PrepareCreateMessageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, + threadId: threadId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessCreateMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessCreateMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessCreateMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCreateMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessCreateMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 d9d1f1312..1126a24f4 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 @@ -94,6 +94,26 @@ partial void ProcessCreateRunResponseContent( { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + request = new global::tryAGI.OpenAI.CreateRunRequest + { + AssistantId = request.AssistantId, + Model = request.Model, + ReasoningEffort = request.ReasoningEffort, + Instructions = request.Instructions, + AdditionalInstructions = request.AdditionalInstructions, + AdditionalMessages = request.AdditionalMessages, + Tools = request.Tools, + Metadata = request.Metadata, + Temperature = request.Temperature, + TopP = request.TopP, + Stream = false, + MaxPromptTokens = request.MaxPromptTokens, + MaxCompletionTokens = request.MaxCompletionTokens, + TruncationStrategy = request.TruncationStrategy, + ToolChoice = request.ToolChoice, + ParallelToolCalls = request.ParallelToolCalls, + ResponseFormat = request.ResponseFormat, + }; PrepareArguments( client: HttpClient); PrepareCreateRunArguments( @@ -144,6 +164,10 @@ partial void ProcessCreateRunResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/json"); + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || @@ -177,7 +201,7 @@ partial void ProcessCreateRunResponseContent( PrepareCreateRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, + threadId: threadId, include: include, request: request); @@ -201,7 +225,7 @@ partial void ProcessCreateRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -235,7 +259,7 @@ partial void ProcessCreateRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -276,7 +300,7 @@ partial void ProcessCreateRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -324,7 +348,7 @@ partial void ProcessCreateRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +370,7 @@ partial void ProcessCreateRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -529,9 +553,6 @@ partial void ProcessCreateRunResponseContent( /// Default Value: 1
/// Example: 1 /// - /// - /// If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. - /// /// /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. /// @@ -566,7 +587,6 @@ partial void ProcessCreateRunResponseContent( global::System.Collections.Generic.Dictionary? metadata = default, double? temperature = default, double? topP = default, - bool? stream = default, int? maxPromptTokens = default, int? maxCompletionTokens = default, global::tryAGI.OpenAI.AllOf? truncationStrategy = default, @@ -588,7 +608,7 @@ partial void ProcessCreateRunResponseContent( Metadata = metadata, Temperature = temperature, TopP = topP, - Stream = stream, + Stream = false, MaxPromptTokens = maxPromptTokens, MaxCompletionTokens = maxCompletionTokens, TruncationStrategy = truncationStrategy, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRunAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRunAsStream.g.cs new file mode 100644 index 000000000..4dfa3c1b5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRunAsStream.g.cs @@ -0,0 +1,533 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class AssistantsClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateRunAsStreamSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateRunAsStreamSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_CreateRunAsStreamSecurityRequirement0, + }; + partial void PrepareCreateRunAsStreamArguments( + global::System.Net.Http.HttpClient httpClient, + ref string threadId, + global::System.Collections.Generic.IList? include, + global::tryAGI.OpenAI.CreateRunRequest request); + partial void PrepareCreateRunAsStreamRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string threadId, + global::System.Collections.Generic.IList? include, + global::tryAGI.OpenAI.CreateRunRequest request); + partial void ProcessCreateRunAsStreamResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Create run
+ /// Create a run. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable CreateRunAsStreamAsync( + string threadId, + + global::tryAGI.OpenAI.CreateRunRequest request, + global::System.Collections.Generic.IList? include = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + request = new global::tryAGI.OpenAI.CreateRunRequest + { + AssistantId = request.AssistantId, + Model = request.Model, + ReasoningEffort = request.ReasoningEffort, + Instructions = request.Instructions, + AdditionalInstructions = request.AdditionalInstructions, + AdditionalMessages = request.AdditionalMessages, + Tools = request.Tools, + Metadata = request.Metadata, + Temperature = request.Temperature, + TopP = request.TopP, + Stream = true, + MaxPromptTokens = request.MaxPromptTokens, + MaxCompletionTokens = request.MaxCompletionTokens, + TruncationStrategy = request.TruncationStrategy, + ToolChoice = request.ToolChoice, + ParallelToolCalls = request.ParallelToolCalls, + ResponseFormat = request.ResponseFormat, + }; + PrepareArguments( + client: HttpClient); + PrepareCreateRunAsStreamArguments( + httpClient: HttpClient, + threadId: ref threadId, + include: include, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateRunAsStreamSecurityRequirements, + operationName: "CreateRunAsStreamAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/threads/{threadId}/runs", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("include[]", include, selector: static x => x.ToValueString(), delimiter: ",", explode: true) + ; + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "text/event-stream"); + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateRunAsStreamRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + threadId: threadId, + include: include, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateRunAsStream", + methodName: "CreateRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateRunAsStream", + methodName: "CreateRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateRunAsStream", + methodName: "CreateRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateRunAsStreamResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateRunAsStream", + methodName: "CreateRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateRunAsStream", + methodName: "CreateRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + using var __stream = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + await foreach (var __sseEvent in global::System.Net.ServerSentEvents.SseParser + .Create(__stream).EnumerateAsync(__effectiveCancellationToken)) + { + var __content = __sseEvent.Data; + if (__content == "[DONE]") + { + yield break; + } + + var __streamedResponse = global::tryAGI.OpenAI.AssistantStreamEvent.FromJson(__content, JsonSerializerContext) ?? + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: $"Response deserialization failed for \"{__content}\" ", + innerException: null, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + + yield return __streamedResponse; + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create run
+ /// Create a run. + ///
+ /// + /// + /// + /// The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run. + /// + /// + /// The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
+ /// Example: gpt-5 + /// + /// + /// + /// Overrides the [instructions](https://developers.openai.com/api/docs/assistants/migration) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions. + /// + /// + /// Adds additional messages to the thread before creating the run. + /// + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// + /// + /// Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.
+ /// Default Value: true + /// + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable CreateRunAsStreamAsync( + string threadId, + string assistantId, + global::System.Collections.Generic.IList? include = default, + global::tryAGI.OpenAI.AnyOf? model = default, + global::tryAGI.OpenAI.ReasoningEffortEnum? reasoningEffort = default, + string? instructions = default, + string? additionalInstructions = default, + global::System.Collections.Generic.IList? additionalMessages = default, + global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.Dictionary? metadata = default, + double? temperature = default, + double? topP = default, + int? maxPromptTokens = default, + int? maxCompletionTokens = default, + global::tryAGI.OpenAI.AllOf? truncationStrategy = default, + global::tryAGI.OpenAI.AllOf? toolChoice = default, + bool? parallelToolCalls = default, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.CreateRunRequest + { + AssistantId = assistantId, + Model = model, + ReasoningEffort = reasoningEffort, + Instructions = instructions, + AdditionalInstructions = additionalInstructions, + AdditionalMessages = additionalMessages, + Tools = tools, + Metadata = metadata, + Temperature = temperature, + TopP = topP, + Stream = true, + MaxPromptTokens = maxPromptTokens, + MaxCompletionTokens = maxCompletionTokens, + TruncationStrategy = truncationStrategy, + ToolChoice = toolChoice, + ParallelToolCalls = parallelToolCalls, + ResponseFormat = responseFormat, + }; + + var __enumerable = CreateRunAsStreamAsync( + threadId: threadId, + include: include, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + + await foreach (var __response in __enumerable) + { + yield return __response; + } + } + } +} \ No newline at end of file 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 df85c543c..4cb4977b0 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 @@ -180,7 +180,7 @@ partial void ProcessCreateThreadResponseContent( pathTemplate: "\"/threads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateThreadResponseContent( pathTemplate: "\"/threads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateThreadResponseContent( pathTemplate: "\"/threads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateThreadResponseContent( pathTemplate: "\"/threads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateThreadResponseContent( pathTemplate: "\"/threads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 53b0af0d0..66a073657 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 @@ -80,6 +80,25 @@ partial void ProcessCreateThreadAndRunResponseContent( { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + request = new global::tryAGI.OpenAI.CreateThreadAndRunRequest + { + AssistantId = request.AssistantId, + Thread = request.Thread, + Model = request.Model, + Instructions = request.Instructions, + Tools = request.Tools, + ToolResources = request.ToolResources, + Metadata = request.Metadata, + Temperature = request.Temperature, + TopP = request.TopP, + Stream = false, + MaxPromptTokens = request.MaxPromptTokens, + MaxCompletionTokens = request.MaxCompletionTokens, + TruncationStrategy = request.TruncationStrategy, + ToolChoice = request.ToolChoice, + ParallelToolCalls = request.ParallelToolCalls, + ResponseFormat = request.ResponseFormat, + }; PrepareArguments( client: HttpClient); PrepareCreateThreadAndRunArguments( @@ -125,6 +144,10 @@ partial void ProcessCreateThreadAndRunResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/json"); + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || @@ -180,7 +203,7 @@ partial void ProcessCreateThreadAndRunResponseContent( pathTemplate: "\"/threads/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +237,7 @@ partial void ProcessCreateThreadAndRunResponseContent( pathTemplate: "\"/threads/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +278,7 @@ partial void ProcessCreateThreadAndRunResponseContent( pathTemplate: "\"/threads/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +326,7 @@ partial void ProcessCreateThreadAndRunResponseContent( pathTemplate: "\"/threads/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +348,7 @@ partial void ProcessCreateThreadAndRunResponseContent( pathTemplate: "\"/threads/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -506,9 +529,6 @@ partial void ProcessCreateThreadAndRunResponseContent( /// Default Value: 1
/// Example: 1 /// - /// - /// If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. - /// /// /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. /// @@ -540,7 +560,6 @@ partial void ProcessCreateThreadAndRunResponseContent( global::System.Collections.Generic.Dictionary? metadata = default, double? temperature = default, double? topP = default, - bool? stream = default, int? maxPromptTokens = default, int? maxCompletionTokens = default, global::tryAGI.OpenAI.AllOf? truncationStrategy = default, @@ -561,7 +580,7 @@ partial void ProcessCreateThreadAndRunResponseContent( Metadata = metadata, Temperature = temperature, TopP = topP, - Stream = stream, + Stream = false, MaxPromptTokens = maxPromptTokens, MaxCompletionTokens = maxCompletionTokens, TruncationStrategy = truncationStrategy, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRunAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRunAsStream.g.cs new file mode 100644 index 000000000..5823bd2b9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRunAsStream.g.cs @@ -0,0 +1,509 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class AssistantsClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_CreateThreadAndRunAsStreamSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_CreateThreadAndRunAsStreamSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_CreateThreadAndRunAsStreamSecurityRequirement0, + }; + partial void PrepareCreateThreadAndRunAsStreamArguments( + global::System.Net.Http.HttpClient httpClient, + global::tryAGI.OpenAI.CreateThreadAndRunRequest request); + partial void PrepareCreateThreadAndRunAsStreamRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::tryAGI.OpenAI.CreateThreadAndRunRequest request); + partial void ProcessCreateThreadAndRunAsStreamResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Create thread and run
+ /// Create a thread and run it in one request. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable CreateThreadAndRunAsStreamAsync( + + global::tryAGI.OpenAI.CreateThreadAndRunRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + request = new global::tryAGI.OpenAI.CreateThreadAndRunRequest + { + AssistantId = request.AssistantId, + Thread = request.Thread, + Model = request.Model, + Instructions = request.Instructions, + Tools = request.Tools, + ToolResources = request.ToolResources, + Metadata = request.Metadata, + Temperature = request.Temperature, + TopP = request.TopP, + Stream = true, + MaxPromptTokens = request.MaxPromptTokens, + MaxCompletionTokens = request.MaxCompletionTokens, + TruncationStrategy = request.TruncationStrategy, + ToolChoice = request.ToolChoice, + ParallelToolCalls = request.ParallelToolCalls, + ResponseFormat = request.ResponseFormat, + }; + PrepareArguments( + client: HttpClient); + PrepareCreateThreadAndRunAsStreamArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateThreadAndRunAsStreamSecurityRequirements, + operationName: "CreateThreadAndRunAsStreamAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: "/threads/runs", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "text/event-stream"); + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateThreadAndRunAsStreamRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateThreadAndRunAsStream", + methodName: "CreateThreadAndRunAsStreamAsync", + pathTemplate: "\"/threads/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateThreadAndRunAsStream", + methodName: "CreateThreadAndRunAsStreamAsync", + pathTemplate: "\"/threads/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateThreadAndRunAsStream", + methodName: "CreateThreadAndRunAsStreamAsync", + pathTemplate: "\"/threads/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateThreadAndRunAsStreamResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateThreadAndRunAsStream", + methodName: "CreateThreadAndRunAsStreamAsync", + pathTemplate: "\"/threads/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateThreadAndRunAsStream", + methodName: "CreateThreadAndRunAsStreamAsync", + pathTemplate: "\"/threads/runs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + using var __stream = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + await foreach (var __sseEvent in global::System.Net.ServerSentEvents.SseParser + .Create(__stream).EnumerateAsync(__effectiveCancellationToken)) + { + var __content = __sseEvent.Data; + if (__content == "[DONE]") + { + yield break; + } + + var __streamedResponse = global::tryAGI.OpenAI.AssistantStreamEvent.FromJson(__content, JsonSerializerContext) ?? + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: $"Response deserialization failed for \"{__content}\" ", + innerException: null, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + + yield return __streamedResponse; + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create thread and run
+ /// Create a thread and run it in one request. + ///
+ /// + /// The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run. + /// + /// + /// Options to create a new thread. If no thread is provided when running a
+ /// request, an empty thread will be created. + /// + /// + /// The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
+ /// Example: gpt-5 + /// + /// + /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs. + /// + /// + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// + /// + /// Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.
+ /// Default Value: true + /// + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable CreateThreadAndRunAsStreamAsync( + string assistantId, + global::tryAGI.OpenAI.CreateThreadRequest? thread = default, + global::tryAGI.OpenAI.AnyOf? model = default, + string? instructions = default, + global::System.Collections.Generic.IList>? tools = default, + global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? toolResources = default, + global::System.Collections.Generic.Dictionary? metadata = default, + double? temperature = default, + double? topP = default, + int? maxPromptTokens = default, + int? maxCompletionTokens = default, + global::tryAGI.OpenAI.AllOf? truncationStrategy = default, + global::tryAGI.OpenAI.AllOf? toolChoice = default, + bool? parallelToolCalls = default, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.CreateThreadAndRunRequest + { + AssistantId = assistantId, + Thread = thread, + Model = model, + Instructions = instructions, + Tools = tools, + ToolResources = toolResources, + Metadata = metadata, + Temperature = temperature, + TopP = topP, + Stream = true, + MaxPromptTokens = maxPromptTokens, + MaxCompletionTokens = maxCompletionTokens, + TruncationStrategy = truncationStrategy, + ToolChoice = toolChoice, + ParallelToolCalls = parallelToolCalls, + ResponseFormat = responseFormat, + }; + + var __enumerable = CreateThreadAndRunAsStreamAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + + await foreach (var __response in __enumerable) + { + yield return __response; + } + } + } +} \ No newline at end of file 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 c31df9c67..7a5a8e2a6 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 @@ -155,8 +155,8 @@ partial void ProcessDeleteMessageResponseContent( PrepareDeleteMessageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - messageId: messageId!); + threadId: threadId, + messageId: messageId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessDeleteMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessDeleteMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessDeleteMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessDeleteMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessDeleteMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 d347d21dd..aac540522 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteThreadResponseContent( PrepareDeleteThreadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!); + threadId: threadId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs index b62f711eb..26362def3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs @@ -155,8 +155,8 @@ partial void ProcessGetMessageResponseContent( PrepareGetMessageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - messageId: messageId!); + threadId: threadId, + messageId: messageId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessGetMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessGetMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessGetMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessGetMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs index 8cf786f6e..65ddf10f5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs @@ -155,8 +155,8 @@ partial void ProcessGetRunResponseContent( PrepareGetRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - runId: runId!); + threadId: threadId, + runId: runId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessGetRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessGetRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessGetRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessGetRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs index 176669f59..7d1a8f19b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs @@ -174,9 +174,9 @@ partial void ProcessGetRunStepResponseContent( PrepareGetRunStepRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - runId: runId!, - stepId: stepId!, + threadId: threadId, + runId: runId, + stepId: stepId, include: include); return __httpRequest; @@ -199,7 +199,7 @@ partial void ProcessGetRunStepResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps/{stepId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessGetRunStepResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps/{stepId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -274,7 +274,7 @@ partial void ProcessGetRunStepResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps/{stepId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessGetRunStepResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps/{stepId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessGetRunStepResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps/{stepId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs index 1eb3e437e..1b42ab103 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetThread.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetThreadResponseContent( PrepareGetThreadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!); + threadId: threadId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessGetThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessGetThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessGetThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessGetThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessGetThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6959b1a37..13b9b10f0 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 @@ -202,7 +202,7 @@ partial void ProcessListMessagesResponseContent( PrepareListMessagesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, + threadId: threadId, limit: limit, order: order, after: after, @@ -229,7 +229,7 @@ partial void ProcessListMessagesResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessListMessagesResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -304,7 +304,7 @@ partial void ProcessListMessagesResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -352,7 +352,7 @@ partial void ProcessListMessagesResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -374,7 +374,7 @@ partial void ProcessListMessagesResponseContent( pathTemplate: "$\"/threads/{threadId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 fbc1c9975..6a92ead49 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 @@ -210,8 +210,8 @@ partial void ProcessListRunStepsResponseContent( PrepareListRunStepsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - runId: runId!, + threadId: threadId, + runId: runId, limit: limit, order: order, after: after, @@ -238,7 +238,7 @@ partial void ProcessListRunStepsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessListRunStepsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessListRunStepsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -361,7 +361,7 @@ partial void ProcessListRunStepsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -383,7 +383,7 @@ partial void ProcessListRunStepsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/steps\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 328d9fddc..404bd4979 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 @@ -193,7 +193,7 @@ partial void ProcessListRunsResponseContent( PrepareListRunsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, + threadId: threadId, limit: limit, order: order, after: after, @@ -219,7 +219,7 @@ partial void ProcessListRunsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessListRunsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessListRunsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessListRunsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -364,7 +364,7 @@ partial void ProcessListRunsResponseContent( pathTemplate: "$\"/threads/{threadId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6af7f8c59..912435029 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 @@ -174,8 +174,8 @@ partial void ProcessModifyMessageResponseContent( PrepareModifyMessageRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - messageId: messageId!, + threadId: threadId, + messageId: messageId, request: request); return __httpRequest; @@ -198,7 +198,7 @@ partial void ProcessModifyMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessModifyMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessModifyMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessModifyMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessModifyMessageResponseContent( pathTemplate: "$\"/threads/{threadId}/messages/{messageId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 e033ccf69..a20a98e58 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 @@ -174,8 +174,8 @@ partial void ProcessModifyRunResponseContent( PrepareModifyRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - runId: runId!, + threadId: threadId, + runId: runId, request: request); return __httpRequest; @@ -198,7 +198,7 @@ partial void ProcessModifyRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessModifyRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessModifyRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessModifyRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessModifyRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ba31ab87a..0d6722614 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 @@ -166,7 +166,7 @@ partial void ProcessModifyThreadResponseContent( PrepareModifyThreadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, + threadId: threadId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessModifyThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessModifyThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessModifyThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessModifyThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessModifyThreadResponseContent( pathTemplate: "$\"/threads/{threadId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs index 6f653064e..90eacfbd6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRun.g.cs @@ -94,6 +94,11 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + request = new global::tryAGI.OpenAI.SubmitToolOutputsRunRequest + { + ToolOutputs = request.ToolOutputs, + Stream = false, + }; PrepareArguments( client: HttpClient); PrepareSubmitToolOuputsToRunArguments( @@ -141,6 +146,10 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; #endif + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/json"); + foreach (var __authorization in __authorizations) { if (__authorization.Type == "Http" || @@ -174,8 +183,8 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( PrepareSubmitToolOuputsToRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, - runId: runId!, + threadId: threadId, + runId: runId, request: request); return __httpRequest; @@ -198,7 +207,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +241,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +282,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +330,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +352,7 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -497,7 +506,6 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( /// /// A list of tools for which the outputs are being submitted. /// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -505,14 +513,13 @@ partial void ProcessSubmitToolOuputsToRunResponseContent( string threadId, string runId, global::System.Collections.Generic.IList toolOutputs, - bool? stream = default, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::tryAGI.OpenAI.SubmitToolOutputsRunRequest { ToolOutputs = toolOutputs, - Stream = stream, + Stream = false, }; return await SubmitToolOuputsToRunAsync( diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRunAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRunAsStream.g.cs new file mode 100644 index 000000000..54c1c2554 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.SubmitToolOuputsToRunAsStream.g.cs @@ -0,0 +1,438 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial class AssistantsClient + { + + + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement s_SubmitToolOuputsToRunAsStreamSecurityRequirement0 = + new global::tryAGI.OpenAI.EndPointSecurityRequirement + { + Authorizations = new global::tryAGI.OpenAI.EndPointAuthorizationRequirement[] + { new global::tryAGI.OpenAI.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::tryAGI.OpenAI.EndPointSecurityRequirement[] s_SubmitToolOuputsToRunAsStreamSecurityRequirements = + new global::tryAGI.OpenAI.EndPointSecurityRequirement[] + { s_SubmitToolOuputsToRunAsStreamSecurityRequirement0, + }; + partial void PrepareSubmitToolOuputsToRunAsStreamArguments( + global::System.Net.Http.HttpClient httpClient, + ref string threadId, + ref string runId, + global::tryAGI.OpenAI.SubmitToolOutputsRunRequest request); + partial void PrepareSubmitToolOuputsToRunAsStreamRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string threadId, + string runId, + global::tryAGI.OpenAI.SubmitToolOutputsRunRequest request); + partial void ProcessSubmitToolOuputsToRunAsStreamResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Submit tool outputs to run
+ /// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable SubmitToolOuputsToRunAsStreamAsync( + string threadId, + string runId, + + global::tryAGI.OpenAI.SubmitToolOutputsRunRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + request = new global::tryAGI.OpenAI.SubmitToolOutputsRunRequest + { + ToolOutputs = request.ToolOutputs, + Stream = true, + }; + PrepareArguments( + client: HttpClient); + PrepareSubmitToolOuputsToRunAsStreamArguments( + httpClient: HttpClient, + threadId: ref threadId, + runId: ref runId, + request: request); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SubmitToolOuputsToRunAsStreamSecurityRequirements, + operationName: "SubmitToolOuputsToRunAsStreamAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/threads/{threadId}/runs/{runId}/submit_tool_outputs", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "text/event-stream"); + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSubmitToolOuputsToRunAsStreamRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + threadId: threadId, + runId: runId, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitToolOuputsToRunAsStream", + methodName: "SubmitToolOuputsToRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitToolOuputsToRunAsStream", + methodName: "SubmitToolOuputsToRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitToolOuputsToRunAsStream", + methodName: "SubmitToolOuputsToRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessSubmitToolOuputsToRunAsStreamResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitToolOuputsToRunAsStream", + methodName: "SubmitToolOuputsToRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SubmitToolOuputsToRunAsStream", + methodName: "SubmitToolOuputsToRunAsStreamAsync", + pathTemplate: "$\"/threads/{threadId}/runs/{runId}/submit_tool_outputs\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + try + { + __response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + using var __stream = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + await foreach (var __sseEvent in global::System.Net.ServerSentEvents.SseParser + .Create(__stream).EnumerateAsync(__effectiveCancellationToken)) + { + var __content = __sseEvent.Data; + if (__content == "[DONE]") + { + yield break; + } + + var __streamedResponse = global::tryAGI.OpenAI.AssistantStreamEvent.FromJson(__content, JsonSerializerContext) ?? + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: $"Response deserialization failed for \"{__content}\" ", + innerException: null, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + + yield return __streamedResponse; + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Submit tool outputs to run
+ /// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. + ///
+ /// + /// + /// + /// A list of tools for which the outputs are being submitted. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Collections.Generic.IAsyncEnumerable SubmitToolOuputsToRunAsStreamAsync( + string threadId, + string runId, + global::System.Collections.Generic.IList toolOutputs, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::tryAGI.OpenAI.SubmitToolOutputsRunRequest + { + ToolOutputs = toolOutputs, + Stream = true, + }; + + var __enumerable = SubmitToolOuputsToRunAsStreamAsync( + threadId: threadId, + runId: runId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + + await foreach (var __response in __enumerable) + { + yield return __response; + } + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs index 6dca8eeeb..13f97c4d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Audio.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 abb85918d..0d21ed786 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 @@ -186,7 +186,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -737,7 +737,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -771,7 +771,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -812,7 +812,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -860,7 +860,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -882,7 +882,7 @@ partial void ProcessCreateSpeechResponseContent( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs index bad800808..a48125883 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsEventStream.g.cs @@ -157,7 +157,7 @@ partial void ProcessCreateSpeechAsEventStreamResponse( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -191,7 +191,7 @@ partial void ProcessCreateSpeechAsEventStreamResponse( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessCreateSpeechAsEventStreamResponse( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -280,7 +280,7 @@ partial void ProcessCreateSpeechAsEventStreamResponse( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessCreateSpeechAsEventStreamResponse( pathTemplate: "\"/audio/speech\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 5fa497eaa..94cc4ac1a 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 @@ -52,7 +52,7 @@ partial void ProcessCreateTranscriptionResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( global::tryAGI.OpenAI.CreateTranscriptionRequest request, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -78,7 +78,7 @@ partial void ProcessCreateTranscriptionResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( + public async global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( global::tryAGI.OpenAI.CreateTranscriptionRequest request, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -345,7 +345,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -379,7 +379,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -420,7 +420,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -468,7 +468,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -490,7 +490,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -820,9 +820,9 @@ request.Filename is null { __response.EnsureSuccessStatusCode(); - var __value = global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __value = global::tryAGI.OpenAI.AnyOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -852,9 +852,9 @@ request.Filename is null #endif ).ConfigureAwait(false); - var __value = await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::tryAGI.OpenAI.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -955,7 +955,7 @@ request.Filename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, @@ -1059,7 +1059,7 @@ request.Filename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + public async global::System.Threading.Tasks.Task> CreateTranscriptionAsync( global::System.IO.Stream file, string filename, global::tryAGI.OpenAI.AnyOf model, @@ -1338,7 +1338,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1372,7 +1372,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1413,7 +1413,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1461,7 +1461,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1483,7 +1483,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1814,7 +1814,7 @@ request.Filename is null __response.EnsureSuccessStatusCode(); return - global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + global::tryAGI.OpenAI.AnyOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1842,7 +1842,7 @@ request.Filename is null ).ConfigureAwait(false); return - await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::tryAGI.OpenAI.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1940,7 +1940,7 @@ request.Filename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( + public async global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( global::System.IO.Stream file, string filename, global::tryAGI.OpenAI.AnyOf model, @@ -2219,7 +2219,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -2253,7 +2253,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -2294,7 +2294,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -2342,7 +2342,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -2364,7 +2364,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -2694,9 +2694,9 @@ request.Filename is null { __response.EnsureSuccessStatusCode(); - var __value = global::tryAGI.OpenAI.OneOf.FromJson(__content, JsonSerializerContext) ?? + var __value = global::tryAGI.OpenAI.AnyOf.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2726,9 +2726,9 @@ request.Filename is null #endif ).ConfigureAwait(false); - var __value = await global::tryAGI.OpenAI.OneOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::tryAGI.OpenAI.AnyOf.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse>( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, 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 6800b2b87..25ac2455f 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 @@ -314,7 +314,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -348,7 +348,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -389,7 +389,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -437,7 +437,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -459,7 +459,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -987,7 +987,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1021,7 +1021,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1062,7 +1062,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1110,7 +1110,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1132,7 +1132,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsText.g.cs index e78dab7fc..eac5d7a84 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsText.g.cs @@ -345,7 +345,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -379,7 +379,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -420,7 +420,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -468,7 +468,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -490,7 +490,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1334,7 +1334,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1368,7 +1368,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1409,7 +1409,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1457,7 +1457,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1479,7 +1479,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -2211,7 +2211,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -2245,7 +2245,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -2286,7 +2286,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -2334,7 +2334,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -2356,7 +2356,7 @@ request.Filename is null pathTemplate: "\"/audio/transcriptions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 786a1414f..e94c2ef2c 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 @@ -249,7 +249,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -324,7 +324,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -372,7 +372,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -394,7 +394,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1070,7 +1070,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1104,7 +1104,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1145,7 +1145,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1193,7 +1193,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1215,7 +1215,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1829,7 +1829,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1863,7 +1863,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1904,7 +1904,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1952,7 +1952,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1974,7 +1974,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslationAsText.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslationAsText.g.cs index cd0b5cc1b..847bc31a4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslationAsText.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranslationAsText.g.cs @@ -249,7 +249,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -324,7 +324,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -372,7 +372,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -394,7 +394,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1066,7 +1066,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1100,7 +1100,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1141,7 +1141,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1189,7 +1189,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1211,7 +1211,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1821,7 +1821,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1855,7 +1855,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1896,7 +1896,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1944,7 +1944,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1966,7 +1966,7 @@ request.Filename is null pathTemplate: "\"/audio/translations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 cb7eb8673..f7ecdac54 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 @@ -224,7 +224,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -258,7 +258,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -299,7 +299,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -369,7 +369,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -817,7 +817,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -851,7 +851,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -892,7 +892,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -940,7 +940,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -962,7 +962,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1357,7 +1357,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1391,7 +1391,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1432,7 +1432,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1480,7 +1480,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1502,7 +1502,7 @@ request.AudioSamplename is null pathTemplate: "\"/audio/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 da9770ce3..3a490e8eb 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 @@ -224,7 +224,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -258,7 +258,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -299,7 +299,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -369,7 +369,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -780,7 +780,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -814,7 +814,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -855,7 +855,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -903,7 +903,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -925,7 +925,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1283,7 +1283,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1317,7 +1317,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1358,7 +1358,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1406,7 +1406,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1428,7 +1428,7 @@ request.Recordingname is null pathTemplate: "\"/audio/voice_consents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 7a8f7fdf1..d5dead5aa 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( PrepareDeleteVoiceConsentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - consentId: consentId!); + consentId: consentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs index b1380acfe..091738076 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.GetVoiceConsent.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetVoiceConsentResponseContent( PrepareGetVoiceConsentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - consentId: consentId!); + consentId: consentId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessGetVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessGetVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessGetVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessGetVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessGetVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ff808436e..c605867bb 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 @@ -186,7 +186,7 @@ partial void ProcessListVoiceConsentsResponseContent( pathTemplate: "\"/audio/voice_consents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessListVoiceConsentsResponseContent( pathTemplate: "\"/audio/voice_consents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessListVoiceConsentsResponseContent( pathTemplate: "\"/audio/voice_consents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessListVoiceConsentsResponseContent( pathTemplate: "\"/audio/voice_consents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessListVoiceConsentsResponseContent( pathTemplate: "\"/audio/voice_consents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 22dca3d6d..c158683c5 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 @@ -166,7 +166,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( PrepareUpdateVoiceConsentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - consentId: consentId!, + consentId: consentId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUpdateVoiceConsentResponseContent( pathTemplate: "$\"/audio/voice_consents/{consentId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogs.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogs.JsonSerializerContext.g.cs index 2eb4ec5d9..e89df74ad 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogs.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AuditLogs.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 b03f09352..c01413e29 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 @@ -275,7 +275,7 @@ partial void ProcessListAuditLogsResponseContent( pathTemplate: "\"/organization/audit_logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessListAuditLogsResponseContent( pathTemplate: "\"/organization/audit_logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -350,7 +350,7 @@ partial void ProcessListAuditLogsResponseContent( pathTemplate: "\"/organization/audit_logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -398,7 +398,7 @@ partial void ProcessListAuditLogsResponseContent( pathTemplate: "\"/organization/audit_logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -420,7 +420,7 @@ partial void ProcessListAuditLogsResponseContent( pathTemplate: "\"/organization/audit_logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs index 80ab58404..0cf1377b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs index 868521d28..160f330b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Batch.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 0c7a9ad55..ac03502b9 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 @@ -147,7 +147,7 @@ partial void ProcessCancelBatchResponseContent( PrepareCancelBatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - batchId: batchId!); + batchId: batchId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessCancelBatchResponseContent( pathTemplate: "$\"/batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessCancelBatchResponseContent( pathTemplate: "$\"/batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessCancelBatchResponseContent( pathTemplate: "$\"/batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessCancelBatchResponseContent( pathTemplate: "$\"/batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessCancelBatchResponseContent( pathTemplate: "$\"/batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 af53f2c25..a8c5006c0 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 @@ -180,7 +180,7 @@ partial void ProcessCreateBatchResponseContent( pathTemplate: "\"/batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateBatchResponseContent( pathTemplate: "\"/batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateBatchResponseContent( pathTemplate: "\"/batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateBatchResponseContent( pathTemplate: "\"/batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateBatchResponseContent( pathTemplate: "\"/batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 1b47e1c8a..cd15e3b05 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 @@ -186,7 +186,7 @@ partial void ProcessListBatchesResponseContent( pathTemplate: "\"/batches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessListBatchesResponseContent( pathTemplate: "\"/batches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessListBatchesResponseContent( pathTemplate: "\"/batches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessListBatchesResponseContent( pathTemplate: "\"/batches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessListBatchesResponseContent( pathTemplate: "\"/batches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 671936c5e..2c8ee5bb8 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 @@ -147,7 +147,7 @@ partial void ProcessRetrieveBatchResponseContent( PrepareRetrieveBatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - batchId: batchId!); + batchId: batchId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveBatchResponseContent( pathTemplate: "$\"/batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveBatchResponseContent( pathTemplate: "$\"/batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveBatchResponseContent( pathTemplate: "$\"/batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveBatchResponseContent( pathTemplate: "$\"/batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveBatchResponseContent( pathTemplate: "$\"/batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs index c45ea947c..7cf9b4525 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Certificates.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs index c3a8dd6e1..1b920f4b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateOrganizationCertificates.g.cs @@ -184,7 +184,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessActivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs index f70a94d05..5964ab87c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.ActivateProjectCertificates.g.cs @@ -168,7 +168,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( PrepareActivateProjectCertificatesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -193,7 +193,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessActivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/activate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs index ca9796cf6..b77b04afc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateOrganizationCertificates.g.cs @@ -184,7 +184,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessDeactivateOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs index 2acdc5b36..fcc7af596 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.CertificatesClient.DeactivateProjectCertificates.g.cs @@ -168,7 +168,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( PrepareDeactivateProjectCertificatesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -193,7 +193,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessDeactivateProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates/deactivate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 364a60a4a..8980a7e7c 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 @@ -149,7 +149,7 @@ partial void ProcessDeleteCertificateResponseContent( PrepareDeleteCertificateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - certificateId: certificateId!); + certificateId: certificateId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -173,7 +173,7 @@ partial void ProcessDeleteCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDeleteCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDeleteCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDeleteCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDeleteCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 4a1d18395..4ee541a86 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 @@ -160,7 +160,7 @@ partial void ProcessGetCertificateResponseContent( PrepareGetCertificateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - certificateId: certificateId!, + certificateId: certificateId, include: include); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -185,7 +185,7 @@ partial void ProcessGetCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessGetCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessGetCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessGetCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessGetCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c6b665490..114868a15 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 @@ -202,7 +202,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -236,7 +236,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -277,7 +277,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListOrganizationCertificatesResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 e3241d417..89b22e899 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 @@ -184,7 +184,7 @@ partial void ProcessListProjectCertificatesResponseContent( PrepareListProjectCertificatesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after, order: order); @@ -211,7 +211,7 @@ partial void ProcessListProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListProjectCertificatesResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/certificates\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 adb43d377..f94b04b8f 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 @@ -166,7 +166,7 @@ partial void ProcessModifyCertificateResponseContent( PrepareModifyCertificateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - certificateId: certificateId!, + certificateId: certificateId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessModifyCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessModifyCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessModifyCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessModifyCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessModifyCertificateResponseContent( pathTemplate: "$\"/organization/certificates/{certificateId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6ab256f0a..f22c2f475 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 @@ -184,7 +184,7 @@ partial void ProcessUploadCertificateResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessUploadCertificateResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessUploadCertificateResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessUploadCertificateResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessUploadCertificateResponseContent( pathTemplate: "\"/organization/certificates\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs index 2261c725a..3b39453d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Chat.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 5582a6d51..5050f8332 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 @@ -208,7 +208,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessCreateChatCompletionResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 3207fef93..37f384f3c 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 @@ -167,7 +167,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCreateChatCompletionAsStreamResponse( pathTemplate: "\"/chat/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c38209614..b69518da0 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 @@ -149,7 +149,7 @@ partial void ProcessDeleteChatCompletionResponseContent( PrepareDeleteChatCompletionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - completionId: completionId!); + completionId: completionId); return __httpRequest; } @@ -171,7 +171,7 @@ partial void ProcessDeleteChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 f31988cda..38a43172d 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 @@ -149,7 +149,7 @@ partial void ProcessGetChatCompletionResponseContent( PrepareGetChatCompletionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - completionId: completionId!); + completionId: completionId); return __httpRequest; } @@ -171,7 +171,7 @@ partial void ProcessGetChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessGetChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessGetChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessGetChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessGetChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs index b89c15c5a..8f226449f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ChatClient.GetChatCompletionMessages.g.cs @@ -188,7 +188,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( PrepareGetChatCompletionMessagesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - completionId: completionId!, + completionId: completionId, after: after, limit: limit, order: order); @@ -213,7 +213,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( pathTemplate: "$\"/chat/completions/{completionId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -247,7 +247,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( pathTemplate: "$\"/chat/completions/{completionId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -288,7 +288,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( pathTemplate: "$\"/chat/completions/{completionId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( pathTemplate: "$\"/chat/completions/{completionId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -358,7 +358,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( pathTemplate: "$\"/chat/completions/{completionId}/messages\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -616,7 +616,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( } /// - /// Wraps GetChatCompletionMessagesAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.AllOf<global::tryAGI.OpenAI.ChatCompletionResponseMessage, global::tryAGI.OpenAI.ChatCompletionMessageListDataItem>> that auto-pages over the response. + /// Wraps GetChatCompletionMessagesAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.ChatCompletionMessageListDataItem> that auto-pages over the response. /// /// /// @@ -627,13 +627,13 @@ partial void ProcessGetChatCompletionMessagesResponseContent( /// /// Initial cursor to start enumerating from. Defaults to null (first page). /// - public global::System.Collections.Generic.IAsyncEnumerable> GetChatCompletionMessagesAutoPagingAsync( + public global::System.Collections.Generic.IAsyncEnumerable GetChatCompletionMessagesAutoPagingAsync( string completionId, int? limit = default, global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? order = default, string? after = null, global::System.Threading.CancellationToken cancellationToken = default) { - return global::tryAGI.OpenAI.AutoSDKPager.CursorAsync>( + return global::tryAGI.OpenAI.AutoSDKPager.CursorAsync( fetchPage: (__cursor, __ct) => GetChatCompletionMessagesAsync( completionId: completionId, after: __cursor, @@ -642,7 +642,7 @@ partial void ProcessGetChatCompletionMessagesResponseContent( cancellationToken: __ct), extractItems: static __response => __response is null ? null - : (global::System.Collections.Generic.IEnumerable>?)__response.Data, + : (global::System.Collections.Generic.IEnumerable?)__response.Data, extractNextCursor: static __response => __response is null ? null : __response.LastId, initialCursor: after, cancellationToken: cancellationToken); 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 a996409ef..70adc41b9 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 @@ -222,7 +222,7 @@ partial void ProcessListChatCompletionsResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -256,7 +256,7 @@ partial void ProcessListChatCompletionsResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -297,7 +297,7 @@ partial void ProcessListChatCompletionsResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessListChatCompletionsResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -367,7 +367,7 @@ partial void ProcessListChatCompletionsResponseContent( pathTemplate: "\"/chat/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 b136b33b4..6edc5e906 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 @@ -170,7 +170,7 @@ partial void ProcessUpdateChatCompletionResponseContent( PrepareUpdateChatCompletionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - completionId: completionId!, + completionId: completionId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessUpdateChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessUpdateChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessUpdateChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessUpdateChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessUpdateChatCompletionResponseContent( pathTemplate: "$\"/chat/completions/{completionId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Completions.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Completions.JsonSerializerContext.g.cs index 6a59a2a7d..813bfaaf5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Completions.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Completions.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 c203f1b22..5a6083abe 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 @@ -182,7 +182,7 @@ partial void ProcessCreateCompletionResponseContent( pathTemplate: "\"/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateCompletionResponseContent( pathTemplate: "\"/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateCompletionResponseContent( pathTemplate: "\"/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateCompletionResponseContent( pathTemplate: "\"/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateCompletionResponseContent( pathTemplate: "\"/completions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs index 06e3e06f1..fc818da8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Conversations.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs index 20ba02aec..eb9253a93 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversation.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateConversationResponseContent( pathTemplate: "\"/conversations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateConversationResponseContent( pathTemplate: "\"/conversations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateConversationResponseContent( pathTemplate: "\"/conversations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateConversationResponseContent( pathTemplate: "\"/conversations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateConversationResponseContent( pathTemplate: "\"/conversations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs index d89a40e8c..8ac4b77cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.CreateConversationItems.g.cs @@ -181,7 +181,7 @@ partial void ProcessCreateConversationItemsResponseContent( PrepareCreateConversationItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!, + conversationId: conversationId, include: include, request: request); @@ -205,7 +205,7 @@ partial void ProcessCreateConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -239,7 +239,7 @@ partial void ProcessCreateConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -280,7 +280,7 @@ partial void ProcessCreateConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -328,7 +328,7 @@ partial void ProcessCreateConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -350,7 +350,7 @@ partial void ProcessCreateConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs index ac709f744..a6fedda55 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversation.g.cs @@ -151,7 +151,7 @@ partial void ProcessDeleteConversationResponseContent( PrepareDeleteConversationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!); + conversationId: conversationId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessDeleteConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDeleteConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDeleteConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDeleteConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDeleteConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs index 7aaf3d15a..dcb06f746 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.DeleteConversationItem.g.cs @@ -163,8 +163,8 @@ partial void ProcessDeleteConversationItemResponseContent( PrepareDeleteConversationItemRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!, - itemId: itemId!); + conversationId: conversationId, + itemId: itemId); return __httpRequest; } @@ -186,7 +186,7 @@ partial void ProcessDeleteConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessDeleteConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessDeleteConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessDeleteConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessDeleteConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs index ac94d3b30..a55569390 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversation.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetConversationResponseContent( PrepareGetConversationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!); + conversationId: conversationId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs index dbf313427..1c815f957 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.GetConversationItem.g.cs @@ -174,8 +174,8 @@ partial void ProcessGetConversationItemResponseContent( PrepareGetConversationItemRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!, - itemId: itemId!, + conversationId: conversationId, + itemId: itemId, include: include); return __httpRequest; @@ -198,7 +198,7 @@ partial void ProcessGetConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessGetConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessGetConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessGetConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessGetConversationItemResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs index 9524da659..e64abd016 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.ListConversationItems.g.cs @@ -193,7 +193,7 @@ partial void ProcessListConversationItemsResponseContent( PrepareListConversationItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!, + conversationId: conversationId, limit: limit, order: order, after: after, @@ -219,7 +219,7 @@ partial void ProcessListConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessListConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessListConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessListConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -364,7 +364,7 @@ partial void ProcessListConversationItemsResponseContent( pathTemplate: "$\"/conversations/{conversationId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs index a43fcb194..66b6e1635 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ConversationsClient.UpdateConversation.g.cs @@ -170,7 +170,7 @@ partial void ProcessUpdateConversationResponseContent( PrepareUpdateConversationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - conversationId: conversationId!, + conversationId: conversationId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessUpdateConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessUpdateConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessUpdateConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessUpdateConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessUpdateConversationResponseContent( pathTemplate: "$\"/conversations/{conversationId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs index 1e0aba288..6e509b4e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetention.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs index 27a3abde9..4a646bbab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveOrganizationDataRetention.g.cs @@ -162,7 +162,7 @@ partial void ProcessRetrieveOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ partial void ProcessRetrieveOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessRetrieveOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessRetrieveOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessRetrieveOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs index 26cf0da97..cddc5e70d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.RetrieveProjectDataRetention.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( PrepareRetrieveProjectDataRetentionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs index ff2ea86ed..61f90a894 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateOrganizationDataRetention.g.cs @@ -182,7 +182,7 @@ partial void ProcessUpdateOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessUpdateOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessUpdateOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessUpdateOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessUpdateOrganizationDataRetentionResponseContent( pathTemplate: "\"/organization/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs index 37353f9c5..5a56aa9b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DataRetentionClient.UpdateProjectDataRetention.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( PrepareUpdateProjectDataRetentionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessUpdateProjectDataRetentionResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/data_retention\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Embeddings.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Embeddings.JsonSerializerContext.g.cs index 23e4a76b9..e1972cc65 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Embeddings.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Embeddings.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs index 1fe8ce182..ebdba14a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EmbeddingsClient.CreateEmbedding.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateEmbeddingResponseContent( pathTemplate: "\"/embeddings\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateEmbeddingResponseContent( pathTemplate: "\"/embeddings\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateEmbeddingResponseContent( pathTemplate: "\"/embeddings\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateEmbeddingResponseContent( pathTemplate: "\"/embeddings\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateEmbeddingResponseContent( pathTemplate: "\"/embeddings\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs index 376755102..348f10923 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Evals.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 f769c7eb3..814e113d1 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 @@ -155,8 +155,8 @@ partial void ProcessCancelEvalRunResponseContent( PrepareCancelEvalRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, - runId: runId!); + evalId: evalId, + runId: runId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessCancelEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCancelEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCancelEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCancelEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCancelEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 a0e2d532d..dc80fd645 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 @@ -186,7 +186,7 @@ partial void ProcessCreateEvalResponseContent( pathTemplate: "\"/evals\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessCreateEvalResponseContent( pathTemplate: "\"/evals\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessCreateEvalResponseContent( pathTemplate: "\"/evals\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessCreateEvalResponseContent( pathTemplate: "\"/evals\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessCreateEvalResponseContent( pathTemplate: "\"/evals\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 81fa4b041..64f3f9f0b 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 @@ -166,7 +166,7 @@ partial void ProcessCreateEvalRunResponseContent( PrepareCreateEvalRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, + evalId: evalId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessCreateEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessCreateEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessCreateEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCreateEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessCreateEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs index 15c834c1c..521ff0256 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.DeleteEval.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteEvalResponseContent( PrepareDeleteEvalRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!); + evalId: evalId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 5c1a1b068..db46e50ee 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 @@ -155,8 +155,8 @@ partial void ProcessDeleteEvalRunResponseContent( PrepareDeleteEvalRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, - runId: runId!); + evalId: evalId, + runId: runId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessDeleteEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessDeleteEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessDeleteEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessDeleteEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessDeleteEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs index 702d4cab8..3b7ab9357 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEval.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetEvalResponseContent( PrepareGetEvalRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!); + evalId: evalId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessGetEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessGetEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessGetEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessGetEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessGetEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs index 947afd691..8905f575d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRun.g.cs @@ -155,8 +155,8 @@ partial void ProcessGetEvalRunResponseContent( PrepareGetEvalRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, - runId: runId!); + evalId: evalId, + runId: runId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessGetEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessGetEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessGetEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessGetEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessGetEvalRunResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs index dd96acfd4..a485c4f35 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.GetEvalRunOutputItem.g.cs @@ -163,9 +163,9 @@ partial void ProcessGetEvalRunOutputItemResponseContent( PrepareGetEvalRunOutputItemRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, - runId: runId!, - outputItemId: outputItemId!); + evalId: evalId, + runId: runId, + outputItemId: outputItemId); return __httpRequest; } @@ -187,7 +187,7 @@ partial void ProcessGetEvalRunOutputItemResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items/{outputItemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessGetEvalRunOutputItemResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items/{outputItemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessGetEvalRunOutputItemResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items/{outputItemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessGetEvalRunOutputItemResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items/{outputItemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessGetEvalRunOutputItemResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items/{outputItemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 a4e480cfd..18ded0bee 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 @@ -201,8 +201,8 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( PrepareGetEvalRunOutputItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, - runId: runId!, + evalId: evalId, + runId: runId, after: after, limit: limit, status: status, @@ -228,7 +228,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -373,7 +373,7 @@ partial void ProcessGetEvalRunOutputItemsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs/{runId}/output_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 3caeb5488..8a7e25170 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 @@ -193,7 +193,7 @@ partial void ProcessGetEvalRunsResponseContent( PrepareGetEvalRunsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, + evalId: evalId, after: after, limit: limit, order: order, @@ -219,7 +219,7 @@ partial void ProcessGetEvalRunsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessGetEvalRunsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessGetEvalRunsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessGetEvalRunsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -364,7 +364,7 @@ partial void ProcessGetEvalRunsResponseContent( pathTemplate: "$\"/evals/{evalId}/runs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 2416a771b..4460cbc75 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 @@ -214,7 +214,7 @@ partial void ProcessListEvalsResponseContent( pathTemplate: "\"/evals\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessListEvalsResponseContent( pathTemplate: "\"/evals\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -289,7 +289,7 @@ partial void ProcessListEvalsResponseContent( pathTemplate: "\"/evals\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessListEvalsResponseContent( pathTemplate: "\"/evals\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -359,7 +359,7 @@ partial void ProcessListEvalsResponseContent( pathTemplate: "\"/evals\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs index 305542a50..160264514 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.EvalsClient.UpdateEval.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateEvalResponseContent( PrepareUpdateEvalRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - evalId: evalId!, + evalId: evalId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessUpdateEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUpdateEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUpdateEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUpdateEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUpdateEvalResponseContent( pathTemplate: "$\"/evals/{evalId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs index b66def681..889dc4f16 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Files.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs index 2a4d6eed3..ee939b145 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs @@ -273,7 +273,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -348,7 +348,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -396,7 +396,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -418,7 +418,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -919,7 +919,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -953,7 +953,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -994,7 +994,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1042,7 +1042,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1064,7 +1064,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1488,7 +1488,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1522,7 +1522,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1563,7 +1563,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1611,7 +1611,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1633,7 +1633,7 @@ request.Filename is null pathTemplate: "\"/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c4ccf4ce9..9af06d9ff 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteFileResponseContent( PrepareDeleteFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs index ccee46083..5a126458f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.DownloadFile.g.cs @@ -147,7 +147,7 @@ partial void ProcessDownloadFileResponseContent( PrepareDownloadFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -610,7 +610,7 @@ partial void ProcessDownloadFileResponseContent( PrepareDownloadFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -632,7 +632,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -666,7 +666,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -707,7 +707,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -755,7 +755,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -777,7 +777,7 @@ partial void ProcessDownloadFileResponseContent( pathTemplate: "$\"/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ed9928458..469cd9cb6 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 @@ -210,7 +210,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessListFilesResponseContent( pathTemplate: "\"/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 75be2f5bf..dd662fd4f 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 @@ -147,7 +147,7 @@ partial void ProcessRetrieveFileResponseContent( PrepareRetrieveFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fileId: fileId!); + fileId: fileId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveFileResponseContent( pathTemplate: "$\"/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs index 275b95808..ffaf759b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuning.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs index 6795eb712..774e07dcc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CancelFineTuningJob.g.cs @@ -151,7 +151,7 @@ partial void ProcessCancelFineTuningJobResponseContent( PrepareCancelFineTuningJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTuningJobId: fineTuningJobId!); + fineTuningJobId: fineTuningJobId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessCancelFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessCancelFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessCancelFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessCancelFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessCancelFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs index 4167255e1..da173b43b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.CreateFineTuningCheckpointPermission.g.cs @@ -172,7 +172,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( PrepareCreateFineTuningCheckpointPermissionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTunedModelCheckpoint: fineTunedModelCheckpoint!, + fineTunedModelCheckpoint: fineTunedModelCheckpoint, request: request); return __httpRequest; @@ -195,7 +195,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -229,7 +229,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -270,7 +270,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -340,7 +340,7 @@ partial void ProcessCreateFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 006c847f3..80f1c971b 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 @@ -186,7 +186,7 @@ partial void ProcessCreateFineTuningJobResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessCreateFineTuningJobResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessCreateFineTuningJobResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessCreateFineTuningJobResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessCreateFineTuningJobResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs index 7e0064cd8..15b8aa79a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.DeleteFineTuningCheckpointPermission.g.cs @@ -165,8 +165,8 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( PrepareDeleteFineTuningCheckpointPermissionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTunedModelCheckpoint: fineTunedModelCheckpoint!, - permissionId: permissionId!); + fineTunedModelCheckpoint: fineTunedModelCheckpoint, + permissionId: permissionId); return __httpRequest; } @@ -188,7 +188,7 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions/{permissionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -222,7 +222,7 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions/{permissionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions/{permissionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -311,7 +311,7 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions/{permissionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessDeleteFineTuningCheckpointPermissionResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions/{permissionId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs index 368705236..e44b95bdc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningCheckpointPermissions.g.cs @@ -199,7 +199,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( PrepareListFineTuningCheckpointPermissionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTunedModelCheckpoint: fineTunedModelCheckpoint!, + fineTunedModelCheckpoint: fineTunedModelCheckpoint, projectId: projectId, after: after, limit: limit, @@ -225,7 +225,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -300,7 +300,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -348,7 +348,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -370,7 +370,7 @@ partial void ProcessListFineTuningCheckpointPermissionsResponseContent( pathTemplate: "$\"/fine_tuning/checkpoints/{fineTunedModelCheckpoint}/permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 84f6d3f8f..87e4a5510 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 @@ -175,7 +175,7 @@ partial void ProcessListFineTuningEventsResponseContent( PrepareListFineTuningEventsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTuningJobId: fineTuningJobId!, + fineTuningJobId: fineTuningJobId, after: after, limit: limit); @@ -199,7 +199,7 @@ partial void ProcessListFineTuningEventsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessListFineTuningEventsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -274,7 +274,7 @@ partial void ProcessListFineTuningEventsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessListFineTuningEventsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessListFineTuningEventsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/events\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs index c068cde10..70c12457d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListFineTuningJobCheckpoints.g.cs @@ -175,7 +175,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( PrepareListFineTuningJobCheckpointsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTuningJobId: fineTuningJobId!, + fineTuningJobId: fineTuningJobId, after: after, limit: limit); @@ -199,7 +199,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/checkpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/checkpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -274,7 +274,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/checkpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/checkpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessListFineTuningJobCheckpointsResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/checkpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs index 56df06930..4e506bade 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ListPaginatedFineTuningJobs.g.cs @@ -196,7 +196,7 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -230,7 +230,7 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -271,7 +271,7 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -319,7 +319,7 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessListPaginatedFineTuningJobsResponseContent( pathTemplate: "\"/fine_tuning/jobs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs index 0da1e4223..6cdc4ce22 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.PauseFineTuningJob.g.cs @@ -151,7 +151,7 @@ partial void ProcessPauseFineTuningJobResponseContent( PreparePauseFineTuningJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTuningJobId: fineTuningJobId!); + fineTuningJobId: fineTuningJobId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessPauseFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/pause\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessPauseFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/pause\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessPauseFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/pause\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessPauseFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/pause\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessPauseFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/pause\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs index 8105332a0..91070113b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FineTuningClient.ResumeFineTuningJob.g.cs @@ -151,7 +151,7 @@ partial void ProcessResumeFineTuningJobResponseContent( PrepareResumeFineTuningJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTuningJobId: fineTuningJobId!); + fineTuningJobId: fineTuningJobId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessResumeFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/resume\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessResumeFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/resume\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessResumeFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/resume\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessResumeFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/resume\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessResumeFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}/resume\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 cdd35b5f5..1b81fa0de 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 @@ -153,7 +153,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( PrepareRetrieveFineTuningJobRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - fineTuningJobId: fineTuningJobId!); + fineTuningJobId: fineTuningJobId); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessRetrieveFineTuningJobResponseContent( pathTemplate: "$\"/fine_tuning/jobs/{fineTuningJobId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 32fc33c27..483205a41 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 @@ -180,7 +180,7 @@ partial void ProcessRunGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRunGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRunGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRunGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRunGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 4a9c0ac1d..af9ef24d5 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 @@ -180,7 +180,7 @@ partial void ProcessValidateGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessValidateGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessValidateGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessValidateGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessValidateGraderResponseContent( pathTemplate: "\"/fine_tuning/alpha/graders/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs index 28809c69e..a1c02d0ed 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignments.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs index 7f072efd7..06693a322 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.AssignGroupRole.g.cs @@ -166,7 +166,7 @@ partial void ProcessAssignGroupRoleResponseContent( PrepareAssignGroupRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, + groupId: groupId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessAssignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessAssignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessAssignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessAssignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessAssignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs index 72ad3ce08..b800f2089 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.ListGroupRoleAssignments.g.cs @@ -176,7 +176,7 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( PrepareListGroupRoleAssignmentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, + groupId: groupId, limit: limit, after: after, order: order); @@ -203,7 +203,7 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -278,7 +278,7 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -326,7 +326,7 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -348,7 +348,7 @@ partial void ProcessListGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs index 5160e6157..db7911e37 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.RetrieveGroupRole.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveGroupRoleResponseContent( PrepareRetrieveGroupRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, - roleId: roleId!); + groupId: groupId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs index ca6b0cbde..1c2e9055c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupOrganizationRoleAssignmentsClient.UnassignGroupRole.g.cs @@ -155,8 +155,8 @@ partial void ProcessUnassignGroupRoleResponseContent( PrepareUnassignGroupRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, - roleId: roleId!); + groupId: groupId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessUnassignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessUnassignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessUnassignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessUnassignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessUnassignGroupRoleResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsers.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsers.JsonSerializerContext.g.cs index 0691ea503..cf2a83bcb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsers.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsers.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 c504d2ab1..626771724 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 @@ -166,7 +166,7 @@ partial void ProcessAddGroupUserResponseContent( PrepareAddGroupUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, + groupId: groupId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessAddGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessAddGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessAddGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessAddGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessAddGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 5ad9eeedf..42b2b064c 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 @@ -184,7 +184,7 @@ partial void ProcessListGroupUsersResponseContent( PrepareListGroupUsersRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, + groupId: groupId, limit: limit, after: after, order: order); @@ -211,7 +211,7 @@ partial void ProcessListGroupUsersResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListGroupUsersResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListGroupUsersResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListGroupUsersResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListGroupUsersResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 604c44251..6fff06803 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 @@ -155,8 +155,8 @@ partial void ProcessRemoveGroupUserResponseContent( PrepareRemoveGroupUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, - userId: userId!); + groupId: groupId, + userId: userId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRemoveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRemoveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRemoveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRemoveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRemoveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs index 18d882f78..7c195d75f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupUsersClient.RetrieveGroupUser.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveGroupUserResponseContent( PrepareRetrieveGroupUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, - userId: userId!); + groupId: groupId, + userId: userId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveGroupUserResponseContent( pathTemplate: "$\"/organization/groups/{groupId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs index 502a31257..2c06e4609 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Groups.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 4f9bef590..672d664bc 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 @@ -182,7 +182,7 @@ partial void ProcessCreateGroupResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateGroupResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateGroupResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateGroupResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateGroupResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 792b9c215..c84a7197a 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteGroupResponseContent( PrepareDeleteGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!); + groupId: groupId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessDeleteGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 02368ecf6..28dbdb473 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 @@ -202,7 +202,7 @@ partial void ProcessListGroupsResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -236,7 +236,7 @@ partial void ProcessListGroupsResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -277,7 +277,7 @@ partial void ProcessListGroupsResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListGroupsResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListGroupsResponseContent( pathTemplate: "\"/organization/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs index 7ffa1c9ff..bcc28e029 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.GroupsClient.RetrieveGroup.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveGroupResponseContent( PrepareRetrieveGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!); + groupId: groupId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 9b462e69f..f15ed41d0 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 @@ -166,7 +166,7 @@ partial void ProcessUpdateGroupResponseContent( PrepareUpdateGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - groupId: groupId!, + groupId: groupId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessUpdateGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessUpdateGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessUpdateGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessUpdateGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessUpdateGroupResponseContent( pathTemplate: "$\"/organization/groups/{groupId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs index 9e1bc9263..c30af29b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedTools.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs index 490728101..880969c70 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.RetrieveProjectHostedToolPermissions.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( PrepareRetrieveProjectHostedToolPermissionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs index 83bfd25df..26101e64b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.HostedToolsClient.UpdateProjectHostedToolPermissions.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( PrepareUpdateProjectHostedToolPermissionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessUpdateProjectHostedToolPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/hosted_tool_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs index f6dca63a3..e57a13a2d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs @@ -76,9 +76,6 @@ public partial interface IAssistantsClient /// Default Value: 1
/// Example: 1 /// - /// - /// If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. - /// /// /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. /// @@ -113,7 +110,6 @@ public partial interface IAssistantsClient global::System.Collections.Generic.Dictionary? metadata = default, double? temperature = default, double? topP = default, - bool? stream = default, int? maxPromptTokens = default, int? maxCompletionTokens = default, global::tryAGI.OpenAI.AllOf? truncationStrategy = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRunAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRunAsStream.g.cs new file mode 100644 index 000000000..74a674f88 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRunAsStream.g.cs @@ -0,0 +1,105 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IAssistantsClient + { + /// + /// Create run
+ /// Create a run. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable CreateRunAsStreamAsync( + string threadId, + + global::tryAGI.OpenAI.CreateRunRequest request, + global::System.Collections.Generic.IList? include = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create run
+ /// Create a run. + ///
+ /// + /// + /// + /// The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run. + /// + /// + /// The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
+ /// Example: gpt-5 + /// + /// + /// + /// Overrides the [instructions](https://developers.openai.com/api/docs/assistants/migration) of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions. + /// + /// + /// Adds additional messages to the thread before creating the run. + /// + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// + /// + /// Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.
+ /// Default Value: true + /// + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable CreateRunAsStreamAsync( + string threadId, + string assistantId, + global::System.Collections.Generic.IList? include = default, + global::tryAGI.OpenAI.AnyOf? model = default, + global::tryAGI.OpenAI.ReasoningEffortEnum? reasoningEffort = default, + string? instructions = default, + string? additionalInstructions = default, + global::System.Collections.Generic.IList? additionalMessages = default, + global::System.Collections.Generic.IList>? tools = default, + global::System.Collections.Generic.Dictionary? metadata = default, + double? temperature = default, + double? topP = default, + int? maxPromptTokens = default, + int? maxCompletionTokens = default, + global::tryAGI.OpenAI.AllOf? truncationStrategy = default, + global::tryAGI.OpenAI.AllOf? toolChoice = default, + bool? parallelToolCalls = default, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs index a9b2b08f4..c6672b787 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs @@ -66,9 +66,6 @@ public partial interface IAssistantsClient /// Default Value: 1
/// Example: 1 /// - /// - /// If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message. - /// /// /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. /// @@ -100,7 +97,6 @@ public partial interface IAssistantsClient global::System.Collections.Generic.Dictionary? metadata = default, double? temperature = default, double? topP = default, - bool? stream = default, int? maxPromptTokens = default, int? maxCompletionTokens = default, global::tryAGI.OpenAI.AllOf? truncationStrategy = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRunAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRunAsStream.g.cs new file mode 100644 index 000000000..016c23598 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRunAsStream.g.cs @@ -0,0 +1,96 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IAssistantsClient + { + /// + /// Create thread and run
+ /// Create a thread and run it in one request. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable CreateThreadAndRunAsStreamAsync( + + global::tryAGI.OpenAI.CreateThreadAndRunRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create thread and run
+ /// Create a thread and run it in one request. + ///
+ /// + /// The ID of the [assistant](https://developers.openai.com/api/docs/assistants/migration) to use to execute this run. + /// + /// + /// Options to create a new thread. If no thread is provided when running a
+ /// request, an empty thread will be created. + /// + /// + /// The ID of the [Model](https://developers.openai.com/api/reference/resources/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.
+ /// Example: gpt-5 + /// + /// + /// Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis. + /// + /// + /// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs. + /// + /// + /// + /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
+ /// We generally recommend altering this or temperature but not both.
+ /// Default Value: 1
+ /// Example: 1 + /// + /// + /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. + /// + /// + /// + /// + /// Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.
+ /// Default Value: true + /// + /// + /// Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
+ /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
+ /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
+ /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable CreateThreadAndRunAsStreamAsync( + string assistantId, + global::tryAGI.OpenAI.CreateThreadRequest? thread = default, + global::tryAGI.OpenAI.AnyOf? model = default, + string? instructions = default, + global::System.Collections.Generic.IList>? tools = default, + global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? toolResources = default, + global::System.Collections.Generic.Dictionary? metadata = default, + double? temperature = default, + double? topP = default, + int? maxPromptTokens = default, + int? maxCompletionTokens = default, + global::tryAGI.OpenAI.AllOf? truncationStrategy = default, + global::tryAGI.OpenAI.AllOf? toolChoice = default, + bool? parallelToolCalls = default, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat = default, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs index 539ca55eb..0d50ca6b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRun.g.cs @@ -47,7 +47,6 @@ public partial interface IAssistantsClient /// /// A list of tools for which the outputs are being submitted. /// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -55,7 +54,6 @@ public partial interface IAssistantsClient string threadId, string runId, global::System.Collections.Generic.IList toolOutputs, - bool? stream = default, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRunAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRunAsStream.g.cs new file mode 100644 index 000000000..65067a930 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.SubmitToolOuputsToRunAsStream.g.cs @@ -0,0 +1,43 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public partial interface IAssistantsClient + { + /// + /// Submit tool outputs to run
+ /// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. + ///
+ /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable SubmitToolOuputsToRunAsStreamAsync( + string threadId, + string runId, + + global::tryAGI.OpenAI.SubmitToolOutputsRunRequest request, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Submit tool outputs to run
+ /// When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. + ///
+ /// + /// + /// + /// A list of tools for which the outputs are being submitted. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Collections.Generic.IAsyncEnumerable SubmitToolOuputsToRunAsStreamAsync( + string threadId, + string runId, + global::System.Collections.Generic.IList toolOutputs, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs index 3ad06489c..f552ab2b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs @@ -15,7 +15,7 @@ public partial interface IAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + global::System.Threading.Tasks.Task> CreateTranscriptionAsync( global::tryAGI.OpenAI.CreateTranscriptionRequest request, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -31,7 +31,7 @@ public partial interface IAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( + global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( global::tryAGI.OpenAI.CreateTranscriptionRequest request, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -97,7 +97,7 @@ public partial interface IAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + global::System.Threading.Tasks.Task> CreateTranscriptionAsync( byte[] file, string filename, global::tryAGI.OpenAI.AnyOf model, @@ -176,7 +176,7 @@ public partial interface IAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateTranscriptionAsync( + global::System.Threading.Tasks.Task> CreateTranscriptionAsync( global::System.IO.Stream file, string filename, global::tryAGI.OpenAI.AnyOf model, @@ -254,7 +254,7 @@ public partial interface IAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( + global::System.Threading.Tasks.Task>> CreateTranscriptionAsResponseAsync( global::System.IO.Stream file, string filename, global::tryAGI.OpenAI.AnyOf model, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs index 1e825e587..e35255197 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IChatClient.GetChatCompletionMessages.g.cs @@ -54,7 +54,7 @@ public partial interface IChatClient global::System.Threading.CancellationToken cancellationToken = default); /// - /// Wraps GetChatCompletionMessagesAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.AllOf<global::tryAGI.OpenAI.ChatCompletionResponseMessage, global::tryAGI.OpenAI.ChatCompletionMessageListDataItem>> that auto-pages over the response. + /// Wraps GetChatCompletionMessagesAsync as an IAsyncEnumerable<global::tryAGI.OpenAI.ChatCompletionMessageListDataItem> that auto-pages over the response. /// /// /// @@ -65,7 +65,7 @@ public partial interface IChatClient /// /// Initial cursor to start enumerating from. Defaults to null (first page). /// - global::System.Collections.Generic.IAsyncEnumerable> GetChatCompletionMessagesAutoPagingAsync( + global::System.Collections.Generic.IAsyncEnumerable GetChatCompletionMessagesAutoPagingAsync( string completionId, int? limit = default, global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? order = default, string? after = null, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs index e17093b2b..b2667c2a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainer.g.cs @@ -12,7 +12,7 @@ public partial interface IOpenAiClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteContainerAsync( + global::System.Threading.Tasks.Task DeleteContainerAsync( string containerId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -24,7 +24,7 @@ public partial interface IOpenAiClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteContainerAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteContainerAsResponseAsync( string containerId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs index eb91c5cba..155185928 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.DeleteContainerFile.g.cs @@ -13,7 +13,7 @@ public partial interface IOpenAiClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteContainerFileAsync( + global::System.Threading.Tasks.Task DeleteContainerFileAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -27,7 +27,7 @@ public partial interface IOpenAiClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteContainerFileAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteContainerFileAsResponseAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs index 358efbf37..321aeb679 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IOpenAiClient.RetrieveContainerFileContent.g.cs @@ -13,7 +13,7 @@ public partial interface IOpenAiClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RetrieveContainerFileContentAsync( + global::System.Threading.Tasks.Task RetrieveContainerFileContentAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -27,7 +27,21 @@ public partial interface IOpenAiClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RetrieveContainerFileContentAsResponseAsync( + global::System.Threading.Tasks.Task RetrieveContainerFileContentAsStreamAsync( + string containerId, + string fileId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieve container file content
+ /// Retrieve Container File Content + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> RetrieveContainerFileContentAsResponseAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.BetaDeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.BetaDeleteResponse.g.cs index fd3641e3b..3edb8051d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.BetaDeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.BetaDeleteResponse.g.cs @@ -15,7 +15,7 @@ public partial interface IResponsesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task BetaDeleteResponseAsync( + global::System.Threading.Tasks.Task BetaDeleteResponseAsync( string responseId, global::System.Collections.Generic.IList? openaiBeta = default, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -31,7 +31,7 @@ public partial interface IResponsesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task BetaDeleteResponseAsResponseAsync( + global::System.Threading.Tasks.Task> BetaDeleteResponseAsResponseAsync( string responseId, global::System.Collections.Generic.IList? openaiBeta = default, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs index a3a076915..e23833d8d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IResponsesClient.DeleteResponse.g.cs @@ -14,7 +14,7 @@ public partial interface IResponsesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteResponseAsync( + global::System.Threading.Tasks.Task DeleteResponseAsync( string responseId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -28,7 +28,7 @@ public partial interface IResponsesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteResponseAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteResponseAsResponseAsync( string responseId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs index f56c9e156..2eb7e3530 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Images.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 a8f45cd5d..e337ac2fe 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 @@ -201,7 +201,7 @@ partial void ProcessCreateImageResponseContent( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessCreateImageResponseContent( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -276,7 +276,7 @@ partial void ProcessCreateImageResponseContent( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessCreateImageResponseContent( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +346,7 @@ partial void ProcessCreateImageResponseContent( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 9d9f6cd68..18e1ddcd4 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 @@ -173,7 +173,7 @@ partial void ProcessCreateImageAsStreamResponse( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessCreateImageAsStreamResponse( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessCreateImageAsStreamResponse( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessCreateImageAsStreamResponse( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessCreateImageAsStreamResponse( pathTemplate: "\"/images/generations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 78ce69723..6bfb8e000 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 @@ -433,7 +433,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -467,7 +467,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -508,7 +508,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -556,7 +556,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -578,7 +578,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 9bba9c236..aac684441 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 @@ -405,7 +405,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -439,7 +439,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -480,7 +480,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -528,7 +528,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -550,7 +550,7 @@ request.Maskname is null pathTemplate: "\"/images/edits\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6ef0a7bf4..50d14c838 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 @@ -257,7 +257,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -291,7 +291,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -332,7 +332,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -380,7 +380,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -402,7 +402,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -997,7 +997,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1031,7 +1031,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1072,7 +1072,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1120,7 +1120,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1142,7 +1142,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1664,7 +1664,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1698,7 +1698,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1739,7 +1739,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1787,7 +1787,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1809,7 +1809,7 @@ request.Imagename is null pathTemplate: "\"/images/variations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Invites.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Invites.JsonSerializerContext.g.cs index 145c03ae8..05830d2f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Invites.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Invites.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 4fb1f7ffc..cf3119518 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteInviteResponseContent( PrepareDeleteInviteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - inviteId: inviteId!); + inviteId: inviteId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessDeleteInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs index a0649749c..6cdf5ccc6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.InvitesClient.InviteUser.g.cs @@ -182,7 +182,7 @@ partial void ProcessInviteUserResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessInviteUserResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessInviteUserResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessInviteUserResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessInviteUserResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 39fa2c75b..6bdd82c19 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 @@ -188,7 +188,7 @@ partial void ProcessListInvitesResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -222,7 +222,7 @@ partial void ProcessListInvitesResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessListInvitesResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -311,7 +311,7 @@ partial void ProcessListInvitesResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessListInvitesResponseContent( pathTemplate: "\"/organization/invites\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 193f0bfc6..b11d7554d 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 @@ -147,7 +147,7 @@ partial void ProcessRetrieveInviteResponseContent( PrepareRetrieveInviteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - inviteId: inviteId!); + inviteId: inviteId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveInviteResponseContent( pathTemplate: "$\"/organization/invites/{inviteId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs index 73150682b..77ad42925 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdminApiKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdminApiKey).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AdminApiKey!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAdminApiKey(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AdminApiKeyCreateResponseVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAdminApiKeyCreateResponseVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentContentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentContentResource.g.cs index 6a7ab3ff9..83d58405e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentContentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentContentResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsEncryptedContent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EncryptedContentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EncryptedContentResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EncryptedContent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEncryptedContent(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentOutputItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentOutputItemResource.g.cs index a205a8762..bf3b7c2e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentOutputItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentOutputItemResource.g.cs @@ -149,73 +149,73 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsWebSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsCommandExecution) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CommandExecutionItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CommandExecutionItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CommandExecution!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCommandExecution(), typeInfo); } else if (value.IsCreateSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateSubagentCall(), typeInfo); } else if (value.IsSendSubagentInputCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SendSubagentInputCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SendSubagentInputCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SendSubagentInputCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSendSubagentInputCall(), typeInfo); } else if (value.IsResumeSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResumeSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResumeSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResumeSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResumeSubagentCall(), typeInfo); } else if (value.IsWaitForSubagentsCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitForSubagentsCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitForSubagentsCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WaitForSubagentsCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWaitForSubagentsCall(), typeInfo); } else if (value.IsInterruptSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InterruptSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InterruptSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InterruptSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInterruptSubagentCall(), typeInfo); } else if (value.IsCloseSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CloseSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CloseSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CloseSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloseSubagentCall(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolConfigParam.g.cs index f3fcfa64f..9c6864652 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolConfigParam.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolConfigParamFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolConfigParamFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolConfigParamToolSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolConfigParamToolSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); } else if (value.IsProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgrammaticToolCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolConfigParamMcp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolConfigParamMcp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolConfigParamWebSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolConfigParamWebSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolResource.g.cs index 18a669d9c..2b3ff91e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AgentToolResource.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolResourceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolResourceFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgrammaticToolCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolResourceMcp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolResourceMcp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentToolResourceWebSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentToolResourceWebSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } } } 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 185188fb6..3b90d58e9 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 @@ -69,7 +69,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value1!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickValue1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -87,7 +87,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickValue2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 87c88e417..ca31bb8e4 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 @@ -77,25 +77,25 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileCitation(), typeInfo); } else if (value.IsUrlCitation) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUrlCitation(), typeInfo); } else if (value.IsContainerFileCitation) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerFileCitation(), typeInfo); } else if (value.IsFilePath) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFilePath(), 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 ce235f82b..4e6fe140b 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFile(), typeInfo); } else if (value.IsUrl) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUrl(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem4.g.cs index f7f16c499..aa2f351e8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem4.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileCitationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileCitationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileCitation(), typeInfo); } else if (value.IsUrlCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaUrlCitationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaUrlCitationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUrlCitation(), typeInfo); } else if (value.IsContainerFileCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerFileCitationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerFileCitationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerFileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerFileCitation(), 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 c29eb001f..ccaa5986a 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 @@ -148,13 +148,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), 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 1dcb46dd9..deb6aef53 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 @@ -197,19 +197,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf58.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf58.g.cs index 8fe29cea1..96be62078 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf58.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf58.g.cs @@ -2892,349 +2892,349 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } else if (value.IsValue18) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue18(), typeInfo); } else if (value.IsValue19) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue19(), typeInfo); } else if (value.IsValue20) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value20!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue20(), typeInfo); } else if (value.IsValue21) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value21!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue21(), typeInfo); } else if (value.IsValue22) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value22!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue22(), typeInfo); } else if (value.IsValue23) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T23).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value23!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue23(), typeInfo); } else if (value.IsValue24) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T24).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value24!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue24(), typeInfo); } else if (value.IsValue25) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T25).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value25!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue25(), typeInfo); } else if (value.IsValue26) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T26), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T26).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value26!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue26(), typeInfo); } else if (value.IsValue27) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T27).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value27!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue27(), typeInfo); } else if (value.IsValue28) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T28), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T28).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value28!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue28(), typeInfo); } else if (value.IsValue29) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T29), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T29).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value29!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue29(), typeInfo); } else if (value.IsValue30) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T30), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T30).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value30!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue30(), typeInfo); } else if (value.IsValue31) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T31), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T31).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value31!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue31(), typeInfo); } else if (value.IsValue32) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T32), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T32).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value32!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue32(), typeInfo); } else if (value.IsValue33) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T33), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T33).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value33!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue33(), typeInfo); } else if (value.IsValue34) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T34), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T34).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value34!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue34(), typeInfo); } else if (value.IsValue35) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T35), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T35).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value35!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue35(), typeInfo); } else if (value.IsValue36) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T36), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T36).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value36!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue36(), typeInfo); } else if (value.IsValue37) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T37), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T37).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value37!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue37(), typeInfo); } else if (value.IsValue38) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T38), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T38).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value38!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue38(), typeInfo); } else if (value.IsValue39) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T39), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T39).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value39!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue39(), typeInfo); } else if (value.IsValue40) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T40), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T40).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value40!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue40(), typeInfo); } else if (value.IsValue41) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T41), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T41).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value41!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue41(), typeInfo); } else if (value.IsValue42) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T42), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T42).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value42!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue42(), typeInfo); } else if (value.IsValue43) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T43), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T43).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value43!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue43(), typeInfo); } else if (value.IsValue44) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T44), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T44).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value44!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue44(), typeInfo); } else if (value.IsValue45) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T45), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T45).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value45!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue45(), typeInfo); } else if (value.IsValue46) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T46), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T46).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value46!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue46(), typeInfo); } else if (value.IsValue47) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T47), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T47).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value47!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue47(), typeInfo); } else if (value.IsValue48) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T48), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T48).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value48!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue48(), typeInfo); } else if (value.IsValue49) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T49), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T49).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value49!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue49(), typeInfo); } else if (value.IsValue50) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T50), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T50).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value50!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue50(), typeInfo); } else if (value.IsValue51) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T51), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T51).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value51!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue51(), typeInfo); } else if (value.IsValue52) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T52), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T52).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value52!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue52(), typeInfo); } else if (value.IsValue53) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T53), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T53).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value53!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue53(), typeInfo); } else if (value.IsValue54) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T54), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T54).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value54!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue54(), typeInfo); } else if (value.IsValue55) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T55), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T55).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value55!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue55(), typeInfo); } else if (value.IsValue56) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T56), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T56).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value56!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue56(), typeInfo); } else if (value.IsValue57) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T57), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T57).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value57!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue57(), typeInfo); } else if (value.IsValue58) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T58), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T58).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value58!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue58(), 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 7593ff6cf..817d9dcd8 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateFile(), typeInfo); } else if (value.IsDeleteFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeleteFile(), typeInfo); } else if (value.IsUpdateFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUpdateFile(), 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 f07246565..74d87850d 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 @@ -290,37 +290,37 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickThread(), typeInfo); } else if (value.IsRun) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRun(), typeInfo); } else if (value.IsRunStep) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStep(), typeInfo); } else if (value.IsMessage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsError) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDone(), 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 2c2391d4a..b5ce43f6d 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 @@ -215,25 +215,25 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsJsonObject) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonObject(), typeInfo); } else if (value.IsJsonSchema) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonSchema(), 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 d1e1451c3..399531191 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 @@ -136,13 +136,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsNamed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamed(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaAnnotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaAnnotation.g.cs index b1a6f9134..6d3eb7456 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaAnnotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaAnnotation.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileCitationBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileCitation(), typeInfo); } else if (value.IsUrlCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaUrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaUrlCitationBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UrlCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUrlCitation(), typeInfo); } else if (value.IsContainerFileCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerFileCitationBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerFileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerFileCitation(), typeInfo); } else if (value.IsFilePath) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFilePath).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FilePath!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFilePath(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaApplyPatchOperationParam.g.cs index 4592bbb4e..8cb07a59e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaApplyPatchOperationParam.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateFile(), typeInfo); } else if (value.IsDeleteFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeleteFile(), typeInfo); } else if (value.IsUpdateFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUpdateFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerAction.g.cs index 4352cbf20..77c1cb9b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerAction.g.cs @@ -122,55 +122,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaClickParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Click!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClick(), typeInfo); } else if (value.IsDoubleClick) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaDoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaDoubleClickAction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DoubleClick!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDoubleClick(), typeInfo); } else if (value.IsDrag) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaDragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaDragParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Drag!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDrag(), typeInfo); } else if (value.IsKeypress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaKeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaKeyPressAction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Keypress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKeypress(), typeInfo); } else if (value.IsMove) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMoveParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Move!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMove(), typeInfo); } else if (value.IsScreenshot) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaScreenshotParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Screenshot!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickScreenshot(), typeInfo); } else if (value.IsScroll) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaScrollParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Scroll!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickScroll(), typeInfo); } else if (value.IsTypeValue) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaTypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaTypeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TypeValue!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTypeValue(), typeInfo); } else if (value.IsWait) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWaitParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wait!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWait(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerToolCallOutputResource.g.cs index d834696e5..609f4e94e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaComputerToolCallOutputResource.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutput).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ComputerToolCallOutput!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickComputerToolCallOutput(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaComputerToolCallOutputResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaComputerToolCallOutputResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaContent.g.cs index ca93fd2b0..c3867d0d9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaContent.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputContentTypes!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputContentTypes(), typeInfo); } else if (value.IsOutputContentTypes) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputContentTypes!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputContentTypes(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaConversationParam.g.cs index 414a73c4d..08f2fad66 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaConversationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaConversationParam.g.cs @@ -127,13 +127,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationId(), typeInfo); } else if (value.IsConversationObject) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaConversationParam2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationObject(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateModelResponseProperties.g.cs index eaf36b6ab..f8014e374 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateModelResponseProperties.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModelResponseProperties).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaModelResponseProperties!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaModelResponseProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaCreateModelResponsePropertiesVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaCreateModelResponsePropertiesVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateResponse.g.cs index 7f307812e..fd35d2039 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCreateResponse.g.cs @@ -86,7 +86,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCreateModelResponseProperties).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ModelProperties!.Value, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickModelProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -104,7 +104,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseProperties).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Properties!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickProperties(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -122,7 +122,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3).Name}"); - var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaCreateResponseVariant3!, typeInfo); + var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaCreateResponseVariant3(), typeInfo); if (__element2.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallOutputResource.g.cs index 10d25b4f3..5ac026688 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallOutputResource.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutput).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomToolCallOutput!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomToolCallOutput(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaCustomToolCallOutputResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaCustomToolCallOutputResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallResource.g.cs index 5d19eb515..091d7bf33 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaCustomToolCallResource.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCall).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomToolCall!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomToolCall(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaCustomToolCallResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaCustomToolCallResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObject.g.cs new file mode 100644 index 000000000..34e8a0ce7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaDeleteResponseResponseObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaDeleteResponseResponseObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaDeleteResponseResponseObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaDeleteResponseResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaDeleteResponseResponseObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.BetaDeleteResponseResponseObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectNullable.g.cs new file mode 100644 index 000000000..495052510 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class BetaDeleteResponseResponseObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.BetaDeleteResponseResponseObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.BetaDeleteResponseResponseObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.BetaDeleteResponseResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.BetaDeleteResponseResponseObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.BetaDeleteResponseResponseObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFilters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFilters.g.cs index a73706e81..e1f6805dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFilters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFilters.g.cs @@ -131,13 +131,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComparisonFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComparisonFilter(), typeInfo); } else if (value.IsCompoundFilter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompoundFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompoundFilter(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionAndCustomToolCallOutput.g.cs index 25c2f0472..df52eebdd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionAndCustomToolCallOutput.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionShellCallOutputOutcomeParam.g.cs index 8869311d2..d87499d04 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionShellCallOutputOutcomeParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTimeout(), typeInfo); } else if (value.IsExit) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickExit(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallOutputResource.g.cs index 0574081a5..b81464882 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallOutputResource.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutput).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.FunctionToolCallOutput!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickFunctionToolCallOutput(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaFunctionToolCallOutputResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaFunctionToolCallOutputResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallResource.g.cs index 8bb4d9381..6792b4997 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaFunctionToolCallResource.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCall).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.FunctionToolCall!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickFunctionToolCall(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaFunctionToolCallResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaFunctionToolCallResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputContent.g.cs index 20df1e453..91d253dcb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputContent.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputItem.g.cs index c00b698b9..56b2a18fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputItem.g.cs @@ -296,37 +296,37 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaEasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaEasyInputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Item!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickItem(), typeInfo); } else if (value.IsCompactionTrigger) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompactionTriggerItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompactionTriggerItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompactionTrigger!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompactionTrigger(), typeInfo); } else if (value.IsItemReference) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaItemReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ItemReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickItemReference(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputMessageResource.g.cs index 26c0d2bbc..0807d0297 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputMessageResource.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputMessage).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.InputMessage!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickInputMessage(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputMessageResourceVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaInputMessageResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaInputMessageResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputParam.g.cs index f3e7da8ef..caebda433 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaInputParam.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextInput(), typeInfo); } else if (value.IsInputItemList) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputItemList(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItem.g.cs index 39dd2a5fc..8dc279b71 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItem.g.cs @@ -320,187 +320,187 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage1(), typeInfo); } else if (value.IsMessage2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage2(), typeInfo); } else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsComputerCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCallOutput(), typeInfo); } else if (value.IsWebSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsAgentMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAgentMessageItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAgentMessageItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentMessage(), typeInfo); } else if (value.IsMultiAgentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCall(), typeInfo); } else if (value.IsMultiAgentCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCallOutput(), typeInfo); } else if (value.IsToolSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAdditionalToolsItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAdditionalToolsItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsConfigurationUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConfigurationUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConfigurationUpdate(), typeInfo); } else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsCompaction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompactionSummaryItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsImageGenerationCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsCodeInterpreterCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsCustomToolCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), typeInfo); } else if (value.IsCustomToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemField.g.cs index 143c29d1e..4554a5d08 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemField.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemField.g.cs @@ -1443,187 +1443,187 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgram), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgram).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsMultiAgentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCall(), typeInfo); } else if (value.IsMultiAgentCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCallOutput(), typeInfo); } else if (value.IsToolSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsAgentMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAgentMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAgentMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentMessage(), typeInfo); } else if (value.IsFunctionCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsWebSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsImageGenerationCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsComputerCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallOutputResource) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallOutputResource(), typeInfo); } else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsCompaction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsCodeInterpreterCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsCustomToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), typeInfo); } else if (value.IsCustomToolCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemResource.g.cs index 23b213365..2e3283add 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaItemResource.g.cs @@ -1488,199 +1488,199 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputMessageResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputMessage(), typeInfo); } else if (value.IsMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsComputerCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallOutput(), typeInfo); } else if (value.IsWebSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsFunctionToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCall(), typeInfo); } else if (value.IsFunctionToolCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCallOutput(), typeInfo); } else if (value.IsAgentMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAgentMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAgentMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentMessage(), typeInfo); } else if (value.IsMultiAgentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCall(), typeInfo); } else if (value.IsMultiAgentCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCallOutput(), typeInfo); } else if (value.IsToolSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsConfigurationUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseConfigurationUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseConfigurationUpdate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConfigurationUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConfigurationUpdate(), typeInfo); } else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgram), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgram).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsCompaction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsImageGenerationCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsCodeInterpreterCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsResponseCustomToolCallItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallItem(), typeInfo); } else if (value.IsResponseCustomToolCallOutputItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallOutputItem(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMCPToolCallError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMCPToolCallError.g.cs index 510bf17c7..dc1dceecf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMCPToolCallError.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMCPToolCallError.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPProtocolError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPProtocolError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpProtocolError!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpProtocolError(), typeInfo); } else if (value.IsMcpToolExecutionError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPToolExecutionError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPToolExecutionError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpToolExecutionError!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpToolExecutionError(), typeInfo); } else if (value.IsHttpError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaHTTPError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaHTTPError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HttpError!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttpError(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMisalignmentErrorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMisalignmentErrorType.g.cs index 66bcb2af6..a19190a24 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMisalignmentErrorType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaMisalignmentErrorType.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.BetaMisalignmentErrorTypeVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaMisalignmentErrorTypeVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsCompaction.g.cs index 7adc9f6a8..ee61f5c05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsCompaction.g.cs @@ -198,19 +198,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModelIdsResponses).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), typeInfo); } else if (value.IsBetaModelIdsCompactionVariant2) { 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.BetaModelIdsCompactionVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaModelIdsCompactionVariant2(), typeInfo); } else if (value.IsBetaModelIdsCompactionVariant3) { 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.BetaModelIdsCompactionVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaModelIdsCompactionVariant3(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsResponses.g.cs index bed8e22f8..25229221b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsResponses.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModelIdsShared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShared(), typeInfo); } else if (value.IsResponsesOnlyModel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModelIdsResponsesEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModelIdsResponsesEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesOnlyModel!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponsesOnlyModel(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsShared.g.cs index a71dea0c7..5fda694b3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaModelIdsShared.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.BetaModelIdsSharedVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaModelIdsSharedVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModelIdsSharedEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputContent.g.cs index 0800b7596..cac890964 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputContent.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsRefusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaRefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaRefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); } else if (value.IsReasoningText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningText(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputItem.g.cs index 3e1bc4959..810017862 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputItem.g.cs @@ -1427,187 +1427,187 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionToolCallResource) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCallResource(), typeInfo); } else if (value.IsAgentMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAgentMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAgentMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentMessage(), typeInfo); } else if (value.IsMultiAgentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCall(), typeInfo); } else if (value.IsMultiAgentCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMultiAgentCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiAgentCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMultiAgentCallOutput(), typeInfo); } else if (value.IsWebSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsComputerCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallResource) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallResource!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallResource(), typeInfo); } else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningItem).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgram), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgram).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsToolSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaAdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaAdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsCompaction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompactionBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Compaction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsImageGenerationCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsCodeInterpreterCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreterCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsMcpListTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPListTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpListTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsCustomToolCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), typeInfo); } else if (value.IsResponseCustomToolCallOutputItem) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallOutputItem!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallOutputItem(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputMessageContent.g.cs index 4a23b8247..69045d877 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaOutputMessageContent.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsRefusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaRefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaRefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPersonalityEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPersonalityEnum.g.cs index fdc3000c0..2c9de14fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPersonalityEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPersonalityEnum.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.BetaPersonalityEnumVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaPersonalityEnumVariant1(), typeInfo); } else if (value.IsBetaPersonalityEnumEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaPersonalityEnumEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaPersonalityEnumEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaPersonalityEnumEnum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaPersonalityEnumEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPromptCacheDiagnostics.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPromptCacheDiagnostics.g.cs index 512776962..aa8688a13 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPromptCacheDiagnostics.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaPromptCacheDiagnostics.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CacheMiss!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCacheMiss(), typeInfo); } else if (value.IsCacheHit) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CacheHit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCacheHit(), typeInfo); } else if (value.IsComparisonResponseNotFound) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonResponseNotFound!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComparisonResponseNotFound(), typeInfo); } else if (value.IsUnavailable) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Unavailable!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUnavailable(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaReasoningModeEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaReasoningModeEnum.g.cs index f2fff5686..0bad8d986 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaReasoningModeEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaReasoningModeEnum.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.BetaReasoningModeEnumVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaReasoningModeEnumVariant1(), typeInfo); } else if (value.IsBetaReasoningModeEnumEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningModeEnumEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningModeEnumEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaReasoningModeEnumEnum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaReasoningModeEnumEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponse.g.cs index a97d8fdc2..4ed5d2eac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponse.g.cs @@ -86,7 +86,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModelResponseProperties).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ModelProperties!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickModelProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -104,7 +104,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseProperties).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Properties!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickProperties(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -122,7 +122,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseVariant3).Name}"); - var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaResponseVariant3!, typeInfo); + var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaResponseVariant3(), typeInfo); if (__element2.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerErrorCode.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerErrorCode.g.cs index 4c2e2a58b..ca37a744c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerErrorCode.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerErrorCode.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsBetaResponseSteerErrorCodeVariant2) { 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.BetaResponseSteerErrorCodeVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseSteerErrorCodeVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInput.g.cs index 6262f0eb4..274ed46dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInput.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextInput(), typeInfo); } else if (value.IsResponseSteerInputItemList) { 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.ResponseSteerInputItemList!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerInputItemList(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInputItem.g.cs index ecbd5eff0..4b9a8fa6d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerInputItem.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaUserMessageItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaUserMessageItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFunctionCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerPendingReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerPendingReason.g.cs index 261cb7931..aee059457 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerPendingReason.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerPendingReason.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsBetaResponseSteerPendingReasonVariant2) { 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.BetaResponseSteerPendingReasonVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseSteerPendingReasonVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerRequiredInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerRequiredInput.g.cs index f74746cea..a7ec9870a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerRequiredInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseSteerRequiredInput.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsCustomToolCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), typeInfo); } else if (value.IsComputerCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCallOutput(), typeInfo); } else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsToolSearchOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseStreamEvent.g.cs index 2db62234b..9557b5543 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponseStreamEvent.g.cs @@ -572,355 +572,355 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioDelta(), typeInfo); } else if (value.IsResponseAudioDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseAudioDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioDone(), typeInfo); } else if (value.IsResponseAudioTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioTranscriptDelta(), typeInfo); } else if (value.IsResponseAudioTranscriptDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioTranscriptDone(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCodeDelta(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCodeDone(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCompleted(), typeInfo); } else if (value.IsResponseCodeInterpreterCallInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallInProgress(), typeInfo); } else if (value.IsResponseCodeInterpreterCallInterpreting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInterpreting!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallInterpreting(), typeInfo); } else if (value.IsResponseCompactionCompacting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompactionCompacting!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCompactionCompacting(), typeInfo); } else if (value.IsResponseCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCompleted(), typeInfo); } else if (value.IsResponseContentPartAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartAdded(), typeInfo); } else if (value.IsResponseContentPartDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartDone(), typeInfo); } else if (value.IsResponseCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCreatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreated(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsResponseFileSearchCallCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallCompleted(), typeInfo); } else if (value.IsResponseFileSearchCallInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallInProgress(), typeInfo); } else if (value.IsResponseFileSearchCallSearching) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallSearching!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallSearching(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDelta(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDone(), typeInfo); } else if (value.IsResponseShellCallCommandAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandAdded(), typeInfo); } else if (value.IsResponseShellCallCommandDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandDelta(), typeInfo); } else if (value.IsResponseShellCallCommandDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandDone(), typeInfo); } else if (value.IsResponseShellCallOutputContentDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallOutputContentDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallOutputContentDelta(), typeInfo); } else if (value.IsResponseShellCallOutputContentDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallOutputContentDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallOutputContentDone(), typeInfo); } else if (value.IsResponseInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseInProgress(), typeInfo); } else if (value.IsResponseFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFailed(), typeInfo); } else if (value.IsResponseIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseIncompleteEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseIncomplete!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseIncomplete(), typeInfo); } else if (value.IsResponseOutputItemAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemAdded(), typeInfo); } else if (value.IsResponseOutputItemDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemDone(), typeInfo); } else if (value.IsResponseReasoningSummaryPartAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryPartAdded(), typeInfo); } else if (value.IsResponseReasoningSummaryPartDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryPartDone(), typeInfo); } else if (value.IsResponseReasoningSummaryTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryTextDelta(), typeInfo); } else if (value.IsResponseReasoningSummaryTextDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryTextDone(), typeInfo); } else if (value.IsResponseReasoningTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextDelta(), typeInfo); } else if (value.IsResponseReasoningTextDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextDone(), typeInfo); } else if (value.IsResponseRefusalDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseRefusalDelta(), typeInfo); } else if (value.IsResponseRefusalDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseRefusalDone(), typeInfo); } else if (value.IsResponseOutputTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseTextDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDelta(), typeInfo); } else if (value.IsResponseOutputTextDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseTextDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDone(), typeInfo); } else if (value.IsResponseWebSearchCallCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallCompleted(), typeInfo); } else if (value.IsResponseWebSearchCallInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallInProgress(), typeInfo); } else if (value.IsResponseWebSearchCallSearching) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallSearching!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallSearching(), typeInfo); } else if (value.IsResponseImageGenerationCallCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallCompleted(), typeInfo); } else if (value.IsResponseImageGenerationCallGenerating) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallGenerating!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallGenerating(), typeInfo); } else if (value.IsResponseImageGenerationCallInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallInProgress(), typeInfo); } else if (value.IsResponseImageGenerationCallPartialImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenerationCallPartialImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallPartialImage(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDelta(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDone(), typeInfo); } else if (value.IsResponseMcpCallCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallCompleted(), typeInfo); } else if (value.IsResponseMcpCallFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallFailed(), typeInfo); } else if (value.IsResponseMcpCallInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallInProgress(), typeInfo); } else if (value.IsResponseMcpListToolsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsCompleted(), typeInfo); } else if (value.IsResponseMcpListToolsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsFailed(), typeInfo); } else if (value.IsResponseMcpListToolsInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsInProgress(), typeInfo); } else if (value.IsResponseOutputTextAnnotationAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextAnnotationAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextAnnotationAdded(), typeInfo); } else if (value.IsResponseQueued) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseQueuedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseQueued!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseQueued(), typeInfo); } else if (value.IsResponseCustomToolCallInputDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallInputDelta(), typeInfo); } else if (value.IsResponseCustomToolCallInputDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallInputDone(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEvent.g.cs index d0ae01794..271b42dc3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEvent.g.cs @@ -169,19 +169,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreate(), typeInfo); } else if (value.IsResponseSteer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteer(), typeInfo); } else if (value.IsResponseInject) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseInjectEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseInjectEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseInject(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEventResponseCreate.g.cs index 5466adbb0..1746dbee2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesClientEventResponseCreate.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaResponsesClientEventResponseCreateVariant1!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaResponsesClientEventResponseCreateVariant1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCreateResponse).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaCreateResponse!.Value, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaCreateResponse(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesServerEvent.g.cs index cc9e89458..1f90de44e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesServerEvent.g.cs @@ -2476,385 +2476,385 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseAudioWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseAudioWsDelta(), typeInfo); } else if (value.IsBetaResponseAudioWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseAudioWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseAudioWsDone(), typeInfo); } else if (value.IsBetaResponseAudioTranscriptWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseAudioTranscriptWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseAudioTranscriptWsDelta(), typeInfo); } else if (value.IsBetaResponseAudioTranscriptWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseAudioTranscriptWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseAudioTranscriptWsDone(), typeInfo); } else if (value.IsBetaResponseCodeInterpreterCallCodeWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCodeInterpreterCallCodeWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCodeInterpreterCallCodeWsDelta(), typeInfo); } else if (value.IsBetaResponseCodeInterpreterCallCodeWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCodeInterpreterCallCodeWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCodeInterpreterCallCodeWsDone(), typeInfo); } else if (value.IsBetaResponseCodeInterpreterCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCodeInterpreterCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCodeInterpreterCallWsCompleted(), typeInfo); } else if (value.IsBetaResponseCodeInterpreterCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCodeInterpreterCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCodeInterpreterCallInWsProgress(), typeInfo); } else if (value.IsBetaResponseCodeInterpreterCallWsInterpreting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCodeInterpreterCallWsInterpreting!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCodeInterpreterCallWsInterpreting(), typeInfo); } else if (value.IsBetaResponseCompactionWsCompacting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCompactionWsCompacting!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCompactionWsCompacting(), typeInfo); } else if (value.IsBetaResponseWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWsCompleted(), typeInfo); } else if (value.IsBetaResponseContentPartWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseContentPartWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseContentPartWsAdded(), typeInfo); } else if (value.IsBetaResponseContentPartWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseContentPartWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseContentPartWsDone(), typeInfo); } else if (value.IsBetaResponseWsCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWsCreated!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWsCreated(), typeInfo); } else if (value.IsBetaResponseFileSearchCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseFileSearchCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseFileSearchCallWsCompleted(), typeInfo); } else if (value.IsBetaResponseFileSearchCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseFileSearchCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseFileSearchCallInWsProgress(), typeInfo); } else if (value.IsBetaResponseFileSearchCallWsSearching) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseFileSearchCallWsSearching!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseFileSearchCallWsSearching(), typeInfo); } else if (value.IsBetaResponseFunctionCallArgumentsWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseFunctionCallArgumentsWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseFunctionCallArgumentsWsDelta(), typeInfo); } else if (value.IsBetaResponseFunctionCallArgumentsWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseFunctionCallArgumentsWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseFunctionCallArgumentsWsDone(), typeInfo); } else if (value.IsBetaResponseShellCallCommandWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseShellCallCommandWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseShellCallCommandWsAdded(), typeInfo); } else if (value.IsBetaResponseShellCallCommandWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseShellCallCommandWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseShellCallCommandWsDelta(), typeInfo); } else if (value.IsBetaResponseShellCallCommandWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseShellCallCommandWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseShellCallCommandWsDone(), typeInfo); } else if (value.IsBetaResponseShellCallOutputContentWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseShellCallOutputContentWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseShellCallOutputContentWsDelta(), typeInfo); } else if (value.IsBetaResponseShellCallOutputContentWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseShellCallOutputContentWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseShellCallOutputContentWsDone(), typeInfo); } else if (value.IsBetaResponseInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseInWsProgress(), typeInfo); } else if (value.IsBetaResponseWsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWsFailed!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWsFailed(), typeInfo); } else if (value.IsBetaResponseWsIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWsIncomplete!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWsIncomplete(), typeInfo); } else if (value.IsBetaResponseOutputItemWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseOutputItemWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseOutputItemWsAdded(), typeInfo); } else if (value.IsBetaResponseOutputItemWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseOutputItemWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseOutputItemWsDone(), typeInfo); } else if (value.IsBetaResponseReasoningSummaryPartWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseReasoningSummaryPartWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseReasoningSummaryPartWsAdded(), typeInfo); } else if (value.IsBetaResponseReasoningSummaryPartWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseReasoningSummaryPartWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseReasoningSummaryPartWsDone(), typeInfo); } else if (value.IsBetaResponseReasoningSummaryTextWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseReasoningSummaryTextWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseReasoningSummaryTextWsDelta(), typeInfo); } else if (value.IsBetaResponseReasoningSummaryTextWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseReasoningSummaryTextWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseReasoningSummaryTextWsDone(), typeInfo); } else if (value.IsBetaResponseReasoningTextWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseReasoningTextWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseReasoningTextWsDelta(), typeInfo); } else if (value.IsBetaResponseReasoningTextWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseReasoningTextWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseReasoningTextWsDone(), typeInfo); } else if (value.IsBetaResponseRefusalWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseRefusalWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseRefusalWsDelta(), typeInfo); } else if (value.IsBetaResponseRefusalWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseRefusalWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseRefusalWsDone(), typeInfo); } else if (value.IsBetaResponseTextWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseTextWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseTextWsDelta(), typeInfo); } else if (value.IsBetaResponseTextWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseTextWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseTextWsDone(), typeInfo); } else if (value.IsBetaResponseWebSearchCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWebSearchCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWebSearchCallWsCompleted(), typeInfo); } else if (value.IsBetaResponseWebSearchCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWebSearchCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWebSearchCallInWsProgress(), typeInfo); } else if (value.IsBetaResponseWebSearchCallWsSearching) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWebSearchCallWsSearching!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWebSearchCallWsSearching(), typeInfo); } else if (value.IsBetaResponseImageGenCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseImageGenCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseImageGenCallWsCompleted(), typeInfo); } else if (value.IsBetaResponseImageGenCallWsGenerating) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseImageGenCallWsGenerating!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseImageGenCallWsGenerating(), typeInfo); } else if (value.IsBetaResponseImageGenCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseImageGenCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseImageGenCallInWsProgress(), typeInfo); } else if (value.IsBetaResponseImageGenCallPartialWsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseImageGenCallPartialWsImage!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseImageGenCallPartialWsImage(), typeInfo); } else if (value.IsBetaResponseMcpCallArgumentsWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpCallArgumentsWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpCallArgumentsWsDelta(), typeInfo); } else if (value.IsBetaResponseMcpCallArgumentsWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpCallArgumentsWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpCallArgumentsWsDone(), typeInfo); } else if (value.IsBetaResponseMcpCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpCallWsCompleted(), typeInfo); } else if (value.IsBetaResponseMcpCallWsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpCallWsFailed!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpCallWsFailed(), typeInfo); } else if (value.IsBetaResponseMcpCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpCallInWsProgress(), typeInfo); } else if (value.IsBetaResponseMcpListToolsWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpListToolsWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpListToolsWsCompleted(), typeInfo); } else if (value.IsBetaResponseMcpListToolsWsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpListToolsWsFailed!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpListToolsWsFailed(), typeInfo); } else if (value.IsBetaResponseMcpListToolsInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseMcpListToolsInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseMcpListToolsInWsProgress(), typeInfo); } else if (value.IsBetaResponseOutputTextAnnotationWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseOutputTextAnnotationWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseOutputTextAnnotationWsAdded(), typeInfo); } else if (value.IsBetaResponseWsQueued) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseWsQueued!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseWsQueued(), typeInfo); } else if (value.IsBetaResponseCustomToolCallInputWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCustomToolCallInputWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCustomToolCallInputWsDelta(), typeInfo); } else if (value.IsBetaResponseCustomToolCallInputWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.BetaResponseCustomToolCallInputWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBetaResponseCustomToolCallInputWsDone(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseWsError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseWsError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsResponseSteerAccepted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteerAccepted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerAccepted(), typeInfo); } else if (value.IsResponseSteerPending) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerPendingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerPendingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteerPending!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerPending(), typeInfo); } else if (value.IsResponseSteerFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseSteerFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseSteerFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteerFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerFailed(), typeInfo); } else if (value.IsResponseInjectCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInjectCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseInjectCreated(), typeInfo); } else if (value.IsResponseInjectFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseInjectFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseInjectFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInjectFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseInjectFailed(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesWebSocketStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesWebSocketStreamEvent.g.cs index e624f7975..abcd1a11c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesWebSocketStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaResponsesWebSocketStreamEvent.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnyOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AnyOf).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaResponsesWebSocketStreamEventVariant1!.Value, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaResponsesWebSocketStreamEventVariant1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.BetaResponsesWebSocketStreamEventVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickBetaResponsesWebSocketStreamEventVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTextResponseFormatConfiguration.g.cs index acde6a255..f4862b047 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTextResponseFormatConfiguration.g.cs @@ -170,19 +170,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFormatText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsJsonSchema) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonSchema(), typeInfo); } else if (value.IsJsonObject) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaResponseFormatJsonObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonObject(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTool.g.cs index 662d964af..06f198664 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaTool.g.cs @@ -733,97 +733,97 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFileSearchTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsComputerUsePreview) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerUsePreviewTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUsePreview!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerUsePreview(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaMCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaMCPTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreter(), typeInfo); } else if (value.IsProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgrammaticToolCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); } else if (value.IsImageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaImageGenTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGeneration!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGeneration(), typeInfo); } else if (value.IsLocalShell) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShell!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShell(), typeInfo); } else if (value.IsShell) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shell!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShell(), typeInfo); } else if (value.IsCustom) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); } else if (value.IsNamespace) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaNamespaceToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Namespace!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamespace(), typeInfo); } else if (value.IsToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); } else if (value.IsWebSearchPreview) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchPreview!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchPreview(), typeInfo); } else if (value.IsApplyPatch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCaller.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCaller.g.cs index ad94bb12f..c84e11b82 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCaller.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCaller.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaDirectToolCallCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaDirectToolCallCaller).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Direct!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDirect(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramToolCallCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramToolCallCaller).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCallerParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCallerParam.g.cs index 118ba9ef9..625e2d306 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCallerParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolCallCallerParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaDirectToolCallCallerParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaDirectToolCallCallerParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Direct!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDirect(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaProgramToolCallCallerParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaProgramToolCallCallerParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolChoiceParam.g.cs index 34dca0071..2406d4cf6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolChoiceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaToolChoiceParam.g.cs @@ -399,55 +399,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolChoiceOptions).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolChoiceMode!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolChoiceMode(), typeInfo); } else if (value.IsAllowedTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolChoiceAllowed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AllowedTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowedTools(), typeInfo); } else if (value.IsHostedTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolChoiceTypes).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HostedTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHostedTool(), typeInfo); } else if (value.IsFunctionTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolChoiceFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionTool(), typeInfo); } else if (value.IsMcpTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolChoiceMCP).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpTool(), typeInfo); } else if (value.IsCustomTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaToolChoiceCustom).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomTool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomTool(), typeInfo); } else if (value.IsSpecificProgrammaticCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificProgrammaticCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpecificProgrammaticCalling(), typeInfo); } else if (value.IsSpecificApplyPatchToolChoice) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaSpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaSpecificApplyPatchParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificApplyPatchToolChoice!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpecificApplyPatchToolChoice(), typeInfo); } else if (value.IsSpecificShellToolChoice) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaSpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaSpecificFunctionShellParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificShellToolChoice!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpecificShellToolChoice(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaWebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaWebSearchToolCallAction.g.cs index 3005469b4..0977d0cb1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaWebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.BetaWebSearchToolCallAction.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchActionSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSearch(), typeInfo); } else if (value.IsOpenPage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchActionOpenPage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenPage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenPage(), typeInfo); } else if (value.IsFindInPage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaWebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaWebSearchActionFind).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FindInPage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFindInPage(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs new file mode 100644 index 000000000..81bb93284 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeNullable.g.cs new file mode 100644 index 000000000..17d0e3e5b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRole.g.cs new file mode 100644 index 000000000..5b1101b3d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionMessageListDataItemRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleNullable.g.cs new file mode 100644 index 000000000..aa5fb3a7e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionMessageListDataItemRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRoleExtensions.ToValueString(value.Value)); + } + } + } +} 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 e8bfb9707..95b486770 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsCustom) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), 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 f74cf7913..f9a73e330 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsRefusal) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), 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 122327557..36b6405cc 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 @@ -95,37 +95,37 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeveloper(), typeInfo); } else if (value.IsSystem) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSystem(), typeInfo); } else if (value.IsUser) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUser(), typeInfo); } else if (value.IsAssistant) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssistant(), typeInfo); } else if (value.IsTool) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTool(), typeInfo); } else if (value.IsFunction) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), 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 39aaeba11..f1d990ab0 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 @@ -100,7 +100,7 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextContentPart(), 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 0b3e7d216..19ea769ce 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 @@ -100,7 +100,7 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextContentPart(), 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 379a195bb..0954fb7b5 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 @@ -230,25 +230,25 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextContentPart(), typeInfo); } else if (value.IsImageContentPart) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageContentPart(), typeInfo); } else if (value.IsAudioContentPart) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioContentPart(), typeInfo); } else if (value.IsFileContentPart) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileContentPart(), 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 e8cb5f05a..1f8d98cba 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 @@ -217,25 +217,25 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolChoiceMode(), typeInfo); } else if (value.IsAllowedTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowedTools(), typeInfo); } else if (value.IsFunctionToolChoice) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolChoice(), typeInfo); } else if (value.IsCustomToolChoice) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolChoice(), 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 01e0c043c..c5c7169d5 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAuto(), typeInfo); } else if (value.IsStatic) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStatic(), 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 501eb7cb5..068d5320c 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 @@ -122,55 +122,55 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClick(), typeInfo); } else if (value.IsDoubleClick) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDoubleClick(), typeInfo); } else if (value.IsDrag) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDrag(), typeInfo); } else if (value.IsKeypress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKeypress(), typeInfo); } else if (value.IsMove) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMove(), typeInfo); } else if (value.IsScreenshot) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickScreenshot(), typeInfo); } else if (value.IsScroll) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickScroll(), typeInfo); } else if (value.IsTypeValue) { 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.TypeValue!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTypeValue(), typeInfo); } else if (value.IsWait) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWait(), 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 f3a3e587a..12720343c 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ComputerToolCallOutput!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickComputerToolCallOutput(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ComputerToolCallOutputResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickComputerToolCallOutputResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 b60d7b8c3..e2089b377 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputContentTypes(), typeInfo); } else if (value.IsOutputContentTypes) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputContentTypes(), 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 7c40895d1..509242969 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 @@ -122,55 +122,55 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsOutputText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsSummaryText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSummaryText(), typeInfo); } else if (value.IsReasoningText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningText(), typeInfo); } else if (value.IsRefusal) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); } else if (value.IsInputImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsComputerScreenshot) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerScreenshot(), typeInfo); } else if (value.IsInputFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), 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 aa5d6e750..aa7282d30 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 @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInitialTextContentPartParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInitialTextContentPartParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsOutputText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem5.g.cs index 0ad450902..8832c8347 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem5.g.cs @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsQuotedText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuotedText(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem6.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem6.g.cs index fc3fa1724..a5006e629 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem6.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem6.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsEncryptedContent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaEncryptedContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaEncryptedContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EncryptedContent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEncryptedContent(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem7.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem7.g.cs index 96475393c..5f8531a8f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem7.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem7.g.cs @@ -131,61 +131,61 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsOutputText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsSummaryText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaSummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaSummaryTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SummaryText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSummaryText(), typeInfo); } else if (value.IsReasoningText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningText(), typeInfo); } else if (value.IsRefusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaRefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaRefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsComputerScreenshot) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerScreenshotContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerScreenshot!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerScreenshot(), typeInfo); } else if (value.IsInputFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } else if (value.IsEncryptedContent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaEncryptedContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaEncryptedContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EncryptedContent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEncryptedContent(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem8.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem8.g.cs index 014e1d759..803ef5eb1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem8.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem8.g.cs @@ -131,61 +131,61 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsOutputText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaOutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaOutputTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsSummaryText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaSummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaSummaryTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SummaryText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSummaryText(), typeInfo); } else if (value.IsReasoningText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaReasoningTextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningText(), typeInfo); } else if (value.IsRefusal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaRefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaRefusalContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Refusal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsComputerScreenshot) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComputerScreenshotContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerScreenshot!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerScreenshot(), typeInfo); } else if (value.IsInputFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputFileContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } else if (value.IsEncryptedContent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaEncryptedContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaEncryptedContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EncryptedContent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEncryptedContent(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item.g.cs index b42d6a285..f992c415e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item.g.cs @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item2.g.cs index e18c011c5..69e37bff8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentVariant1Item2.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputFileContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), 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 765e641e5..fea00d119 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 @@ -1297,175 +1297,175 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFunctionToolCallResource) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCallResource(), typeInfo); } else if (value.IsFunctionToolCallOutputResource) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCallOutputResource(), typeInfo); } else if (value.IsFileSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsWebSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsImageGenerationCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsComputerCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallOutputResource) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallOutputResource(), typeInfo); } else if (value.IsToolSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsConfigurationUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseConfigurationUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseConfigurationUpdate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConfigurationUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConfigurationUpdate(), typeInfo); } else if (value.IsReasoning) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Program), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Program).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsCompaction) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsCodeInterpreterCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsCustomToolCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), typeInfo); } else if (value.IsCustomToolCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), 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 c53db142a..9624a4849 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 @@ -127,13 +127,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationId(), typeInfo); } else if (value.IsConversationObject) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationObject(), 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 d39ecefa4..daea48ab9 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ModelResponseProperties!.Value, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickModelResponseProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CreateChatCompletionRequestVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCreateChatCompletionRequestVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 07ec73814..74f2058da 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 @@ -131,13 +131,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSimpleInputMessage(), typeInfo); } else if (value.IsEvalMessageObject) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEvalMessageObject(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateMcpOauthTokenEndpointAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateMcpOauthTokenEndpointAuthParam.g.cs index f10aceb2a..0c84e662a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateMcpOauthTokenEndpointAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateMcpOauthTokenEndpointAuthParam.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.None!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNone(), typeInfo); } else if (value.IsClientSecretBasic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientSecretBasic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClientSecretBasic(), typeInfo); } else if (value.IsClientSecretPost) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientSecretPost!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClientSecretPost(), 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 078c056fd..c6a610dce 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ModelResponseProperties!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickModelResponseProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CreateModelResponsePropertiesVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCreateModelResponsePropertiesVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 caa0845a5..8bb767053 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 @@ -86,7 +86,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ModelProperties!.Value, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickModelProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -104,7 +104,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Properties!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickProperties(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -122,7 +122,7 @@ public override void Write( { 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}"); - var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CreateResponseVariant3!, typeInfo); + var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCreateResponseVariant3(), typeInfo); if (__element2.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSessionInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSessionInputParam.g.cs index a7a331117..0b374d8b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSessionInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSessionInputParam.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.CreateSessionInputParamVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateSessionInputParamVariant1(), typeInfo); } else if (value.IsCreateSessionInputParamVariant2) { 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.CreateSessionInputParamVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateSessionInputParamVariant2(), 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 ecee44365..9f7d83cec 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechAudioDelta(), typeInfo); } else if (value.IsSpeechAudioDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechAudioDone(), 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 1c896d7f8..66ac4c613 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTokens(), typeInfo); } else if (value.IsDuration) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDuration(), 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 44eee2ba8..775e300de 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTranscriptTextSegment(), typeInfo); } else if (value.IsTranscriptTextDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTranscriptTextDelta(), typeInfo); } else if (value.IsTranscriptTextDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTranscriptTextDone(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateVaultCredentialAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateVaultCredentialAuthParam.g.cs index 3cf0c40a6..b5313f18d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateVaultCredentialAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateVaultCredentialAuthParam.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpOauth!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpOauth(), typeInfo); } else if (value.IsStaticBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StaticBearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStaticBearer(), typeInfo); } else if (value.IsEnvironmentVariable) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EnvironmentVariable!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnvironmentVariable(), 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 e464512cf..a37120073 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomToolCallOutput!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomToolCallOutput(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomToolCallOutputResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomToolCallOutputResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 17305a4e1..e9d26e3ac 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomToolCall!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomToolCall(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomToolCallResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomToolCallResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant1.g.cs index dbe873386..94edcdedd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant1.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveClientDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveClientDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClient(), typeInfo); } else if (value.IsResponses) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant12.g.cs index 7f8d7fead..522af3696 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant12.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveClientDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveClientDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClient(), typeInfo); } else if (value.IsResponses) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant13.g.cs index c6b5cb2f3..a4deba96b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant13.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveClientDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveClientDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClient(), typeInfo); } else if (value.IsResponses) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant14.g.cs index ad144facc..f81827916 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DelegationVariant14.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveClientDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveClientDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClient(), typeInfo); } else if (value.IsResponses) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponsesDelegationParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObject.g.cs new file mode 100644 index 000000000..6574fbec5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DeleteContainerFileResponseObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DeleteContainerFileResponseObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DeleteContainerFileResponseObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DeleteContainerFileResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DeleteContainerFileResponseObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DeleteContainerFileResponseObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DeleteContainerFileResponseObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectNullable.g.cs new file mode 100644 index 000000000..87f8b8fcc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DeleteContainerFileResponseObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DeleteContainerFileResponseObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DeleteContainerFileResponseObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DeleteContainerFileResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DeleteContainerFileResponseObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DeleteContainerFileResponseObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DeleteContainerFileResponseObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObject.g.cs new file mode 100644 index 000000000..d7a031e6b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DeleteContainerResponseObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DeleteContainerResponseObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DeleteContainerResponseObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DeleteContainerResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DeleteContainerResponseObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DeleteContainerResponseObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DeleteContainerResponseObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectNullable.g.cs new file mode 100644 index 000000000..b4a6cea05 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DeleteContainerResponseObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DeleteContainerResponseObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DeleteContainerResponseObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DeleteContainerResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DeleteContainerResponseObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DeleteContainerResponseObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DeleteContainerResponseObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObject.g.cs new file mode 100644 index 000000000..08aad7f43 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DeleteResponseResponseObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DeleteResponseResponseObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DeleteResponseResponseObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DeleteResponseResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DeleteResponseResponseObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DeleteResponseResponseObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.DeleteResponseResponseObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectNullable.g.cs new file mode 100644 index 000000000..b3937d0f3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class DeleteResponseResponseObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.DeleteResponseResponseObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.DeleteResponseResponseObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.DeleteResponseResponseObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.DeleteResponseResponseObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.DeleteResponseResponseObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.DeleteResponseResponseObjectExtensions.ToValueString(value.Value)); + } + } + } +} 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 471733117..39b5f491a 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 @@ -54,7 +54,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Resource!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResource(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentParam.g.cs index d3a15f490..13e813122 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentParam.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EnvironmentParamNone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EnvironmentParamNone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.None!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNone(), typeInfo); } else if (value.IsOpenaiHosted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenaiHosted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenaiHosted(), typeInfo); } else if (value.IsSelfHosted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EnvironmentParamSelfHosted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EnvironmentParamSelfHosted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SelfHosted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSelfHosted(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentResource.g.cs index 84595912b..987b5dc93 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentResource.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EnvironmentResourceNone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EnvironmentResourceNone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.None!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNone(), typeInfo); } else if (value.IsOpenaiHosted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenaiHosted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenaiHosted(), typeInfo); } else if (value.IsSelfHosted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EnvironmentResourceSelfHosted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EnvironmentResourceSelfHosted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SelfHosted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSelfHosted(), 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 41ea6797e..485b920bd 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerAuto(), typeInfo); } else if (value.IsLocal) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocal(), typeInfo); } else if (value.IsContainerReference) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerReference(), 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 35d117824..6aed6a6ef 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocal(), typeInfo); } else if (value.IsContainerReference) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerReference(), 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 ea6b494a7..0db4a4fb0 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocal(), typeInfo); } else if (value.IsContainerReference) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerReference(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant14.g.cs index 577a4d727..6ec513ffd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant14.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerAutoParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerAuto!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerAuto(), typeInfo); } else if (value.IsLocal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocal(), typeInfo); } else if (value.IsContainerReference) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerReference(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant15.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant15.g.cs index 18096927d..02a52e324 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant15.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant15.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocal(), typeInfo); } else if (value.IsContainerReference) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerReference(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant16.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant16.g.cs index f7b1d3d51..9f6eb43f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant16.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant16.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaLocalEnvironmentResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Local!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocal(), typeInfo); } else if (value.IsContainerReference) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerReferenceResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContainerReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContainerReference(), 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 d2a0f27f4..8c7f025b8 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 @@ -54,7 +54,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.LabelModelGrader!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickLabelModelGrader(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 83d4b16f5..d4eebb89e 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PythonGrader!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPythonGrader(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.EvalGraderPythonVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickEvalGraderPythonVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 67d0f9197..869943d16 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ScoreModelGrader!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickScoreModelGrader(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.EvalGraderScoreModelVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickEvalGraderScoreModelVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 1674fb2ba..f9949e773 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 @@ -54,7 +54,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.StringCheckGrader!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickStringCheckGrader(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 e4265b551..5856f6bac 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TextSimilarityGrader!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTextSimilarityGrader(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.EvalGraderTextSimilarityVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickEvalGraderTextSimilarityVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 4ed9cbbcb..740e23c1e 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEvalContentItem(), typeInfo); } else if (value.IsAnArrayOfInputTextOutputTextInputImageAndInputAudio) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnArrayOfInputTextOutputTextInputImageAndInputAudio(), 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 1396e8d9c..a52c135bd 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 @@ -257,31 +257,31 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextInput(), typeInfo); } else if (value.IsInputText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsOutputText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsInputImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputAudio) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudio(), 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 cfb23fb1b..149ea5510 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 @@ -131,13 +131,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComparisonFilter(), typeInfo); } else if (value.IsCompoundFilter) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompoundFilter(), 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 581d657b4..16ea0d2eb 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 @@ -32,13 +32,15 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J if (__jsonProps.Contains("type")) __score0++; if (__jsonProps.Contains("value")) __score0++; var __score1 = 0; + if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.ComparisonFilter? comparisonFilter = default; - object? compoundFilterVariant2 = default; + global::tryAGI.OpenAI.CompoundFilter? compoundFilter = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -60,9 +62,9 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { - 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); + 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 +75,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J } } - if (comparisonFilter == null && compoundFilterVariant2 == null) + if (comparisonFilter == null && compoundFilter == null) { try { @@ -90,14 +92,14 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J } } - if (comparisonFilter == null && compoundFilterVariant2 == null) + if (comparisonFilter == null && compoundFilter == null) { try { - 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); + 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) { @@ -110,7 +112,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J var __value = new global::tryAGI.OpenAI.FiltersItem( comparisonFilter, - compoundFilterVariant2 + compoundFilter ); return __value; @@ -129,13 +131,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComparisonFilter(), typeInfo); } - else if (value.IsCompoundFilterVariant2) + else if (value.IsCompoundFilter) { - 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); + 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.PickCompoundFilter(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem2.g.cs index 73f9c18e5..81ac333b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem2.g.cs @@ -32,13 +32,15 @@ public class FiltersItem2JsonConverter : global::System.Text.Json.Serialization. if (__jsonProps.Contains("type")) __score0++; if (__jsonProps.Contains("value")) __score0++; var __score1 = 0; + if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.BetaComparisonFilter? comparisonFilter = default; - object? betaCompoundFilterVariant2 = default; + global::tryAGI.OpenAI.BetaCompoundFilter? compoundFilter = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -60,9 +62,9 @@ public class FiltersItem2JsonConverter : global::System.Text.Json.Serialization. { try { - 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}"); - betaCompoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompoundFilter).Name}"); + compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,7 +75,7 @@ public class FiltersItem2JsonConverter : global::System.Text.Json.Serialization. } } - if (comparisonFilter == null && betaCompoundFilterVariant2 == null) + if (comparisonFilter == null && compoundFilter == null) { try { @@ -90,14 +92,14 @@ public class FiltersItem2JsonConverter : global::System.Text.Json.Serialization. } } - if (comparisonFilter == null && betaCompoundFilterVariant2 == null) + if (comparisonFilter == null && compoundFilter == null) { try { - 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}"); - betaCompoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompoundFilter).Name}"); + compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +112,7 @@ public class FiltersItem2JsonConverter : global::System.Text.Json.Serialization. var __value = new global::tryAGI.OpenAI.FiltersItem2( comparisonFilter, - betaCompoundFilterVariant2 + compoundFilter ); return __value; @@ -129,13 +131,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaComparisonFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComparisonFilter(), typeInfo); } - else if (value.IsBetaCompoundFilterVariant2) + else if (value.IsCompoundFilter) { - 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.BetaCompoundFilterVariant2!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCompoundFilter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompoundFilter(), 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 53ba15312..6ddf1ea21 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AssistantMessage1!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAssistantMessage1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AssistantMessage2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAssistantMessage2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 2252103c5..155a47658 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsGrammar) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGrammar(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format3.g.cs index b6f24bdf0..c4d1b6328 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format3.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomTextFormatParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsGrammar) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomGrammarFormatParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grammar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGrammar(), 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 50a2c5f26..e06c8a334 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputParam.g.cs index f7388dad8..8b0f989df 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputParam.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.FunctionCallOutputParamVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutputParamVariant1(), typeInfo); } else if (value.IsFunctionCallOutputParamVariant2) { 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.FunctionCallOutputParamVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutputParamVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputResource.g.cs index 0d681ea29..d8aed40d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputResource.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.FunctionCallOutputResourceVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutputResourceVariant1(), typeInfo); } else if (value.IsFunctionCallOutputResourceVariant2) { 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.FunctionCallOutputResourceVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutputResourceVariant2(), 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 75aa46ca7..f50854fe2 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTimeout(), typeInfo); } else if (value.IsExit) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickExit(), 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 5ff4ccf30..abae67653 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.FunctionToolCallOutput!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickFunctionToolCallOutput(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.FunctionToolCallOutputResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickFunctionToolCallOutputResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 9bb46cbed..36ed566b5 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.FunctionToolCall!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickFunctionToolCall(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.FunctionToolCallResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickFunctionToolCallResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileParam.g.cs index b720b40be..178cda29d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileId!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileId(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedEnvironmentFileParamInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedEnvironmentFileParamInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileResource.g.cs index 7112c42c7..67509d15d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedEnvironmentFileResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileId!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileId(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginParam.g.cs index 5764dd249..456e12f8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginParam.g.cs @@ -50,7 +50,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedPluginParamInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedPluginParamInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginResource.g.cs index a6733c2a6..cc9f6aa80 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedPluginResource.g.cs @@ -50,7 +50,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedPluginResourceInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedPluginResourceInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillParam.g.cs index f21c3173b..29e8351c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedSkillParamSkillReference), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedSkillParamSkillReference).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSkillReference(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedSkillParamInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedSkillParamInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillResource.g.cs index 640a3b120..baa71c990 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedSkillResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedSkillResourceSkillReference), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedSkillResourceSkillReference).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSkillReference(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedSkillResourceInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedSkillResourceInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateFileResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateFileResource.g.cs index ac28c50b8..0d54d6c05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateFileResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateFileResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedTemplateFileResourceFileId), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedTemplateFileResourceFileId).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileId!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileId(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedTemplateFileResourceInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedTemplateFileResourceInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateSkillResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateSkillResource.g.cs index bc2a759ec..51465883c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateSkillResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.HostedTemplateSkillResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSkillReference(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceInline), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HostedTemplateSkillResourceInline).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), 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 8bfd03c54..ad86c8680 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageEditPartialImage(), typeInfo); } else if (value.IsImageEditCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageEditCompleted(), 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 487c019e9..c8b719658 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationPartialImage(), typeInfo); } else if (value.IsImageGenerationCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCompleted(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InlineCapabilitySourceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InlineCapabilitySourceParam.g.cs index c07221d41..d73a7026c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InlineCapabilitySourceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InlineCapabilitySourceParam.g.cs @@ -50,7 +50,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base64!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBase64(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input.g.cs index 7c7da4019..553d88edd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionModerationResults), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionModerationResults).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationResults!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModerationResults(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionModerationError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionModerationError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input4.g.cs index b87b55193..0790c8cf8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input4.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationResultBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationResultBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModerationResult(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationErrorBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationErrorBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input5.g.cs index c83d43e5e..6a00e4535 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Input5.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModerationResultBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModerationResultBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModerationResult(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModerationErrorBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModerationErrorBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), 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 6aae74744..13c112631 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentParam.g.cs index eacd3c808..4cd9b45cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContentParamInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContentParamInputText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContentParamInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContentParamInputImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentResource.g.cs index d4e849a0b..90ce3e7ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContentResourceInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContentResourceInputText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContentResourceInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputContentResourceInputImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), 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 a20e550d2..d780fb2e4 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 @@ -292,37 +292,37 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsItem) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickItem(), typeInfo); } else if (value.IsCompactionTrigger) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionTriggerItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionTriggerItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompactionTrigger!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompactionTrigger(), typeInfo); } else if (value.IsItemReference) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickItemReference(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramOutputItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), 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 11d3ce801..3ce6edff6 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.InputMessage!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickInputMessage(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.InputMessageResourceVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickInputMessageResourceVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 a05f62510..f3cbc65e1 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextInput(), typeInfo); } else if (value.IsInputItemList) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputItemList(), 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 1699944e4..e40471a55 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 @@ -293,169 +293,169 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage1(), typeInfo); } else if (value.IsMessage2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage2(), typeInfo); } else if (value.IsFileSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsComputerCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCallOutput(), typeInfo); } else if (value.IsWebSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsFunctionCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsToolSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdditionalToolsItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdditionalToolsItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsConfigurationUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConfigurationUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConfigurationUpdate(), typeInfo); } else if (value.IsReasoning) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsCompaction) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsImageGenerationCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsCodeInterpreterCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsCustomToolCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), typeInfo); } else if (value.IsCustomToolCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), 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 758f4543e..72f42c1be 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 @@ -1273,169 +1273,169 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Program), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Program).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsFunctionCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsToolSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsFunctionCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsFileSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsWebSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsImageGenerationCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsComputerCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallOutputResource) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallOutputResource(), typeInfo); } else if (value.IsReasoning) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsCompaction) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsCodeInterpreterCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsCustomToolCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), typeInfo); } else if (value.IsCustomToolCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), 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 2bf5a62e5..64b608951 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 @@ -1321,181 +1321,181 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputMessage(), typeInfo); } else if (value.IsMessage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFileSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsComputerCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallOutput(), typeInfo); } else if (value.IsWebSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsFunctionToolCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCall(), typeInfo); } else if (value.IsFunctionToolCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCallOutput(), typeInfo); } else if (value.IsToolSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsConfigurationUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseConfigurationUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseConfigurationUpdate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConfigurationUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConfigurationUpdate(), typeInfo); } else if (value.IsReasoning) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Program), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Program).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsCompaction) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsImageGenerationCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsCodeInterpreterCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpListTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsResponseCustomToolCallItem) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallItem(), typeInfo); } else if (value.IsResponseCustomToolCallOutputItem) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallOutputItem(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveAudioFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveAudioFormat.g.cs index a9b115906..b6e779a0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveAudioFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveAudioFormat.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioPcm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioPcm(), typeInfo); } else if (value.IsAudioPcmu) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioPcmu!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioPcmu(), typeInfo); } else if (value.IsAudioPcma) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioPcma!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioPcma(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveClientEvent.g.cs index 00f653a79..b4d213fbb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveClientEvent.g.cs @@ -140,67 +140,67 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionStartEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionStartEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionStart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionStart(), typeInfo); } else if (value.IsSessionUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUpdateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUpdateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdate(), typeInfo); } else if (value.IsSessionInputAudioAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioAppendEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioAppendEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioAppend(), typeInfo); } else if (value.IsSessionInputAudioMute) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioMuteParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioMuteParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioMute!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioMute(), typeInfo); } else if (value.IsSessionInputAudioUnmute) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuteParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuteParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioUnmute!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioUnmute(), typeInfo); } else if (value.IsSessionInstructionsAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInstructionsAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInstructionsAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInstructionsAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInstructionsAppend(), typeInfo); } else if (value.IsSessionThinkingAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveThinkingAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveThinkingAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionThinkingAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionThinkingAppend(), typeInfo); } else if (value.IsSessionCommentaryAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCommentaryAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCommentaryAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCommentaryAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCommentaryAppend(), typeInfo); } else if (value.IsResponseItemCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseItemCreateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseItemCreateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseItemCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseItemCreate(), typeInfo); } else if (value.IsResponseCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseCreateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseCreateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreate(), typeInfo); } else if (value.IsSessionClose) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionCloseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionCloseParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClose!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClose(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveForkClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveForkClientEvent.g.cs index c156e94c1..69d1ecf7f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveForkClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveForkClientEvent.g.cs @@ -140,67 +140,67 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveForkSessionStartEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveForkSessionStartEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionStart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionStart(), typeInfo); } else if (value.IsSessionUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUpdateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUpdateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdate(), typeInfo); } else if (value.IsSessionInputAudioAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioAppendEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioAppendEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioAppend(), typeInfo); } else if (value.IsSessionInputAudioMute) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioMuteParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioMuteParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioMute!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioMute(), typeInfo); } else if (value.IsSessionInputAudioUnmute) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuteParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuteParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioUnmute!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioUnmute(), typeInfo); } else if (value.IsSessionInstructionsAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInstructionsAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInstructionsAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInstructionsAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInstructionsAppend(), typeInfo); } else if (value.IsSessionThinkingAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveThinkingAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveThinkingAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionThinkingAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionThinkingAppend(), typeInfo); } else if (value.IsSessionCommentaryAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCommentaryAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCommentaryAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCommentaryAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCommentaryAppend(), typeInfo); } else if (value.IsResponseItemCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseItemCreateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseItemCreateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseItemCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseItemCreate(), typeInfo); } else if (value.IsResponseCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseCreateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseCreateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreate(), typeInfo); } else if (value.IsSessionClose) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionCloseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionCloseParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClose!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClose(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveInitialItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveInitialItem.g.cs index 70919a786..d478e4f54 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveInitialItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveInitialItem.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Developer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeveloper(), typeInfo); } else if (value.IsUser) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInitialUserMessageItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInitialUserMessageItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.User!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUser(), typeInfo); } else if (value.IsAssistant) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssistant(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent.g.cs index de6ce7861..620588636 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent.g.cs @@ -54,7 +54,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveServerEvent2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveServerEvent2).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Event2!.Value, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickEvent2(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent2.g.cs index 875658d80..21f5dba84 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveServerEvent2.g.cs @@ -239,133 +239,133 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionStarted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionStarted(), typeInfo); } else if (value.IsSessionUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdated(), typeInfo); } else if (value.IsSessionInputAudioMuted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioMuted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioMuted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioMuted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioMuted(), typeInfo); } else if (value.IsSessionInputAudioUnmuted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioUnmuted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioUnmuted(), typeInfo); } else if (value.IsSessionInstructionsAppended) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInstructionsAppended), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInstructionsAppended).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInstructionsAppended!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInstructionsAppended(), typeInfo); } else if (value.IsSessionThinkingAppended) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveThinkingAppended), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveThinkingAppended).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionThinkingAppended!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionThinkingAppended(), typeInfo); } else if (value.IsSessionCommentaryAppended) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCommentaryAppended), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCommentaryAppended).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCommentaryAppended!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCommentaryAppended(), typeInfo); } else if (value.IsSessionInputAudioAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioAppend).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioAppend(), typeInfo); } else if (value.IsSessionOutputAudioDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveOutputAudioDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionOutputAudioDelta(), typeInfo); } else if (value.IsSessionInputTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputTranscriptDelta(), typeInfo); } else if (value.IsSessionOutputTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveOutputTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionOutputTranscriptDelta(), typeInfo); } else if (value.IsSessionDelegationCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveDelegationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveDelegationCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionDelegationCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionDelegationCreated(), typeInfo); } else if (value.IsResponseEvent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseEvent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseEvent(), typeInfo); } else if (value.IsSessionUsageUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUsageUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUsageUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUsageUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUsageUpdated(), typeInfo); } else if (value.IsSessionClosed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionClosed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClosed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClosed(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsInfo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInfoEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInfoEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Info!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInfo(), typeInfo); } else if (value.IsTransportDtmfReceived) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveTransportDTMFReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveTransportDTMFReceived).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransportDtmfReceived!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransportDtmfReceived(), typeInfo); } else if (value.IsTransportDtmfSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveTransportDTMFSend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveTransportDTMFSend).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransportDtmfSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransportDtmfSend(), typeInfo); } else if (value.IsTransportRinging) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveTransportRinging), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveTransportRinging).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransportRinging!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransportRinging(), typeInfo); } else if (value.IsTransportAnswered) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveTransportAnswered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveTransportAnswered).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransportAnswered!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransportAnswered(), typeInfo); } else if (value.IsTransportFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveTransportFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveTransportFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransportFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransportFailed(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandClientEvent.g.cs index bbb947e95..af1fac4c7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandClientEvent.g.cs @@ -122,55 +122,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUpdateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUpdateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdate(), typeInfo); } else if (value.IsSessionInputAudioMute) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioMuteParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioMuteParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioMute!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioMute(), typeInfo); } else if (value.IsSessionInputAudioUnmute) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuteParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuteParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioUnmute!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioUnmute(), typeInfo); } else if (value.IsSessionInstructionsAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInstructionsAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInstructionsAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInstructionsAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInstructionsAppend(), typeInfo); } else if (value.IsSessionThinkingAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveThinkingAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveThinkingAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionThinkingAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionThinkingAppend(), typeInfo); } else if (value.IsSessionCommentaryAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCommentaryAppendParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCommentaryAppendParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCommentaryAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCommentaryAppend(), typeInfo); } else if (value.IsResponseItemCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseItemCreateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseItemCreateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseItemCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseItemCreate(), typeInfo); } else if (value.IsResponseCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseCreateParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseCreateParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreate(), typeInfo); } else if (value.IsSessionClose) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionCloseParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionCloseParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClose!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClose(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandServerEvent.g.cs index f72906df9..1a76fc0a1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.LiveSidebandServerEvent.g.cs @@ -176,91 +176,91 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionStarted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionStarted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionStarted(), typeInfo); } else if (value.IsSessionUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdated(), typeInfo); } else if (value.IsSessionInputAudioMuted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioMuted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioMuted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioMuted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioMuted(), typeInfo); } else if (value.IsSessionInputAudioUnmuted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputAudioUnmuted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioUnmuted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioUnmuted(), typeInfo); } else if (value.IsSessionInstructionsAppended) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInstructionsAppended), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInstructionsAppended).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInstructionsAppended!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInstructionsAppended(), typeInfo); } else if (value.IsSessionThinkingAppended) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveThinkingAppended), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveThinkingAppended).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionThinkingAppended!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionThinkingAppended(), typeInfo); } else if (value.IsSessionCommentaryAppended) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveCommentaryAppended), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveCommentaryAppended).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCommentaryAppended!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCommentaryAppended(), typeInfo); } else if (value.IsSessionInputTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInputTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputTranscriptDelta(), typeInfo); } else if (value.IsSessionOutputTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveOutputTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionOutputTranscriptDelta(), typeInfo); } else if (value.IsSessionDelegationCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveDelegationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveDelegationCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionDelegationCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionDelegationCreated(), typeInfo); } else if (value.IsResponseEvent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveResponseEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveResponseEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseEvent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseEvent(), typeInfo); } else if (value.IsSessionUsageUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionUsageUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionUsageUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUsageUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUsageUpdated(), typeInfo); } else if (value.IsSessionClosed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveSessionClosed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClosed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClosed(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsInfo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveInfoEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveInfoEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Info!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInfo(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MCPToolCallError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MCPToolCallError.g.cs index 70487b260..f0ef1c0ba 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MCPToolCallError.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MCPToolCallError.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPProtocolError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPProtocolError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpProtocolError!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpProtocolError(), typeInfo); } else if (value.IsMcpToolExecutionError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolExecutionError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolExecutionError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpToolExecutionError!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpToolExecutionError(), typeInfo); } else if (value.IsHttpError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.HTTPError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.HTTPError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HttpError!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttpError(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpOauthTokenEndpointAuthResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpOauthTokenEndpointAuthResource.g.cs index 00e44e2fd..98d8d1c6a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpOauthTokenEndpointAuthResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpOauthTokenEndpointAuthResource.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.None!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNone(), typeInfo); } else if (value.IsClientSecretBasic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientSecretBasic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClientSecretBasic(), typeInfo); } else if (value.IsClientSecretPost) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientSecretPost!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClientSecretPost(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportConfigParam.g.cs index 88dc3016f..8d2068cb3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportConfigParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpTransportConfigParamHttp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpTransportConfigParamHttp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttp(), typeInfo); } else if (value.IsStdio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpTransportConfigParamStdio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpTransportConfigParamStdio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Stdio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStdio(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportResource.g.cs index 7c315b224..c7a4ba0f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.McpTransportResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpTransportResourceHttp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpTransportResourceHttp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttp(), typeInfo); } else if (value.IsStdio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpTransportResourceStdio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpTransportResourceStdio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Stdio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStdio(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentResource.g.cs index 82fcdfc85..fa24cff34 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentResource.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentResourceInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentResourceInputText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentResourceInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentResourceInputImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsOutputText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentResourceOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageContentResourceOutputText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OutputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), 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 f755127df..c3c5a8dc1 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 @@ -313,31 +313,31 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessageStreamEventVariant1(), typeInfo); } else if (value.IsMessageStreamEventVariant2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessageStreamEventVariant2(), typeInfo); } else if (value.IsMessageStreamEventVariant3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessageStreamEventVariant3(), typeInfo); } else if (value.IsMessageStreamEventVariant4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessageStreamEventVariant4(), typeInfo); } else if (value.IsMessageStreamEventVariant5) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessageStreamEventVariant5(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MisalignmentErrorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MisalignmentErrorType.g.cs index ed036d1af..34c88d731 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MisalignmentErrorType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MisalignmentErrorType.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.MisalignmentErrorTypeVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMisalignmentErrorTypeVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MisalignmentErrorTypeEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), 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 14fbadc33..b14399205 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShared(), typeInfo); } else if (value.IsResponses) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), 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 97e95fe58..62257c5f7 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 @@ -198,19 +198,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponses(), typeInfo); } else if (value.IsModelIdsCompactionVariant2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModelIdsCompactionVariant2(), typeInfo); } else if (value.IsModelIdsCompactionVariant3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModelIdsCompactionVariant3(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsLive.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsLive.g.cs index 9c73b71b7..9ae6cfce2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsLive.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsLive.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.ModelIdsLiveVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModelIdsLiveVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), 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 3fac9e2a1..27fd64884 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShared(), typeInfo); } else if (value.IsResponsesOnlyModel) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponsesOnlyModel(), 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 a26e40fa8..b3c516075 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModelIdsSharedVariant1(), typeInfo); } else if (value.IsEnum) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), 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 228523768..cc8816f59 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); } else if (value.IsAllowlist) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), 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 4faf49beb..eb2daef53 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); } else if (value.IsAllowlist) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), 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 ac0dedad1..abf7f4fbd 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); } else if (value.IsAllowlist) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy4.g.cs index d049cb18b..f3dc97ea7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy4.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); } else if (value.IsAllowlist) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy5.g.cs index 33d9bc950..87e18023d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy5.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); } else if (value.IsAllowlist) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), 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 53689bfc1..c3d93a659 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 @@ -148,13 +148,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), 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 971259c34..586cdfc62 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 @@ -197,19 +197,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), 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 f52af7002..7bddcf9c5 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 @@ -246,25 +246,25 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), 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 1e65c8d8d..c05cd5f7f 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 @@ -295,31 +295,31 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), 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 89bb68503..759f680ee 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateFile(), typeInfo); } else if (value.IsDeleteFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeleteFile(), typeInfo); } else if (value.IsUpdateFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUpdateFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation2.g.cs index f1243b674..086294a8e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation2.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateFile(), typeInfo); } else if (value.IsDeleteFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeleteFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeleteFile(), typeInfo); } else if (value.IsUpdateFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUpdateFile(), 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 2f5c4125a..ee3a0e129 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTimeout(), typeInfo); } else if (value.IsExit) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickExit(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome2.g.cs index 43f385cff..ebba53f18 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Timeout!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTimeout(), typeInfo); } else if (value.IsExit) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Exit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickExit(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output.g.cs index 0ceb021f8..2ce1078e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionModerationResults), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionModerationResults).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationResults!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModerationResults(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionModerationError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionModerationError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output5.g.cs index a04100ccb..dad480681 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output5.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationResultBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationResultBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModerationResult(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModerationErrorBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModerationErrorBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output9.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output9.g.cs index 6d9ea22e7..bc53e29a0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output9.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Output9.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModerationResultBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModerationResultBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModerationResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModerationResult(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaModerationErrorBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaModerationErrorBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), 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 9e336bec8..e813323f2 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsRefusal) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), typeInfo); } else if (value.IsReasoningText) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningText(), 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 a89d206d4..2a1bd5dce 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 @@ -1260,169 +1260,169 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFileSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsFunctionCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionToolCallResource) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionToolCallResource(), typeInfo); } else if (value.IsWebSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsComputerCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCall(), typeInfo); } else if (value.IsComputerToolCallResource) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerToolCallResource(), typeInfo); } else if (value.IsReasoning) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Program), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Program).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } else if (value.IsProgramOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgramOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgramOutput(), typeInfo); } else if (value.IsToolSearchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchCall(), typeInfo); } else if (value.IsToolSearchOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsAdditionalTools) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdditionalTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdditionalTools).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AdditionalTools!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAdditionalTools(), typeInfo); } else if (value.IsCompaction) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompaction(), typeInfo); } else if (value.IsImageGenerationCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGenerationCall(), typeInfo); } else if (value.IsCodeInterpreterCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreterCall(), typeInfo); } else if (value.IsLocalShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCall(), typeInfo); } else if (value.IsLocalShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShellCallOutput(), typeInfo); } else if (value.IsShellCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCall(), typeInfo); } else if (value.IsShellCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCall(), typeInfo); } else if (value.IsApplyPatchCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsMcpCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsMcpListTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpApprovalRequest) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), typeInfo); } else if (value.IsMcpApprovalResponse) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsCustomToolCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCall(), typeInfo); } else if (value.IsResponseCustomToolCallOutputItem) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallOutputItem(), 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 ca5da9696..c7227a608 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputText(), typeInfo); } else if (value.IsRefusal) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRefusal(), 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 bbcf045c1..7326c6ab7 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item2.g.cs index d0c820ab4..7b654b867 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item2.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputTextContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputText!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputText(), typeInfo); } else if (value.IsInputImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputImage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputImage(), typeInfo); } else if (value.IsInputFile) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInputFileContentParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputFile!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputFile(), 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 f87164850..daa03dbf7 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLogs(), typeInfo); } else if (value.IsImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item2.g.cs index 162ab8e2d..1bb9cb7e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Logs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLogs(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolConfigParam.g.cs index b2898dab6..e9bb27923 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolConfigParam.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); } else if (value.IsProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgrammaticToolCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolResource.g.cs index 6d3791f42..ed1c617a8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedAgentToolResource.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceFunction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); } else if (value.IsProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgrammaticToolCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceMcp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceMcp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportConfigParam.g.cs index 986200531..e1d6ff366 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportConfigParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttp(), typeInfo); } else if (value.IsStdio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Stdio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStdio(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportResource.g.cs index d15b3536a..c95c0f1e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersistedMcpTransportResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Http!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttp(), typeInfo); } else if (value.IsStdio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Stdio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStdio(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersonalityEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersonalityEnum.g.cs index e9ff158d0..861fd0b0a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersonalityEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PersonalityEnum.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.PersonalityEnumVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPersonalityEnumVariant1(), typeInfo); } else if (value.IsPersonalityEnumEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PersonalityEnumEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PersonalityEnumEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PersonalityEnumEnum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPersonalityEnumEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PromptCacheDiagnostics.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PromptCacheDiagnostics.g.cs index 359ea7600..4931d8d70 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PromptCacheDiagnostics.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.PromptCacheDiagnostics.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CacheMiss!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCacheMiss(), typeInfo); } else if (value.IsCacheHit) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CacheHit!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCacheHit(), typeInfo); } else if (value.IsComparisonResponseNotFound) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonResponseNotFound!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComparisonResponseNotFound(), typeInfo); } else if (value.IsUnavailable) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Unavailable!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUnavailable(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider.g.cs index c25c4db8c..38dae7faf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Aws!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAws(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider2.g.cs index d442b095b..7fe4507a1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider2.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Aws!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAws(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider3.g.cs index 71c324a3c..472b5756e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Provider3.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Aws!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAws(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), 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 243052e72..d543c17c4 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 @@ -167,19 +167,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPcmAudioFormat(), typeInfo); } else if (value.IsPcmuAudioFormat) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPcmuAudioFormat(), typeInfo); } else if (value.IsPcmaAudioFormat) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPcmaAudioFormat(), 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 d72a67453..21abf0f62 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 @@ -140,67 +140,67 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemCreate(), typeInfo); } else if (value.IsConversationItemDelete) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemDelete(), typeInfo); } else if (value.IsConversationItemRetrieve) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemRetrieve(), typeInfo); } else if (value.IsConversationItemTruncate) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemTruncate(), typeInfo); } else if (value.IsInputAudioBufferAppend) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferAppend(), typeInfo); } else if (value.IsInputAudioBufferClear) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferClear(), typeInfo); } else if (value.IsOutputAudioBufferClear) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferClear(), typeInfo); } else if (value.IsInputAudioBufferCommit) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferCommit(), typeInfo); } else if (value.IsResponseCancel) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCancel(), typeInfo); } else if (value.IsResponseCreate) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreate(), typeInfo); } else if (value.IsSessionUpdate) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdate(), 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 b9c841220..aa3ee5b23 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 @@ -122,55 +122,55 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage1(), typeInfo); } else if (value.IsMessage2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage2(), typeInfo); } else if (value.IsMessage3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage3(), typeInfo); } else if (value.IsFunctionCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsMcpApprovalResponse) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), typeInfo); } else if (value.IsMcpListTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListTools(), typeInfo); } else if (value.IsMcpCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsMcpApprovalRequest) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalRequest(), 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 f062d122a..553967e32 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 @@ -455,277 +455,277 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationCreated(), typeInfo); } else if (value.IsConversationItemCreated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemCreated(), typeInfo); } else if (value.IsConversationItemDeleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemDeleted(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionCompleted(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionDelta(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionFailed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionFailed(), typeInfo); } else if (value.IsConversationItemRetrieved) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemRetrieved(), typeInfo); } else if (value.IsConversationItemTruncated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemTruncated(), typeInfo); } else if (value.IsError) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsInputAudioBufferCleared) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferCleared(), typeInfo); } else if (value.IsInputAudioBufferCommitted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferCommitted(), typeInfo); } else if (value.IsInputAudioBufferDtmfEventReceived) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferDtmfEventReceived(), typeInfo); } else if (value.IsInputAudioBufferSpeechStarted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferSpeechStarted(), typeInfo); } else if (value.IsInputAudioBufferSpeechStopped) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferSpeechStopped(), typeInfo); } else if (value.IsRateLimitsUpdated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRateLimitsUpdated(), typeInfo); } else if (value.IsResponseOutputAudioDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioDelta(), typeInfo); } else if (value.IsResponseOutputAudioDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioDone(), typeInfo); } else if (value.IsResponseOutputAudioTranscriptDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioTranscriptDelta(), typeInfo); } else if (value.IsResponseOutputAudioTranscriptDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputAudioTranscriptDone(), typeInfo); } else if (value.IsResponseContentPartAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartAdded(), typeInfo); } else if (value.IsResponseContentPartDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartDone(), typeInfo); } else if (value.IsResponseCreated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreated(), typeInfo); } else if (value.IsResponseDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseDone(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDelta(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDone(), typeInfo); } else if (value.IsResponseOutputItemAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemAdded(), typeInfo); } else if (value.IsResponseOutputItemDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemDone(), typeInfo); } else if (value.IsResponseOutputTextDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDelta(), typeInfo); } else if (value.IsResponseOutputTextDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDone(), typeInfo); } else if (value.IsSessionCreated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCreated(), typeInfo); } else if (value.IsSessionUpdated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdated(), typeInfo); } else if (value.IsOutputAudioBufferStarted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferStarted(), typeInfo); } else if (value.IsOutputAudioBufferStopped) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferStopped(), typeInfo); } else if (value.IsOutputAudioBufferCleared) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOutputAudioBufferCleared(), typeInfo); } else if (value.IsConversationItemAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemAdded(), typeInfo); } else if (value.IsConversationItemDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemDone(), typeInfo); } else if (value.IsInputAudioBufferTimeoutTriggered) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInputAudioBufferTimeoutTriggered(), typeInfo); } else if (value.IsConversationItemInputAudioTranscriptionSegment) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickConversationItemInputAudioTranscriptionSegment(), typeInfo); } else if (value.IsMcpListToolsInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListToolsInProgress(), typeInfo); } else if (value.IsMcpListToolsCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListToolsCompleted(), typeInfo); } else if (value.IsMcpListToolsFailed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpListToolsFailed(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDelta(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDone(), typeInfo); } else if (value.IsResponseMcpCallInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallInProgress(), typeInfo); } else if (value.IsResponseMcpCallCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallCompleted(), typeInfo); } else if (value.IsResponseMcpCallFailed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallFailed(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs index a5a35c2f2..3c73ab9ef 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdate(), typeInfo); } else if (value.IsSessionInputAudioBufferAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputAudioBufferAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputAudioBufferAppend(), typeInfo); } else if (value.IsSessionClose) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClose!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClose(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs index aa12ee219..76fc90e84 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs @@ -104,43 +104,43 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsSessionCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionCreated(), typeInfo); } else if (value.IsSessionUpdated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionUpdated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionUpdated(), typeInfo); } else if (value.IsSessionClosed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionClosed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionClosed(), typeInfo); } else if (value.IsSessionInputTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionInputTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionInputTranscriptDelta(), typeInfo); } else if (value.IsSessionOutputTranscriptDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputTranscriptDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionOutputTranscriptDelta(), typeInfo); } else if (value.IsSessionOutputAudioDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionOutputAudioDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSessionOutputAudioDelta(), 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 2024500b4..8eddee489 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 @@ -137,13 +137,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsRetentionRatioTruncation) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetentionRatioTruncation(), 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 4bd8da7d2..5d5a1b096 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickServerVad(), typeInfo); } else if (value.IsSemanticVad) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSemanticVad(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningModeEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningModeEnum.g.cs index c60fd102b..1017cb82e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningModeEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ReasoningModeEnum.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.ReasoningModeEnumVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningModeEnumVariant1(), typeInfo); } else if (value.IsReasoningModeEnumEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningModeEnumEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningModeEnumEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReasoningModeEnumEnum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoningModeEnumEnum(), 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 03991894f..16465916f 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 @@ -86,7 +86,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ModelProperties!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickModelProperties(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -104,7 +104,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Properties!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickProperties(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -122,7 +122,7 @@ public override void Write( { 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}"); - var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ResponseVariant3!, typeInfo); + var __element2 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResponseVariant3(), typeInfo); if (__element2.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseCompactionCompactingEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseCompactionCompactingEvent.g.cs index dacc43872..8a2ddb584 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseCompactionCompactingEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseCompactionCompactingEvent.g.cs @@ -54,7 +54,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Streaming!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickStreaming(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 2c0dad44e..2d9447033 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsJsonSchema) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonSchema(), typeInfo); } else if (value.IsJsonObject) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonObject(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerErrorCode.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerErrorCode.g.cs index d31bb785e..77db3a3ec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerErrorCode.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerErrorCode.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsResponseSteerErrorCodeVariant2) { 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.ResponseSteerErrorCodeVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerErrorCodeVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInput.g.cs index 426763aa5..c5639d652 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInput.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextInput(), typeInfo); } else if (value.IsResponseSteerInputItemList) { 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.ResponseSteerInputItemList!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerInputItemList(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInputItem.g.cs index 651f35475..4c08218af 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerInputItem.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItemParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsFunctionCallOutput) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerPendingReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerPendingReason.g.cs index d2a0f2190..307ffc3ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerPendingReason.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerPendingReason.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsResponseSteerPendingReasonVariant2) { 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.ResponseSteerPendingReasonVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerPendingReasonVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerRequiredInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerRequiredInput.g.cs index 81c3c0962..d22d68e4e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerRequiredInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseSteerRequiredInput.g.cs @@ -104,43 +104,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsCustomToolCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomToolCallOutput(), typeInfo); } else if (value.IsComputerCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerCallOutput(), typeInfo); } else if (value.IsShellCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ShellCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShellCallOutput(), typeInfo); } else if (value.IsApplyPatchCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatchCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatchCallOutput(), typeInfo); } else if (value.IsToolSearchOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearchOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearchOutput(), typeInfo); } else if (value.IsMcpApprovalResponse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpApprovalResponse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpApprovalResponse(), 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 7153714fc..32f854d3e 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 @@ -572,355 +572,355 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioDelta(), typeInfo); } else if (value.IsResponseAudioDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioDone(), typeInfo); } else if (value.IsResponseAudioTranscriptDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioTranscriptDelta(), typeInfo); } else if (value.IsResponseAudioTranscriptDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioTranscriptDone(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCodeDelta(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCodeDone(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCompleted(), typeInfo); } else if (value.IsResponseCodeInterpreterCallInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallInProgress(), typeInfo); } else if (value.IsResponseCodeInterpreterCallInterpreting) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallInterpreting(), typeInfo); } else if (value.IsResponseCompactionCompacting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompactionCompacting!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCompactionCompacting(), typeInfo); } else if (value.IsResponseCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCompleted(), typeInfo); } else if (value.IsResponseContentPartAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartAdded(), typeInfo); } else if (value.IsResponseContentPartDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartDone(), typeInfo); } else if (value.IsResponseCreated) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreated(), typeInfo); } else if (value.IsError) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsResponseFileSearchCallCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallCompleted(), typeInfo); } else if (value.IsResponseFileSearchCallInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallInProgress(), typeInfo); } else if (value.IsResponseFileSearchCallSearching) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallSearching(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDelta(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsDone(), typeInfo); } else if (value.IsResponseShellCallCommandAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandAdded(), typeInfo); } else if (value.IsResponseShellCallCommandDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandDelta(), typeInfo); } else if (value.IsResponseShellCallCommandDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandDone(), typeInfo); } else if (value.IsResponseShellCallOutputContentDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallOutputContentDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallOutputContentDelta(), typeInfo); } else if (value.IsResponseShellCallOutputContentDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallOutputContentDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallOutputContentDone(), typeInfo); } else if (value.IsResponseInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseInProgress(), typeInfo); } else if (value.IsResponseFailed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFailed(), typeInfo); } else if (value.IsResponseIncomplete) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseIncomplete(), typeInfo); } else if (value.IsResponseOutputItemAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemAdded(), typeInfo); } else if (value.IsResponseOutputItemDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemDone(), typeInfo); } else if (value.IsResponseReasoningSummaryPartAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryPartAdded(), typeInfo); } else if (value.IsResponseReasoningSummaryPartDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryPartDone(), typeInfo); } else if (value.IsResponseReasoningSummaryTextDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryTextDelta(), typeInfo); } else if (value.IsResponseReasoningSummaryTextDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryTextDone(), typeInfo); } else if (value.IsResponseReasoningTextDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextDelta(), typeInfo); } else if (value.IsResponseReasoningTextDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextDone(), typeInfo); } else if (value.IsResponseRefusalDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseRefusalDelta(), typeInfo); } else if (value.IsResponseRefusalDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseRefusalDone(), typeInfo); } else if (value.IsResponseOutputTextDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDelta(), typeInfo); } else if (value.IsResponseOutputTextDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextDone(), typeInfo); } else if (value.IsResponseWebSearchCallCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallCompleted(), typeInfo); } else if (value.IsResponseWebSearchCallInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallInProgress(), typeInfo); } else if (value.IsResponseWebSearchCallSearching) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallSearching(), typeInfo); } else if (value.IsResponseImageGenerationCallCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallCompleted(), typeInfo); } else if (value.IsResponseImageGenerationCallGenerating) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallGenerating(), typeInfo); } else if (value.IsResponseImageGenerationCallInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallInProgress(), typeInfo); } else if (value.IsResponseImageGenerationCallPartialImage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenerationCallPartialImage(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDelta(), typeInfo); } else if (value.IsResponseMcpCallArgumentsDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsDone(), typeInfo); } else if (value.IsResponseMcpCallCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallCompleted(), typeInfo); } else if (value.IsResponseMcpCallFailed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallFailed(), typeInfo); } else if (value.IsResponseMcpCallInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallInProgress(), typeInfo); } else if (value.IsResponseMcpListToolsCompleted) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsCompleted(), typeInfo); } else if (value.IsResponseMcpListToolsFailed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsFailed(), typeInfo); } else if (value.IsResponseMcpListToolsInProgress) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsInProgress(), typeInfo); } else if (value.IsResponseOutputTextAnnotationAdded) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextAnnotationAdded(), typeInfo); } else if (value.IsResponseQueued) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseQueued(), typeInfo); } else if (value.IsResponseCustomToolCallInputDelta) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallInputDelta(), typeInfo); } else if (value.IsResponseCustomToolCallInputDone) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallInputDone(), 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 2b91eedee..2c25287d4 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 @@ -129,13 +129,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCreate(), typeInfo); } else if (value.IsResponseSteer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteer(), 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 77a7976eb..54807ecb1 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 @@ -70,7 +70,7 @@ public override void Write( { 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}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ResponsesClientEventResponseCreateVariant1!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResponsesClientEventResponseCreateVariant1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { 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}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CreateResponse!.Value, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCreateResponse(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); 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 25bbcbfb9..4475c99fa 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 @@ -2389,373 +2389,373 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioWsDelta(), typeInfo); } else if (value.IsResponseAudioWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioWsDone(), typeInfo); } else if (value.IsResponseAudioTranscriptWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioTranscriptWsDelta(), typeInfo); } else if (value.IsResponseAudioTranscriptWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseAudioTranscriptWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseAudioTranscriptWsDone(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCodeWsDelta(), typeInfo); } else if (value.IsResponseCodeInterpreterCallCodeWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallCodeWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallCodeWsDone(), typeInfo); } else if (value.IsResponseCodeInterpreterCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallWsCompleted(), typeInfo); } else if (value.IsResponseCodeInterpreterCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallInWsProgress(), typeInfo); } else if (value.IsResponseCodeInterpreterCallWsInterpreting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCodeInterpreterCallWsInterpreting!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCodeInterpreterCallWsInterpreting(), typeInfo); } else if (value.IsResponseCompactionWsCompacting) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCompactionWsCompacting!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCompactionWsCompacting(), typeInfo); } else if (value.IsResponseWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWsCompleted(), typeInfo); } else if (value.IsResponseContentPartWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartWsAdded(), typeInfo); } else if (value.IsResponseContentPartWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseContentPartWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseContentPartWsDone(), typeInfo); } else if (value.IsResponseWsCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWsCreated!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWsCreated(), typeInfo); } else if (value.IsResponseFileSearchCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallWsCompleted(), typeInfo); } else if (value.IsResponseFileSearchCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallInWsProgress(), typeInfo); } else if (value.IsResponseFileSearchCallWsSearching) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFileSearchCallWsSearching!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFileSearchCallWsSearching(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsWsDelta(), typeInfo); } else if (value.IsResponseFunctionCallArgumentsWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseFunctionCallArgumentsWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseFunctionCallArgumentsWsDone(), typeInfo); } else if (value.IsResponseShellCallCommandWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandWsAdded(), typeInfo); } else if (value.IsResponseShellCallCommandWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandWsDelta(), typeInfo); } else if (value.IsResponseShellCallCommandWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallCommandWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallCommandWsDone(), typeInfo); } else if (value.IsResponseShellCallOutputContentWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallOutputContentWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallOutputContentWsDelta(), typeInfo); } else if (value.IsResponseShellCallOutputContentWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseShellCallOutputContentWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseShellCallOutputContentWsDone(), typeInfo); } else if (value.IsResponseInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseInWsProgress(), typeInfo); } else if (value.IsResponseWsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWsFailed!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWsFailed(), typeInfo); } else if (value.IsResponseWsIncomplete) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWsIncomplete!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWsIncomplete(), typeInfo); } else if (value.IsResponseOutputItemWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemWsAdded(), typeInfo); } else if (value.IsResponseOutputItemWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputItemWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputItemWsDone(), typeInfo); } else if (value.IsResponseReasoningSummaryPartWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryPartWsAdded(), typeInfo); } else if (value.IsResponseReasoningSummaryPartWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryPartWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryPartWsDone(), typeInfo); } else if (value.IsResponseReasoningSummaryTextWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryTextWsDelta(), typeInfo); } else if (value.IsResponseReasoningSummaryTextWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningSummaryTextWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningSummaryTextWsDone(), typeInfo); } else if (value.IsResponseReasoningTextWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextWsDelta(), typeInfo); } else if (value.IsResponseReasoningTextWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseReasoningTextWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseReasoningTextWsDone(), typeInfo); } else if (value.IsResponseRefusalWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseRefusalWsDelta(), typeInfo); } else if (value.IsResponseRefusalWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseRefusalWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseRefusalWsDone(), typeInfo); } else if (value.IsResponseTextWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseTextWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseTextWsDelta(), typeInfo); } else if (value.IsResponseTextWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseTextWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseTextWsDone(), typeInfo); } else if (value.IsResponseWebSearchCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallWsCompleted(), typeInfo); } else if (value.IsResponseWebSearchCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallInWsProgress(), typeInfo); } else if (value.IsResponseWebSearchCallWsSearching) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWebSearchCallWsSearching!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWebSearchCallWsSearching(), typeInfo); } else if (value.IsResponseImageGenCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenCallWsCompleted(), typeInfo); } else if (value.IsResponseImageGenCallWsGenerating) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenCallWsGenerating!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenCallWsGenerating(), typeInfo); } else if (value.IsResponseImageGenCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenCallInWsProgress(), typeInfo); } else if (value.IsResponseImageGenCallPartialWsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseImageGenCallPartialWsImage!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseImageGenCallPartialWsImage(), typeInfo); } else if (value.IsResponseMcpCallArgumentsWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsWsDelta(), typeInfo); } else if (value.IsResponseMcpCallArgumentsWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallArgumentsWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallArgumentsWsDone(), typeInfo); } else if (value.IsResponseMcpCallWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallWsCompleted(), typeInfo); } else if (value.IsResponseMcpCallWsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallWsFailed!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallWsFailed(), typeInfo); } else if (value.IsResponseMcpCallInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpCallInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpCallInWsProgress(), typeInfo); } else if (value.IsResponseMcpListToolsWsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsWsCompleted!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsWsCompleted(), typeInfo); } else if (value.IsResponseMcpListToolsWsFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsWsFailed!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsWsFailed(), typeInfo); } else if (value.IsResponseMcpListToolsInWsProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseMcpListToolsInWsProgress!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseMcpListToolsInWsProgress(), typeInfo); } else if (value.IsResponseOutputTextAnnotationWsAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseOutputTextAnnotationWsAdded!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseOutputTextAnnotationWsAdded(), typeInfo); } else if (value.IsResponseWsQueued) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseWsQueued!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseWsQueued(), typeInfo); } else if (value.IsResponseCustomToolCallInputWsDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputWsDelta!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallInputWsDelta(), typeInfo); } else if (value.IsResponseCustomToolCallInputWsDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AllOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AllOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseCustomToolCallInputWsDone!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseCustomToolCallInputWsDone(), typeInfo); } else if (value.IsError) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWsError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWsError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsResponseSteerAccepted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerAcceptedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerAcceptedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteerAccepted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerAccepted(), typeInfo); } else if (value.IsResponseSteerPending) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerPendingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerPendingEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteerPending!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerPending(), typeInfo); } else if (value.IsResponseSteerFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseSteerFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseSteerFailedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseSteerFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResponseSteerFailed(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesWebSocketStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesWebSocketStreamEvent.g.cs index 42d183ae5..bddae6acd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesWebSocketStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesWebSocketStreamEvent.g.cs @@ -70,7 +70,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnyOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AnyOf).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ResponsesWebSocketStreamEventVariant1!.Value, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResponsesWebSocketStreamEventVariant1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -88,7 +88,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.ResponsesWebSocketStreamEventVariant2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResponsesWebSocketStreamEventVariant2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs index 652b1e6f8..14b92278e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs @@ -140,67 +140,67 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCompletionsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageCompletionsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageCompletionsResult(), typeInfo); } else if (value.IsOrganizationUsageEmbeddingsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageEmbeddingsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageEmbeddingsResult(), typeInfo); } else if (value.IsOrganizationUsageModerationsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageModerationsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageModerationsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageModerationsResult(), typeInfo); } else if (value.IsOrganizationUsageImagesResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageImagesResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageImagesResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageImagesResult(), typeInfo); } else if (value.IsOrganizationUsageAudioSpeechesResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageAudioSpeechesResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageAudioSpeechesResult(), typeInfo); } else if (value.IsOrganizationUsageAudioTranscriptionsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageAudioTranscriptionsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageAudioTranscriptionsResult(), typeInfo); } else if (value.IsOrganizationUsageVectorStoresResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageVectorStoresResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageVectorStoresResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageVectorStoresResult(), typeInfo); } else if (value.IsOrganizationUsageCodeInterpreterSessionsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageCodeInterpreterSessionsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageCodeInterpreterSessionsResult(), typeInfo); } else if (value.IsOrganizationUsageFileSearchesResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageFileSearchCallsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageFileSearchCallsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageFileSearchesResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageFileSearchesResult(), typeInfo); } else if (value.IsOrganizationUsageWebSearchesResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageWebSearchCallsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageWebSearchCallsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationUsageWebSearchesResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationUsageWebSearchesResult(), typeInfo); } else if (value.IsOrganizationCostsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CostsResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationCostsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOrganizationCostsResult(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem2.g.cs index 69030a150..f03f06cf7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.C2PAProvenanceResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.C2PAProvenanceResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.C2pa!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickC2pa(), typeInfo); } else if (value.IsSynthid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SynthIDProvenanceResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SynthIDProvenanceResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Synthid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSynthid(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateMcpOauthTokenEndpointAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateMcpOauthTokenEndpointAuthParam.g.cs index d61e6df50..8f23fbbbb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateMcpOauthTokenEndpointAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateMcpOauthTokenEndpointAuthParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientSecretBasic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClientSecretBasic(), typeInfo); } else if (value.IsClientSecretPost) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ClientSecretPost!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClientSecretPost(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateVaultCredentialAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateVaultCredentialAuthParam.g.cs index 1deabcde7..c8ff57614 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateVaultCredentialAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RotateVaultCredentialAuthParam.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpOauth!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpOauth(), typeInfo); } else if (value.IsStaticBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StaticBearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStaticBearer(), typeInfo); } else if (value.IsEnvironmentVariable) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EnvironmentVariable!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnvironmentVariable(), 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 43d645c59..56f5b4a6b 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 @@ -431,43 +431,43 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant1(), typeInfo); } else if (value.IsRunStepStreamEventVariant2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant2(), typeInfo); } else if (value.IsRunStepStreamEventVariant3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant3(), typeInfo); } else if (value.IsRunStepStreamEventVariant4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant4(), typeInfo); } else if (value.IsRunStepStreamEventVariant5) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant5(), typeInfo); } else if (value.IsRunStepStreamEventVariant6) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant6(), typeInfo); } else if (value.IsRunStepStreamEventVariant7) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStepStreamEventVariant7(), 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 0dc52713f..93dd5bc9a 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 @@ -719,61 +719,61 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant1(), typeInfo); } else if (value.IsRunStreamEventVariant2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant2(), typeInfo); } else if (value.IsRunStreamEventVariant3) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant3(), typeInfo); } else if (value.IsRunStreamEventVariant4) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant4(), typeInfo); } else if (value.IsRunStreamEventVariant5) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant5(), typeInfo); } else if (value.IsRunStreamEventVariant6) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant6(), typeInfo); } else if (value.IsRunStreamEventVariant7) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant7(), typeInfo); } else if (value.IsRunStreamEventVariant8) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant8(), typeInfo); } else if (value.IsRunStreamEventVariant9) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant9(), typeInfo); } else if (value.IsRunStreamEventVariant10) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunStreamEventVariant10(), 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 72b264e4f..51ea2bd60 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRealtime(), typeInfo); } else if (value.IsTranscription) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTranscription(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionEvent.g.cs index 22e92a415..f06bcc80d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionEvent.g.cs @@ -320,187 +320,187 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventError).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsAgentSessionEnvironmentReady) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionEnvironmentReady!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionEnvironmentReady(), typeInfo); } else if (value.IsAgentSessionEnvironmentReset) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionEnvironmentReset!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionEnvironmentReset(), typeInfo); } else if (value.IsAgentOutputCommandExecutionOutputDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentOutputCommandExecutionOutputDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentOutputCommandExecutionOutputDelta(), typeInfo); } else if (value.IsAgentSessionCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionCreated(), typeInfo); } else if (value.IsAgentSessionTurnCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnCreated(), typeInfo); } else if (value.IsAgentSessionTurnInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnInProgress(), typeInfo); } else if (value.IsAgentSessionTurnCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnCompleted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnCompleted(), typeInfo); } else if (value.IsAgentSessionTurnFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnFailed(), typeInfo); } else if (value.IsAgentSessionTurnCancelled) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnCancelled!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnCancelled(), typeInfo); } else if (value.IsAgentSessionTurnItemAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnItemAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnItemAdded(), typeInfo); } else if (value.IsAgentSessionIdle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionIdle), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionIdle).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionIdle!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionIdle(), typeInfo); } else if (value.IsAgentSessionInProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionInProgress).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionInProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionInProgress(), typeInfo); } else if (value.IsAgentSessionRequiresAction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionRequiresAction!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionRequiresAction(), typeInfo); } else if (value.IsAgentSessionFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionFailed(), typeInfo); } else if (value.IsAgentSessionEnvironmentPending) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionEnvironmentPending!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionEnvironmentPending(), typeInfo); } else if (value.IsAgentSessionEnvironmentConnected) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionEnvironmentConnected!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionEnvironmentConnected(), typeInfo); } else if (value.IsAgentSessionEnvironmentDisconnected) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionEnvironmentDisconnected!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionEnvironmentDisconnected(), typeInfo); } else if (value.IsAgentSessionEnvironmentFailed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionEnvironmentFailed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionEnvironmentFailed(), typeInfo); } else if (value.IsAgentSessionSubagentCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionSubagentCreated!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionSubagentCreated(), typeInfo); } else if (value.IsAgentSessionSubagentActive) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionSubagentActive!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionSubagentActive(), typeInfo); } else if (value.IsAgentSessionSubagentClosed) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionSubagentClosed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionSubagentClosed(), typeInfo); } else if (value.IsAgentSessionTurnItemDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnItemDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnItemDone(), typeInfo); } else if (value.IsAgentSessionTurnContentPartAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnContentPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnContentPartAdded(), typeInfo); } else if (value.IsAgentSessionTurnContentPartDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnContentPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnContentPartDone(), typeInfo); } else if (value.IsAgentSessionTurnOutputTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnOutputTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnOutputTextDelta(), typeInfo); } else if (value.IsAgentSessionTurnOutputTextDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnOutputTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnOutputTextDone(), typeInfo); } else if (value.IsAgentSessionTurnReasoningSummaryPartAdded) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnReasoningSummaryPartAdded!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnReasoningSummaryPartAdded(), typeInfo); } else if (value.IsAgentSessionTurnReasoningSummaryPartDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnReasoningSummaryPartDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnReasoningSummaryPartDone(), typeInfo); } else if (value.IsAgentSessionTurnReasoningSummaryTextDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnReasoningSummaryTextDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnReasoningSummaryTextDelta(), typeInfo); } else if (value.IsAgentSessionTurnReasoningSummaryTextDone) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionTurnReasoningSummaryTextDone!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionTurnReasoningSummaryTextDone(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionInputParam.g.cs index 9e94d0976..e78d4f1ee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionInputParam.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionInputMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionInputMessage(), typeInfo); } else if (value.IsAgentSessionInputCancel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionInputCancel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionInputCancel(), typeInfo); } else if (value.IsAgentSessionInputToolResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSessionInputToolResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentSessionInputToolResult(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionRequiredActionResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionRequiredActionResource.g.cs index 1d0589eba..bb2bfbe05 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionRequiredActionResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionRequiredActionResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsEnvironmentConnection) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EnvironmentConnection!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnvironmentConnection(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionTurnItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionTurnItemResource.g.cs index cf279ecec..f67e8de0c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionTurnItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SessionTurnItemResource.g.cs @@ -167,85 +167,85 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMessage(), typeInfo); } else if (value.IsReasoning) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Reasoning!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickReasoning(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionCallOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCallOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCallOutput(), typeInfo); } else if (value.IsAgentMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AgentMessageItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AgentMessageItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentMessage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAgentMessage(), typeInfo); } else if (value.IsMcpCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.McpCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.McpCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpCall(), typeInfo); } else if (value.IsWebSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchCall(), typeInfo); } else if (value.IsCommandExecution) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CommandExecutionItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CommandExecutionItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CommandExecution!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCommandExecution(), typeInfo); } else if (value.IsCreateSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreateSubagentCall(), typeInfo); } else if (value.IsSendSubagentInputCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SendSubagentInputCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SendSubagentInputCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SendSubagentInputCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSendSubagentInputCall(), typeInfo); } else if (value.IsResumeSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResumeSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResumeSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResumeSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickResumeSubagentCall(), typeInfo); } else if (value.IsWaitForSubagentsCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitForSubagentsCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitForSubagentsCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WaitForSubagentsCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWaitForSubagentsCall(), typeInfo); } else if (value.IsInterruptSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InterruptSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InterruptSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InterruptSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInterruptSubagentCall(), typeInfo); } else if (value.IsCloseSubagentCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CloseSubagentCallItemResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CloseSubagentCallItemResource).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CloseSubagentCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloseSubagentCall(), 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 cace55356..a289643d2 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSkillReference(), typeInfo); } else if (value.IsInline) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), 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 9275db66a..57bea6db7 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSkillReference(), typeInfo); } else if (value.IsInline) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem3.g.cs index 2b7494c9a..25fd9b7d2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem3.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaSkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaSkillReferenceParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkillReference!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSkillReference(), typeInfo); } else if (value.IsInline) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaInlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaInlineSkillParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inline!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInline(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs index 97599f3c1..ab9467b28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitCurrency.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.SpendLimitCurrencyVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpendLimitCurrencyVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitCurrencyEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs index 472b0cee4..71f91d6b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitEnforcementStatus.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.SpendLimitEnforcementStatusVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpendLimitEnforcementStatusVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs index 9ea9834f7..d2f2429b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SpendLimitInterval.g.cs @@ -149,13 +149,13 @@ public override void Write( { 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.SpendLimitIntervalVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpendLimitIntervalVariant1(), typeInfo); } else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpendLimitIntervalEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), 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 22dc29c0b..70a1140d0 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickActive(), typeInfo); } else if (value.IsLocked) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocked(), typeInfo); } else if (value.IsClosed) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickClosed(), 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 7b1e7e87e..1e2530375 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStopConfigurationVariant1(), typeInfo); } else if (value.IsStopConfigurationVariant2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStopConfigurationVariant2(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatParam.g.cs index 6a0205b63..39df0c2bb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextFormatParamText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextFormatParamText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsJsonSchema) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextFormatParamJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextFormatParamJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonSchema(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatResource.g.cs index f0f50fbf9..17cfdf6b9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextFormatResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextFormatResourceText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextFormatResourceText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsJsonSchema) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextFormatResourceJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextFormatResourceJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonSchema(), 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 50c5e8678..933d2dbf9 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 @@ -170,19 +170,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsJsonSchema) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonSchema(), typeInfo); } else if (value.IsJsonObject) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickJsonObject(), 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 674723473..f87c9a76c 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 @@ -95,37 +95,37 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChatkitUserMessage(), typeInfo); } else if (value.IsChatkitAssistantMessage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChatkitAssistantMessage(), typeInfo); } else if (value.IsChatkitWidget) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChatkitWidget(), typeInfo); } else if (value.IsChatkitClientToolCall) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChatkitClientToolCall(), typeInfo); } else if (value.IsChatkitTask) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChatkitTask(), typeInfo); } else if (value.IsChatkitTaskGroup) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickChatkitTaskGroup(), 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 bdd7c19f0..b59cede26 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 @@ -104,7 +104,7 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickThreadStreamEventVariant1(), 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 df7069fe5..93d9e516a 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 @@ -733,97 +733,97 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsComputerUsePreview) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUsePreview!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerUsePreview(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsCodeInterpreter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeInterpreter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeInterpreter(), typeInfo); } else if (value.IsProgrammaticToolCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgrammaticToolCallingParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProgrammaticToolCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgrammaticToolCalling(), typeInfo); } else if (value.IsImageGeneration) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGeneration!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageGeneration(), typeInfo); } else if (value.IsLocalShell) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.LocalShell!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLocalShell(), typeInfo); } else if (value.IsShell) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shell!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShell(), typeInfo); } else if (value.IsCustom) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); } else if (value.IsNamespace) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNamespace(), typeInfo); } else if (value.IsToolSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolSearch(), typeInfo); } else if (value.IsWebSearchPreview) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearchPreview!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearchPreview(), typeInfo); } else if (value.IsApplyPatch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApplyPatch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApplyPatch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCaller.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCaller.g.cs index eb98ba395..01fd463b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCaller.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCaller.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DirectToolCallCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DirectToolCallCaller).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Direct!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDirect(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramToolCallCaller), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramToolCallCaller).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCallerParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCallerParam.g.cs index 2c8f33363..caeff6e8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCallerParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolCallCallerParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DirectToolCallCallerParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DirectToolCallCallerParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Direct!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDirect(), typeInfo); } else if (value.IsProgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ProgramToolCallCallerParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ProgramToolCallCallerParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Program!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProgram(), 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 921aa4dd5..53e177a15 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 @@ -399,55 +399,55 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolChoiceMode(), typeInfo); } else if (value.IsAllowedTools) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowedTools(), typeInfo); } else if (value.IsHostedTool) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHostedTool(), typeInfo); } else if (value.IsFunctionTool) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionTool(), typeInfo); } else if (value.IsMcpTool) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpTool(), typeInfo); } else if (value.IsCustomTool) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomTool(), typeInfo); } else if (value.IsSpecificProgrammaticCalling) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SpecificProgrammaticCalling!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpecificProgrammaticCalling(), typeInfo); } else if (value.IsSpecificApplyPatchToolChoice) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpecificApplyPatchToolChoice(), typeInfo); } else if (value.IsSpecificShellToolChoice) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpecificShellToolChoice(), 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 37ebd9952..1fadc0a57 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 @@ -59,13 +59,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsCustom) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs index 8face0c1d..d9a160182 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem14.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs index f75727344..e20bf0c6d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem15.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveFunctionToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsWebSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LiveWebSearchToolInputParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebSearch(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs index 552f38d9b..d379164e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem16.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaFunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaFunctionToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsCustom) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.BetaCustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.BetaCustomToolParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustom(), 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 0e4ef8532..d6cd83498 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 @@ -130,13 +130,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } else if (value.IsVadConfig) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVadConfig(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialAuthResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialAuthResource.g.cs index 5f5e20c14..0bf407f8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialAuthResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialAuthResource.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.McpOauth!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpOauth(), typeInfo); } else if (value.IsStaticBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StaticBearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStaticBearer(), typeInfo); } else if (value.IsEnvironmentVariable) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EnvironmentVariable!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnvironmentVariable(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingParam.g.cs index 3641d1968..172587e2a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingParam.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Unrestricted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUnrestricted(), typeInfo); } else if (value.IsLimited) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Limited!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLimited(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingResource.g.cs index 71e0534d4..1920a5eaa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultCredentialNetworkingResource.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Unrestricted!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUnrestricted(), typeInfo); } else if (value.IsLimited) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Limited!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLimited(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultStatusFilterParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultStatusFilterParam.g.cs index 554f90107..07fe54762 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultStatusFilterParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VaultStatusFilterParam.g.cs @@ -149,13 +149,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VaultStatusParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VaultStatusParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VaultStatusParam!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVaultStatusParam(), typeInfo); } else if (value.IsVaultStatusFilterParamVariant2) { 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.VaultStatusFilterParamVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVaultStatusFilterParamVariant2(), 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 bae6c3a32..a86f393cc 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoModelVariant1(), typeInfo); } else if (value.IsEnum) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), 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 7a450a05c..42e57df3a 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 @@ -127,13 +127,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickShared(), typeInfo); } else if (value.IsVoiceIdsOrCustomVoiceVariant2) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoiceIdsOrCustomVoiceVariant2(), 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 936eda240..de5a9967d 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 @@ -149,13 +149,13 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoiceIdsSharedVariant1(), typeInfo); } else if (value.IsEnum) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnum(), typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchActionResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchActionResource.g.cs index ce3ba0560..e0f721f5b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchActionResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchActionResource.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionResourceSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionResourceSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSearch(), typeInfo); } else if (value.IsOpenPage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionResourceOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionResourceOpenPage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OpenPage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenPage(), typeInfo); } else if (value.IsFindInPage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionResourceFindInPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionResourceFindInPage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FindInPage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFindInPage(), typeInfo); } else if (value.IsOther) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionResourceOther), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionResourceOther).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Other!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOther(), 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 6fa4c6153..758964815 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 @@ -68,19 +68,19 @@ public override void Write( { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSearch(), typeInfo); } else if (value.IsOpenPage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenPage(), typeInfo); } else if (value.IsFindInPage) { 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); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFindInPage(), 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 index ebdd8ec15..3119564c4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// @@ -11,10 +8,8 @@ namespace tryAGI.OpenAI /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -51,7 +46,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] @@ -77,16 +72,26 @@ namespace tryAGI.OpenAI [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.AssignedRoleDetailsAssignmentSourcesVariant1Item))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObject))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectObject), TypeInfoPropertyName = "AssistantObjectObject2")] + #pragma warning restore CS0618 [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))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResources))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResourcesCodeInterpreter))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectToolResourcesFileSearch))] + #pragma warning restore CS0618 [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")] @@ -240,7 +245,9 @@ namespace tryAGI.OpenAI [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))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionFunctions))] + #pragma warning restore CS0618 [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")] @@ -251,14 +258,15 @@ namespace tryAGI.OpenAI [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::System.Collections.Generic.IList))] [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.ChatCompletionMessageListDataItemRole), TypeInfoPropertyName = "ChatCompletionMessageListDataItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType), TypeInfoPropertyName = "ChatCompletionMessageListDataItemContentPartsVariant1ItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile))] [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))] @@ -296,7 +304,10 @@ namespace tryAGI.OpenAI [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.ChatCompletionRequestAssistantMessageAudio))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall))] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText))] [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.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType), TypeInfoPropertyName = "ChatCompletionRequestAssistantMessageContentPartDiscriminatorType2")] @@ -304,8 +315,12 @@ namespace tryAGI.OpenAI [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole), TypeInfoPropertyName = "ChatCompletionRequestFunctionMessageRole2")] + #pragma warning restore CS0618 [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))] @@ -320,6 +335,7 @@ namespace tryAGI.OpenAI [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.ChatCompletionRequestMessageContentPartImage))] [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")] @@ -337,17 +353,22 @@ namespace tryAGI.OpenAI [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::tryAGI.OpenAI.ChatCompletionResponseMessage))] [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio))] [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))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall))] + #pragma warning restore CS0618 [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))] @@ -511,10 +532,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType2")] [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.ModerationParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StopConfiguration), TypeInfoPropertyName = "StopConfiguration2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -524,10 +541,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -564,18 +579,26 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.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.ModerationParam))] + [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))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateChatCompletionRequestVariant2FunctionCallChatCompletionFunctionCallOption2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2FunctionCall2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 [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")] @@ -658,8 +681,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateEvalCustomDataSourceConfigCreateEvalLogsDataSourceConfigCreateEvalStoredCompletionsDataSourceConfig2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig))] + #pragma warning restore CS0618 [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")] @@ -684,7 +711,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "CreateEvalStoredCompletionsDataSourceConfigType2")] + #pragma warning restore CS0618 [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))] @@ -692,13 +721,27 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersBatchSizeInt322")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersBatchSize2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersLearningRateMultiplierDouble2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersLearningRateMultiplier2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateFineTuningJobRequestHyperparametersNEpochsInt322")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs), TypeInfoPropertyName = "CreateFineTuningJobRequestHyperparametersNEpochs2")] + #pragma warning restore CS0618 [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")] @@ -797,7 +840,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AccessProgramsParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsePromptCacheOptionsParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceTierResponsesEnum), TypeInfoPropertyName = "ServiceTierResponsesEnum2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponseVariant3Truncation), TypeInfoPropertyName = "CreateResponseVariant3Truncation2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Reasoning))] [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))] @@ -959,6 +1004,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat), TypeInfoPropertyName = "EditImageBodyJsonParamOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModeration), TypeInfoPropertyName = "EditImageBodyJsonParamModeration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamBackground), TypeInfoPropertyName = "EditImageBodyJsonParamBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf, string>), TypeInfoPropertyName = "AnyOfIListSingleString2")] [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")] @@ -968,10 +1014,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalCustomDataSourceConfigEvalLogsDataSourceConfigEvalStoredCompletionsDataSourceConfig2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalLogsDataSourceConfig))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig))] + #pragma warning restore CS0618 [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")] @@ -1023,11 +1073,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1037,10 +1082,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -1077,11 +1120,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.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))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType), TypeInfoPropertyName = "EvalStoredCompletionsDataSourceConfigType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSourceType), TypeInfoPropertyName = "EvalStoredCompletionsSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor), TypeInfoPropertyName = "FileExpirationAfterAnchor2")] @@ -1136,7 +1186,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [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.FineTuningJobError))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfFineTuningJobErrorVariant1ObjectObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobErrorVariant1))] [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")] @@ -1313,7 +1364,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminatorType), TypeInfoPropertyName = "ItemResourceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAssistantsResponse))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 [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))] @@ -1442,7 +1495,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolConnectorId), TypeInfoPropertyName = "MCPToolConnectorId2")] + #pragma warning restore CS0618 [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))] @@ -1528,19 +1583,15 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum), TypeInfoPropertyName = "ModelIdsLiveEnum2")] [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention), TypeInfoPropertyName = "ModelResponsePropertiesPromptCacheRetention2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyAssistantRequestToolResources))] [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.ModifyThreadRequestToolResources))] - [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")] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1550,10 +1601,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -1590,13 +1639,21 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyRunRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModifyThreadRequestToolResources))] + [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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus), TypeInfoPropertyName = "OpenAIFileStatus2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateObject), TypeInfoPropertyName = "OrganizationCertificateObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateActivationResponse))] @@ -2048,12 +2105,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [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))] internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2063,10 +2114,8 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -2103,10 +2152,16 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.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))] @@ -2561,12 +2616,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesClientEventDiscriminatorType), TypeInfoPropertyName = "ResponsesClientEventDiscriminatorType2")] [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.AllOf), TypeInfoPropertyName = "AllOfResponseAudioDeltaEventResponsesServerEventResponseAudioWsDelta22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioDoneEventResponsesServerEventResponseAudioWsDone22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2))] internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -2576,10 +2625,8 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -2616,10 +2663,16 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.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.AllOf), TypeInfoPropertyName = "AllOfResponseAudioDeltaEventResponsesServerEventResponseAudioWsDelta22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioDoneEventResponsesServerEventResponseAudioWsDone22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioTranscriptDeltaEventResponsesServerEventResponseAudioTranscriptWsDelta22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf), TypeInfoPropertyName = "AllOfResponseAudioTranscriptDoneEventResponsesServerEventResponseAudioTranscriptWsDone22")] @@ -2930,7 +2983,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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")] @@ -3075,11 +3127,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [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")] internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3089,10 +3136,8 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -3129,23 +3174,44 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.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")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncoming))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfWebhookLiveCallIncomingDataSipMediaSecurityString2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity), TypeInfoPropertyName = "WebhookLiveCallIncomingDataSipMediaSecurity2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingObject), TypeInfoPropertyName = "WebhookLiveCallIncomingObject2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingType), TypeInfoPropertyName = "WebhookLiveCallIncomingType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveTransportIncoming))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveTransportIncomingData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType), TypeInfoPropertyName = "WebhookLiveTransportIncomingDataType2")] @@ -3588,11 +3654,6 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType), TypeInfoPropertyName = "AwsExternalStorageProviderParamsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType), TypeInfoPropertyName = "AzureExternalStorageProviderParamsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType), TypeInfoPropertyName = "GcpExternalStorageProviderParamsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Provider3), TypeInfoPropertyName = "Provider32")] internal sealed partial class SourceGenerationContextChunk6 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3602,10 +3663,8 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -3642,10 +3701,15 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType), TypeInfoPropertyName = "AzureExternalStorageProviderParamsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParams))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType), TypeInfoPropertyName = "GcpExternalStorageProviderParamsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Provider3), TypeInfoPropertyName = "Provider32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType), TypeInfoPropertyName = "CreateExternalStorageBodyProviderDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ExternalStorageDeletedResource))] @@ -3776,7 +3840,7 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [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.ToolChoice10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoice9))] [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")] @@ -4101,11 +4165,6 @@ internal sealed partial class SourceGenerationContextChunk6 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType), TypeInfoPropertyName = "InlineCapabilitySourceParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamInline))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamInlineType), TypeInfoPropertyName = "HostedSkillParamInlineType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParam), TypeInfoPropertyName = "HostedSkillParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType), TypeInfoPropertyName = "HostedSkillParamDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamInline))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamInlineType), TypeInfoPropertyName = "HostedPluginParamInlineType2")] internal sealed partial class SourceGenerationContextChunk7 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -4115,10 +4174,8 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -4155,10 +4212,15 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParam), TypeInfoPropertyName = "HostedSkillParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType), TypeInfoPropertyName = "HostedSkillParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamInline))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamInlineType), TypeInfoPropertyName = "HostedPluginParamInlineType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParam), TypeInfoPropertyName = "HostedPluginParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType), TypeInfoPropertyName = "HostedPluginParamDiscriminatorType2")] @@ -4614,11 +4676,6 @@ internal sealed partial class SourceGenerationContextChunk7 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCodeInterpreterTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCustomToolParam))] internal sealed partial class SourceGenerationContextChunk8 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -4628,10 +4685,8 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -4668,10 +4723,15 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaImageGenTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaLocalShellToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionShellToolParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCustomToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaNamespaceToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaToolSearchToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchPreviewTool))] @@ -4761,7 +4821,9 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType), TypeInfoPropertyName = "BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolType), TypeInfoPropertyName = "BetaMCPToolType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolConnectorId), TypeInfoPropertyName = "BetaMCPToolConnectorId2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf))] @@ -5127,11 +5189,6 @@ internal sealed partial class SourceGenerationContextChunk8 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum), TypeInfoPropertyName = "BetaFunctionCallOutputStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionCallStatus), TypeInfoPropertyName = "BetaFunctionCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType), TypeInfoPropertyName = "BetaMCPApprovalResponseResourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType), TypeInfoPropertyName = "BetaApplyPatchToolCallOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus), TypeInfoPropertyName = "BetaApplyPatchCallOutputStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallType), TypeInfoPropertyName = "BetaApplyPatchToolCallType2")] internal sealed partial class SourceGenerationContextChunk9 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5141,10 +5198,8 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -5181,10 +5236,15 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFunctionCallStatus), TypeInfoPropertyName = "BetaFunctionCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType), TypeInfoPropertyName = "BetaMCPApprovalResponseResourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType), TypeInfoPropertyName = "BetaApplyPatchToolCallOutputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus), TypeInfoPropertyName = "BetaApplyPatchCallOutputStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchToolCallType), TypeInfoPropertyName = "BetaApplyPatchToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCallStatus), TypeInfoPropertyName = "BetaApplyPatchCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Operation2), TypeInfoPropertyName = "Operation22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation))] @@ -5323,7 +5383,9 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCyberAccessProgramEnum), TypeInfoPropertyName = "BetaCyberAccessProgramEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaPromptVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfStringBetaInputTextContentBetaInputImageContentBetaInputFileContent2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention), TypeInfoPropertyName = "BetaModelResponsePropertiesPromptCacheRetention2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType), TypeInfoPropertyName = "BetaResponseOutputTextAnnotationAddedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent))] @@ -5640,11 +5702,6 @@ internal sealed partial class SourceGenerationContextChunk9 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType), TypeInfoPropertyName = "BetaResponsesClientEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseInjectEventType), TypeInfoPropertyName = "BetaResponseInjectEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type), TypeInfoPropertyName = "BetaResponsesClientEventResponseCreateVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponse), TypeInfoPropertyName = "BetaCreateResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateModelResponseProperties), TypeInfoPropertyName = "BetaCreateModelResponseProperties2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3))] internal sealed partial class SourceGenerationContextChunk10 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5654,10 +5711,8 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -5694,13 +5749,20 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type), TypeInfoPropertyName = "BetaResponsesClientEventResponseCreateVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponse), TypeInfoPropertyName = "BetaCreateResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateModelResponseProperties), TypeInfoPropertyName = "BetaCreateModelResponseProperties2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAccessProgramsParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation), TypeInfoPropertyName = "BetaCreateResponseVariant3Truncation2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModerationParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1))] @@ -5821,21 +5883,31 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem), TypeInfoPropertyName = "BetaListInputItemsOpenaiBetaItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem), TypeInfoPropertyName = "BetaGetinputtokencountsOpenaiBetaItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranscriptionResponseJsonCreateTranscriptionResponseDiarizedJsonCreateTranscriptionResponseVerboseJson2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfCreateTranscriptionResponseJsonCreateTranscriptionResponseDiarizedJsonCreateTranscriptionResponseVerboseJson2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfCreateTranslationResponseJsonCreateTranslationResponseVerboseJson2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteContainerResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteContainerResponseObject), TypeInfoPropertyName = "DeleteContainerResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteContainerFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteContainerFileResponseObject), TypeInfoPropertyName = "DeleteContainerFileResponseObject2")] [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::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject), TypeInfoPropertyName = "AdminApiKeysDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteResponseResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteResponseResponseObject), TypeInfoPropertyName = "DeleteResponseResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject), TypeInfoPropertyName = "ListAgentSessionSubagentsResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject), TypeInfoPropertyName = "BetaDeleteResponseResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeyObject?), TypeInfoPropertyName = "NullableAdminApiKeyObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeyCreateResponse?), TypeInfoPropertyName = "NullableAdminApiKeyCreateResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApiKeyListObject?), TypeInfoPropertyName = "NullableApiKeyListObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantObjectObject?), TypeInfoPropertyName = "NullableAssistantObjectObject2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfAssistantToolsCodeAssistantToolsFileSearchAssistantToolsFunction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantStreamEvent?), TypeInfoPropertyName = "NullableAssistantStreamEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadStreamEvent?), TypeInfoPropertyName = "NullableThreadStreamEvent2")] @@ -5875,8 +5947,8 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionListObject?), TypeInfoPropertyName = "NullableChatCompletionListObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCallType?), TypeInfoPropertyName = "NullableChatCompletionMessageCustomToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListObject?), TypeInfoPropertyName = "NullableChatCompletionMessageListObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfChatCompletionResponseMessageChatCompletionMessageListDataItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfChatCompletionRequestMessageContentPartTextChatCompletionRequestMessageContentPartImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole?), TypeInfoPropertyName = "NullableChatCompletionMessageListDataItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType?), TypeInfoPropertyName = "NullableChatCompletionMessageListDataItemContentPartsVariant1ItemType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallType?), TypeInfoPropertyName = "NullableChatCompletionMessageToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType?), TypeInfoPropertyName = "NullableChatCompletionMessageToolCallChunkType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem?), TypeInfoPropertyName = "NullableChatCompletionMessageToolCallsItem2")] @@ -5895,7 +5967,9 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType?), TypeInfoPropertyName = "NullableChatCompletionRequestAssistantMessageContentPartDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>?), TypeInfoPropertyName = "NullableOneOfStringIListChatCompletionRequestMessageContentPartText2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole?), TypeInfoPropertyName = "NullableChatCompletionRequestDeveloperMessageRole2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole?), TypeInfoPropertyName = "NullableChatCompletionRequestFunctionMessageRole2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessage?), TypeInfoPropertyName = "NullableChatCompletionRequestMessage2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole?), TypeInfoPropertyName = "NullableChatCompletionRequestMessageDiscriminatorRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType?), TypeInfoPropertyName = "NullableChatCompletionRequestMessageContentPartAudioType2")] @@ -5982,7 +6056,9 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat?), TypeInfoPropertyName = "NullableCreateChatCompletionRequestVariant2AudioFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StopConfiguration?), TypeInfoPropertyName = "NullableStopConfiguration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfChatCompletionToolCustomToolChatCompletions2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateChatCompletionRequestVariant2FunctionCallChatCompletionFunctionCallOption2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall?), TypeInfoPropertyName = "NullableCreateChatCompletionRequestVariant2FunctionCall2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason?), TypeInfoPropertyName = "NullableCreateChatCompletionResponseChoiceFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionResponseObject?), TypeInfoPropertyName = "NullableCreateChatCompletionResponseObject2")] @@ -6015,7 +6091,9 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalJsonlFileContentSourceEvalJsonlFileIdSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLabelModelGraderType?), TypeInfoPropertyName = "NullableCreateEvalLabelModelGraderType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType?), TypeInfoPropertyName = "NullableCreateEvalLogsDataSourceConfigType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateEvalCustomDataSourceConfigCreateEvalLogsDataSourceConfigCreateEvalStoredCompletionsDataSourceConfig2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "EvalGraderScoreModel_e63205a8299dfc9a")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderStringCheck?), TypeInfoPropertyName = "NullableEvalGraderStringCheck2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarity?), TypeInfoPropertyName = "NullableEvalGraderTextSimilarity2")] @@ -6029,16 +6107,30 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextResponseFormatConfiguration?), TypeInfoPropertyName = "NullableTextResponseFormatConfiguration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalJsonlFileContentSourceEvalJsonlFileIdSourceEvalResponsesSource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateEvalJsonlRunDataSourceCreateEvalCompletionsRunDataSourceCreateEvalResponsesRunDataSource2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType?), TypeInfoPropertyName = "NullableCreateEvalStoredCompletionsDataSourceConfigType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFileRequestPurpose?), TypeInfoPropertyName = "NullableCreateFileRequestPurpose2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringCreateFineTuningJobRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestModel?), TypeInfoPropertyName = "NullableCreateFineTuningJobRequestModel2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateFineTuningJobRequestHyperparametersBatchSizeInt322")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize?), TypeInfoPropertyName = "NullableCreateFineTuningJobRequestHyperparametersBatchSize2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateFineTuningJobRequestHyperparametersLearningRateMultiplierDouble2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier?), TypeInfoPropertyName = "NullableCreateFineTuningJobRequestHyperparametersLearningRateMultiplier2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateFineTuningJobRequestHyperparametersNEpochsInt322")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs?), TypeInfoPropertyName = "NullableCreateFineTuningJobRequestHyperparametersNEpochs2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType?), TypeInfoPropertyName = "NullableCreateFineTuningJobRequestIntegrationType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfByteArrayIListByteArray2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateImageEditRequestBackground?), TypeInfoPropertyName = "NullableCreateImageEditRequestBackground2")] @@ -6088,7 +6180,9 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem?), TypeInfoPropertyName = "NullableCreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponse?), TypeInfoPropertyName = "NullableCreateResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceTierResponsesEnum?), TypeInfoPropertyName = "NullableServiceTierResponsesEnum2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateResponseVariant3Truncation?), TypeInfoPropertyName = "NullableCreateResponseVariant3Truncation2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputParam?), TypeInfoPropertyName = "NullableInputParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.IncludeEnum?), TypeInfoPropertyName = "NullableIncludeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfTruncationObjectObject2")] @@ -6145,19 +6239,6 @@ internal sealed partial class SourceGenerationContextChunk10 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteMessageResponseObject?), TypeInfoPropertyName = "NullableDeleteMessageResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteThreadResponseObject?), TypeInfoPropertyName = "NullableDeleteThreadResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject?), TypeInfoPropertyName = "NullableDeleteVectorStoreFileResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreResponseObject?), TypeInfoPropertyName = "NullableDeleteVectorStoreResponseObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversation?), TypeInfoPropertyName = "NullableDeletedConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventEvent?), TypeInfoPropertyName = "NullableDoneEventEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventData?), TypeInfoPropertyName = "NullableDoneEventData2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageRole?), TypeInfoPropertyName = "NullableEasyInputMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>?), TypeInfoPropertyName = "NullableOneOfStringIListInputContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessagePhase?), TypeInfoPropertyName = "NullableMessagePhase2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageType?), TypeInfoPropertyName = "NullableEasyInputMessageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringEditImageBodyJsonParamModelObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModel?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamQuality?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamInputFidelity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringEditImageBodyJsonParamSizeObject2")] internal sealed partial class SourceGenerationContextChunk11 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -6167,10 +6248,8 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -6207,19 +6286,35 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteVectorStoreResponseObject?), TypeInfoPropertyName = "NullableDeleteVectorStoreResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedConversation?), TypeInfoPropertyName = "NullableDeletedConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventEvent?), TypeInfoPropertyName = "NullableDoneEventEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoneEventData?), TypeInfoPropertyName = "NullableDoneEventData2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageRole?), TypeInfoPropertyName = "NullableEasyInputMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>?), TypeInfoPropertyName = "NullableOneOfStringIListInputContent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessagePhase?), TypeInfoPropertyName = "NullableMessagePhase2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessageType?), TypeInfoPropertyName = "NullableEasyInputMessageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringEditImageBodyJsonParamModelObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModel?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamQuality?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamInputFidelity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringEditImageBodyJsonParamSizeObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamSize?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamSize2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamModeration?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamModeration2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EditImageBodyJsonParamBackground?), TypeInfoPropertyName = "NullableEditImageBodyJsonParamBackground2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf, string>?), TypeInfoPropertyName = "NullableAnyOfIListSingleString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmbeddingObject?), TypeInfoPropertyName = "NullableEmbeddingObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ErrorEventEvent?), TypeInfoPropertyName = "NullableErrorEventEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalObject?), TypeInfoPropertyName = "NullableEvalObject2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalCustomDataSourceConfigEvalLogsDataSourceConfigEvalStoredCompletionsDataSourceConfig2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfEvalGraderLabelModelEvalGraderStringCheckEvalGraderTextSimilarityEvalGraderPythonEvalGraderScoreModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalGraderLabelModel?), TypeInfoPropertyName = "NullableEvalGraderLabelModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalCustomDataSourceConfigType?), TypeInfoPropertyName = "NullableEvalCustomDataSourceConfigType2")] @@ -6238,7 +6333,9 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunListObject?), TypeInfoPropertyName = "NullableEvalRunListObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemObject?), TypeInfoPropertyName = "NullableEvalRunOutputItemObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalRunOutputItemListObject?), TypeInfoPropertyName = "NullableEvalRunOutputItemListObject2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType?), TypeInfoPropertyName = "NullableEvalStoredCompletionsDataSourceConfigType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalStoredCompletionsSourceType?), TypeInfoPropertyName = "NullableEvalStoredCompletionsSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileExpirationAfterAnchor?), TypeInfoPropertyName = "NullableFileExpirationAfterAnchor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FilePathType?), TypeInfoPropertyName = "NullableFilePathType2")] @@ -6277,6 +6374,7 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs?), TypeInfoPropertyName = "NullableFineTuneSupervisedHyperparametersNEpochs2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject?), TypeInfoPropertyName = "NullableFineTuningCheckpointPermissionObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningIntegrationType?), TypeInfoPropertyName = "NullableFineTuningIntegrationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfFineTuningJobErrorVariant1ObjectObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1?), TypeInfoPropertyName = "NullableFineTuningJobHyperparametersBatchSizeVariant12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfFineTuningJobHyperparametersLearningRateMultiplierDouble2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier?), TypeInfoPropertyName = "NullableFineTuningJobHyperparametersLearningRateMultiplier2")] @@ -6405,7 +6503,9 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResourceType?), TypeInfoPropertyName = "NullableMCPApprovalResponseResourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPListToolsType?), TypeInfoPropertyName = "NullableMCPListToolsType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolType?), TypeInfoPropertyName = "NullableMCPToolType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolConnectorId?), TypeInfoPropertyName = "NullableMCPToolConnectorId2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2?), TypeInfoPropertyName = "NullableMCPToolRequireApprovalVariant1Enum22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCallType?), TypeInfoPropertyName = "NullableMCPToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPToolCallStatus?), TypeInfoPropertyName = "NullableMCPToolCallStatus2")] @@ -6447,11 +6547,15 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsLiveEnum?), TypeInfoPropertyName = "NullableModelIdsLiveEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum?), TypeInfoPropertyName = "NullableModelIdsResponsesEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum?), TypeInfoPropertyName = "NullableModelIdsSharedEnum2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention?), TypeInfoPropertyName = "NullableModelResponsePropertiesPromptCacheRetention2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NoiseReductionType?), TypeInfoPropertyName = "NullableNoiseReductionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileObject?), TypeInfoPropertyName = "NullableOpenAIFileObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFilePurpose?), TypeInfoPropertyName = "NullableOpenAIFilePurpose2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OpenAIFileStatus?), TypeInfoPropertyName = "NullableOpenAIFileStatus2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateObject?), TypeInfoPropertyName = "NullableOrganizationCertificateObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject?), TypeInfoPropertyName = "NullableOrganizationCertificateActivationResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject?), TypeInfoPropertyName = "NullableOrganizationCertificateDeactivationResponseObject2")] @@ -6656,21 +6760,6 @@ internal sealed partial class SourceGenerationContextChunk11 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfInt32RealtimeResponseCreateParamsMaxOutputTokens2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens?), TypeInfoPropertyName = "NullableRealtimeResponseCreateParamsMaxOutputTokens2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfStringRealtimeResponseCreateParamsConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation?), TypeInfoPropertyName = "NullableRealtimeResponseCreateParamsConversation2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEvent?), TypeInfoPropertyName = "NullableRealtimeServerEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType?), TypeInfoPropertyName = "NullableRealtimeServerEventDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemDeletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionSegmentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemRetrievedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemTruncatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorType?), TypeInfoPropertyName = "NullableRealtimeServerEventErrorType2")] internal sealed partial class SourceGenerationContextChunk12 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -6680,10 +6769,8 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -6720,10 +6807,25 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation?), TypeInfoPropertyName = "NullableRealtimeResponseCreateParamsConversation2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEvent?), TypeInfoPropertyName = "NullableRealtimeServerEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType?), TypeInfoPropertyName = "NullableRealtimeServerEventDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemDeletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemInputAudioTranscriptionSegmentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemRetrievedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType?), TypeInfoPropertyName = "NullableRealtimeServerEventConversationItemTruncatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventErrorType?), TypeInfoPropertyName = "NullableRealtimeServerEventErrorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferClearedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferCommittedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType?), TypeInfoPropertyName = "NullableRealtimeServerEventInputAudioBufferDtmfEventReceivedType2")] @@ -7083,7 +7185,6 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfVectorStoreExpirationAfterObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadStatus?), TypeInfoPropertyName = "NullableUploadStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadObject?), TypeInfoPropertyName = "NullableUploadObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "NullableAllOfOpenAIFileObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UploadPartObject?), TypeInfoPropertyName = "NullableUploadPartObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResultObject?), TypeInfoPropertyName = "NullableUsageAudioSpeechesResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject?), TypeInfoPropertyName = "NullableUsageAudioTranscriptionsResultObject2")] @@ -7159,10 +7260,18 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobFailedType?), TypeInfoPropertyName = "NullableWebhookFineTuningJobFailedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject?), TypeInfoPropertyName = "NullableWebhookFineTuningJobSucceededObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType?), TypeInfoPropertyName = "NullableWebhookFineTuningJobSucceededType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfWebhookLiveCallIncomingDataSipMediaSecurityString2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity?), TypeInfoPropertyName = "NullableWebhookLiveCallIncomingDataSipMediaSecurity2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingObject?), TypeInfoPropertyName = "NullableWebhookLiveCallIncomingObject2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveCallIncomingType?), TypeInfoPropertyName = "NullableWebhookLiveCallIncomingType2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType?), TypeInfoPropertyName = "NullableWebhookLiveTransportIncomingDataType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfWebhookLiveTransportIncomingDataSipMediaSecurityString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity?), TypeInfoPropertyName = "NullableWebhookLiveTransportIncomingDataSipMediaSecurity2")] @@ -7170,20 +7279,6 @@ internal sealed partial class SourceGenerationContextChunk12 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookLiveTransportIncomingType?), TypeInfoPropertyName = "NullableWebhookLiveTransportIncomingType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "NullableAnyOfWebhookRealtimeCallIncomingDataSipMediaSecurityString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity?), TypeInfoPropertyName = "NullableWebhookRealtimeCallIncomingDataSipMediaSecurity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject?), TypeInfoPropertyName = "NullableWebhookRealtimeCallIncomingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType?), TypeInfoPropertyName = "NullableWebhookRealtimeCallIncomingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledObject?), TypeInfoPropertyName = "NullableWebhookResponseCancelledObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledType?), TypeInfoPropertyName = "NullableWebhookResponseCancelledType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedObject?), TypeInfoPropertyName = "NullableWebhookResponseCompletedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedType?), TypeInfoPropertyName = "NullableWebhookResponseCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedObject?), TypeInfoPropertyName = "NullableWebhookResponseFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedType?), TypeInfoPropertyName = "NullableWebhookResponseFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteObject?), TypeInfoPropertyName = "NullableWebhookResponseIncompleteObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteType?), TypeInfoPropertyName = "NullableWebhookResponseIncompleteType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject?), TypeInfoPropertyName = "NullableWebhookSafetyAlertCreatedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType?), TypeInfoPropertyName = "NullableWebhookSafetyAlertCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject?), TypeInfoPropertyName = "NullableWebhookSafetyDeactivationIssuedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType?), TypeInfoPropertyName = "NullableWebhookSafetyDeactivationIssuedType2")] internal sealed partial class SourceGenerationContextChunk13 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7193,10 +7288,8 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -7233,10 +7326,24 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject?), TypeInfoPropertyName = "NullableWebhookRealtimeCallIncomingObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType?), TypeInfoPropertyName = "NullableWebhookRealtimeCallIncomingType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledObject?), TypeInfoPropertyName = "NullableWebhookResponseCancelledObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledType?), TypeInfoPropertyName = "NullableWebhookResponseCancelledType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedObject?), TypeInfoPropertyName = "NullableWebhookResponseCompletedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedType?), TypeInfoPropertyName = "NullableWebhookResponseCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedObject?), TypeInfoPropertyName = "NullableWebhookResponseFailedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedType?), TypeInfoPropertyName = "NullableWebhookResponseFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteObject?), TypeInfoPropertyName = "NullableWebhookResponseIncompleteObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteType?), TypeInfoPropertyName = "NullableWebhookResponseIncompleteType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject?), TypeInfoPropertyName = "NullableWebhookSafetyAlertCreatedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType?), TypeInfoPropertyName = "NullableWebhookSafetyAlertCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject?), TypeInfoPropertyName = "NullableWebhookSafetyDeactivationIssuedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType?), TypeInfoPropertyName = "NullableWebhookSafetyDeactivationIssuedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject?), TypeInfoPropertyName = "NullableWebhookSafetyOrgAlertCreatedObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType?), TypeInfoPropertyName = "NullableWebhookSafetyOrgAlertCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject?), TypeInfoPropertyName = "NullableWebhookSafetyWarningIssuedObject2")] @@ -7683,20 +7790,6 @@ internal sealed partial class SourceGenerationContextChunk13 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningEffortParam?), TypeInfoPropertyName = "NullableReasoningEffortParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningSummaryParam?), TypeInfoPropertyName = "NullableReasoningSummaryParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParamTextType?), TypeInfoPropertyName = "NullableTextFormatParamTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParamJsonSchemaType?), TypeInfoPropertyName = "NullableTextFormatParamJsonSchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParam?), TypeInfoPropertyName = "NullableTextFormatParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParamDiscriminatorType?), TypeInfoPropertyName = "NullableTextFormatParamDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VerbosityParam?), TypeInfoPropertyName = "NullableVerbosityParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceTierParam?), TypeInfoPropertyName = "NullableServiceTierParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamFunctionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamToolSearchType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamProgrammaticToolCallingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamHttpType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamStdioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParam?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpConnectionOriginParam?), TypeInfoPropertyName = "NullableMcpConnectionOriginParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamMcpType2")] internal sealed partial class SourceGenerationContextChunk14 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7706,10 +7799,8 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -7746,10 +7837,24 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParamJsonSchemaType?), TypeInfoPropertyName = "NullableTextFormatParamJsonSchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParam?), TypeInfoPropertyName = "NullableTextFormatParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TextFormatParamDiscriminatorType?), TypeInfoPropertyName = "NullableTextFormatParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VerbosityParam?), TypeInfoPropertyName = "NullableVerbosityParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ServiceTierParam?), TypeInfoPropertyName = "NullableServiceTierParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamFunctionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamToolSearchType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamProgrammaticToolCallingType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamHttpType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamStdioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParam?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType?), TypeInfoPropertyName = "NullablePersistedMcpTransportConfigParamDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.McpConnectionOriginParam?), TypeInfoPropertyName = "NullableMcpConnectionOriginParam2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamMcpType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchModeParam?), TypeInfoPropertyName = "NullableWebSearchModeParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchContextSizeParam?), TypeInfoPropertyName = "NullableWebSearchContextSizeParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType?), TypeInfoPropertyName = "NullablePersistedAgentToolConfigParamWebSearchType2")] @@ -8066,7 +8171,9 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy5?), TypeInfoPropertyName = "NullableNetworkPolicy52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType?), TypeInfoPropertyName = "NullableBetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolType?), TypeInfoPropertyName = "NullableBetaMCPToolType2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolConnectorId?), TypeInfoPropertyName = "NullableBetaMCPToolConnectorId2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2?), TypeInfoPropertyName = "NullableBetaMCPToolRequireApprovalVariant1Enum22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchToolType?), TypeInfoPropertyName = "NullableBetaWebSearchToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize?), TypeInfoPropertyName = "NullableBetaWebSearchToolSearchContextSize2")] @@ -8196,20 +8303,6 @@ internal sealed partial class SourceGenerationContextChunk14 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerScreenshotImageType?), TypeInfoPropertyName = "NullableBetaComputerScreenshotImageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolCallType?), TypeInfoPropertyName = "NullableBetaComputerToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerAction?), TypeInfoPropertyName = "NullableBetaComputerAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolCallStatus?), TypeInfoPropertyName = "NullableBetaComputerToolCallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType?), TypeInfoPropertyName = "NullableBetaComputerActionDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWaitParamType?), TypeInfoPropertyName = "NullableBetaWaitParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaTypeParamType?), TypeInfoPropertyName = "NullableBetaTypeParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScrollParamType?), TypeInfoPropertyName = "NullableBetaScrollParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScreenshotParamType?), TypeInfoPropertyName = "NullableBetaScreenshotParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMoveParamType?), TypeInfoPropertyName = "NullableBetaMoveParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaKeyPressActionType?), TypeInfoPropertyName = "NullableBetaKeyPressActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDragParamType?), TypeInfoPropertyName = "NullableBetaDragParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDoubleClickActionType?), TypeInfoPropertyName = "NullableBetaDoubleClickActionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickParamType?), TypeInfoPropertyName = "NullableBetaClickParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickButtonType?), TypeInfoPropertyName = "NullableBetaClickButtonType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCallType?), TypeInfoPropertyName = "NullableBetaFileSearchToolCallType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCallStatus?), TypeInfoPropertyName = "NullableBetaFileSearchToolCallStatus2")] internal sealed partial class SourceGenerationContextChunk15 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -8219,10 +8312,8 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -8259,10 +8350,24 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerToolCallStatus?), TypeInfoPropertyName = "NullableBetaComputerToolCallStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType?), TypeInfoPropertyName = "NullableBetaComputerActionDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaWaitParamType?), TypeInfoPropertyName = "NullableBetaWaitParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaTypeParamType?), TypeInfoPropertyName = "NullableBetaTypeParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScrollParamType?), TypeInfoPropertyName = "NullableBetaScrollParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaScreenshotParamType?), TypeInfoPropertyName = "NullableBetaScreenshotParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaMoveParamType?), TypeInfoPropertyName = "NullableBetaMoveParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaKeyPressActionType?), TypeInfoPropertyName = "NullableBetaKeyPressActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDragParamType?), TypeInfoPropertyName = "NullableBetaDragParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDoubleClickActionType?), TypeInfoPropertyName = "NullableBetaDoubleClickActionType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickParamType?), TypeInfoPropertyName = "NullableBetaClickParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaClickButtonType?), TypeInfoPropertyName = "NullableBetaClickButtonType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCallType?), TypeInfoPropertyName = "NullableBetaFileSearchToolCallType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaFileSearchToolCallStatus?), TypeInfoPropertyName = "NullableBetaFileSearchToolCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageType?), TypeInfoPropertyName = "NullableBetaOutputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageRole?), TypeInfoPropertyName = "NullableBetaOutputMessageRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaOutputMessageContent?), TypeInfoPropertyName = "NullableBetaOutputMessageContent2")] @@ -8387,7 +8492,9 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseErrorCode?), TypeInfoPropertyName = "NullableBetaResponseErrorCode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCyberAccessProgramEnum?), TypeInfoPropertyName = "NullableBetaCyberAccessProgramEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfStringBetaInputTextContentBetaInputImageContentBetaInputFileContent2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention?), TypeInfoPropertyName = "NullableBetaModelResponsePropertiesPromptCacheRetention2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType?), TypeInfoPropertyName = "NullableBetaResponseOutputTextAnnotationAddedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType?), TypeInfoPropertyName = "NullableBetaResponseMCPListToolsInProgressEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType?), TypeInfoPropertyName = "NullableBetaResponseMCPListToolsFailedEventType2")] @@ -8546,7 +8653,9 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type?), TypeInfoPropertyName = "NullableBetaResponsesClientEventResponseCreateVariant1Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponse?), TypeInfoPropertyName = "NullableBetaCreateResponse2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateModelResponseProperties?), TypeInfoPropertyName = "NullableBetaCreateModelResponseProperties2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation?), TypeInfoPropertyName = "NullableBetaCreateResponseVariant3Truncation2")] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaModerationMode?), TypeInfoPropertyName = "NullableBetaModerationMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseStreamEvent?), TypeInfoPropertyName = "NullableBetaResponseStreamEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType?), TypeInfoPropertyName = "NullableBetaResponseStreamEventDiscriminatorType2")] @@ -8627,8 +8736,12 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem?), TypeInfoPropertyName = "NullableBetaListInputItemsOpenaiBetaItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem?), TypeInfoPropertyName = "NullableBetaGetinputtokencountsOpenaiBetaItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "NullableOneOfCreateTranslationResponseJsonCreateTranslationResponseVerboseJson2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteContainerResponseObject?), TypeInfoPropertyName = "NullableDeleteContainerResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteContainerFileResponseObject?), TypeInfoPropertyName = "NullableDeleteContainerFileResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject?), TypeInfoPropertyName = "NullableAdminApiKeysDeleteResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeleteResponseResponseObject?), TypeInfoPropertyName = "NullableDeleteResponseResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject?), TypeInfoPropertyName = "NullableListAgentSessionSubagentsResponseObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject?), TypeInfoPropertyName = "NullableBetaDeleteResponseResponseObject2")] [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))] @@ -8639,8 +8752,8 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -8673,7 +8786,9 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 [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))] @@ -8705,24 +8820,6 @@ internal sealed partial class SourceGenerationContextChunk15 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [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))] internal sealed partial class SourceGenerationContextChunk16 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -8732,10 +8829,8 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( GenerationMode = global::System.Text.Json.Serialization.JsonSourceGenerationMode.Metadata, - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy_0ffeca8e0fd10c1e")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages_2728b0f309136770")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference_e582eeb48daa18b3")] @@ -8772,10 +8867,28 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2_9d4e1679c4ee0cf0")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AllOf?), TypeInfoPropertyName = "BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2_6b4ba830529526bb")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "BetaResponseCustomToolCallInputDoneEvent_b347195b6f520c7e")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_c58e2cb76dff9634")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf?), TypeInfoPropertyName = "CreateTranscriptionResponseVerboseJson_68e1a12ab49326fd")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [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>))] @@ -8783,6 +8896,7 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [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::tryAGI.OpenAI.AnyOf, string>))] [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))] @@ -8804,7 +8918,9 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 [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))] @@ -8896,7 +9012,9 @@ internal sealed partial class SourceGenerationContextChunk16 : global::System.Te [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 [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.Dictionary>))] @@ -9352,8 +9470,6 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); @@ -9377,16 +9493,24 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning disable CS0618 // Converter references a deprecated API model. options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning restore CS0618 options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); + #pragma warning disable CS0618 // Converter references a deprecated API model. options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning restore CS0618 + #pragma warning disable CS0618 // Converter references a deprecated API model. options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning restore CS0618 + #pragma warning disable CS0618 // Converter references a deprecated API model. options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning restore CS0618 options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); @@ -9421,7 +9545,10 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, string>()); + #pragma warning disable CS0618 // Converter references a deprecated API model. options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning restore CS0618 options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -9438,6 +9565,7 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -9557,8 +9685,6 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); @@ -9566,14 +9692,15 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + #pragma warning disable CS0618 // Converter references a deprecated API model. options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); + #pragma warning restore CS0618 options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); @@ -9673,7 +9800,7 @@ internal static void AddConverters(global::System.Text.Json.JsonSerializerOption options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); - options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); @@ -9821,6 +9948,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListObject?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType) + + || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallType) || typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallType?) @@ -17841,13 +17976,29 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem?) + || typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerResponseObject) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerResponseObject?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerFileResponseObject) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerFileResponseObject?) + || typeToConvert == typeof(global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject) || typeToConvert == typeof(global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject?) + || typeToConvert == typeof(global::tryAGI.OpenAI.DeleteResponseResponseObject) + + || typeToConvert == typeof(global::tryAGI.OpenAI.DeleteResponseResponseObject?) + || typeToConvert == typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject) - || typeToConvert == typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject?); + || typeToConvert == typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject?) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject) + + || typeToConvert == typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -18164,6 +18315,26 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListObjectNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole)) + { + return new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType)) + { + return new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType?)) + { + return new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallType)) { return new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeJsonConverter(); @@ -38214,6 +38385,26 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.BetaGetinputtokencountsOpenaiBetaItemNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerResponseObject)) + { + return new global::tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerResponseObject?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerFileResponseObject)) + { + return new global::tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DeleteContainerFileResponseObject?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject)) { return new global::tryAGI.OpenAI.JsonConverters.AdminApiKeysDeleteResponseObjectJsonConverter(); @@ -38224,6 +38415,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::tryAGI.OpenAI.JsonConverters.AdminApiKeysDeleteResponseObjectNullableJsonConverter(); } + if (typeToConvert == typeof(global::tryAGI.OpenAI.DeleteResponseResponseObject)) + { + return new global::tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.DeleteResponseResponseObject?)) + { + return new global::tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectNullableJsonConverter(); + } + if (typeToConvert == typeof(global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject)) { return new global::tryAGI.OpenAI.JsonConverters.ListAgentSessionSubagentsResponseObjectJsonConverter(); @@ -38233,6 +38434,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::tryAGI.OpenAI.JsonConverters.ListAgentSessionSubagentsResponseObjectNullableJsonConverter(); } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectJsonConverter(); + } + + if (typeToConvert == typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponseObject?)) + { + return new global::tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs index fdbc1b5db..354dd86b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -805,19939 +805,19991 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList>? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type194 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type195 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole? Type195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageListDataItem? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type197 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item? Type197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type198 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType? Type198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type199 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl? Type199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type200 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio? Type200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type201 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile? Type201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type202 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCall? Type202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type203 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallType? Type203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type204 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallFunction? Type204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type205 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunk? Type205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type206 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkType? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallChunkFunction? Type207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator? Type209 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem? Type209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? Type210 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type211 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? Type211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModeration? Type213 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item? Type213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input? Type214 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModeration? Type214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationResults? Type215 { get; set; } + public global::tryAGI.OpenAI.Input? Type215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationError? Type216 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationResults? Type216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationInputDiscriminator? Type217 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationError? Type217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationInputDiscriminatorType? Type218 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationInputDiscriminator? Type218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output? Type219 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationInputDiscriminatorType? Type219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationOutputDiscriminator? Type220 { get; set; } + public global::tryAGI.OpenAI.Output? Type220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationOutputDiscriminatorType? Type221 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationOutputDiscriminator? Type221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationErrorType? Type222 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationOutputDiscriminatorType? Type222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationResultsType? Type223 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationErrorType? Type223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type224 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModerationResultsType? Type224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationResultBody? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type226 { get; set; } + public global::tryAGI.OpenAI.ModerationResultBody? Type226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type227 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type228 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type229 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type230 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type231 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type232 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type233 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type236 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Type237 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall? Type238 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio? Type238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type239 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall? Type239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type240 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? Type240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? Type241 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type242 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type243 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type245 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type247 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type248 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type249 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type250 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type251 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type252 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? Type253 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type254 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type255 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? Type255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type256 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type257 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointParam? Type258 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type259 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type260 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointParam? Type260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type261 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type262 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type263 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type264 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage? Type264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type265 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type266 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type267 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type268 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type269 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type270 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type272 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type273 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type274 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type275 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type277 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type278 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type280 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type281 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type282 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessage? Type282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type284 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Type285 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRole? Type286 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1? Type287 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type288 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type289 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio? Type289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type290 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRole? Type290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type291 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1? Type291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type292 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type293 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type293 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type294 { get; set; } + public global::System.Collections.Generic.IList? Type294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type295 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTool? Type296 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolType? Type297 { get; set; } + public global::System.Collections.Generic.IList? Type297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type298 { get; set; } + public global::System.Collections.Generic.IList? Type298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type299 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type300 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTool? Type300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type301 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolType? Type301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type302 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? Type303 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type304 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type305 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type307 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? Type307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type308 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type309 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTool? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolType? Type311 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type312 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParam? Type313 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type314 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTool? Type314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CallableToolAllowedCaller? Type315 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolType? Type315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type316 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type317 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParam? Type317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type318 { get; set; } + public global::System.Collections.Generic.IList? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::tryAGI.OpenAI.CallableToolAllowedCaller? Type319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsVariant1Item? Type320 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type321 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type322 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type323 { get; set; } + public global::System.Collections.Generic.IList? Type323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type324 { get; set; } + public global::tryAGI.OpenAI.OutputsVariant1Item? Type324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilter? Type325 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilterType? Type326 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>>? Type327 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type328 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type329 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilter? Type329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompleteUploadRequest? Type330 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilterType? Type330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsage? Type331 { get; set; } + public global::tryAGI.OpenAI.OneOf>>? Type331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type332 { get; set; } + public global::System.Collections.Generic.IList>? Type332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type333 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilter? Type334 { get; set; } + public global::tryAGI.OpenAI.CompleteUploadRequest? Type334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilterType? Type335 { get; set; } + public global::tryAGI.OpenAI.CompletionUsage? Type335 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type336 { get; set; } + public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FiltersItem? Type337 { get; set; } + public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator? Type338 { get; set; } + public global::tryAGI.OpenAI.CompoundFilter? Type338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerAction? Type339 { get; set; } + public global::tryAGI.OpenAI.CompoundFilterType? Type339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParam? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickAction? Type341 { get; set; } + public global::tryAGI.OpenAI.FiltersItem? Type341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParam? Type342 { get; set; } + public global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator? Type342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressAction? Type343 { get; set; } + public global::tryAGI.OpenAI.ComputerAction? Type343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParam? Type344 { get; set; } + public global::tryAGI.OpenAI.ClickParam? Type344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParam? Type345 { get; set; } + public global::tryAGI.OpenAI.DoubleClickAction? Type345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParam? Type346 { get; set; } + public global::tryAGI.OpenAI.DragParam? Type346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParam? Type347 { get; set; } + public global::tryAGI.OpenAI.KeyPressAction? Type347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParam? Type348 { get; set; } + public global::tryAGI.OpenAI.MoveParam? Type348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type349 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParam? Type349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerActionDiscriminatorType? Type350 { get; set; } + public global::tryAGI.OpenAI.ScrollParam? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::tryAGI.OpenAI.TypeParam? Type351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImage? Type352 { get; set; } + public global::tryAGI.OpenAI.WaitParam? Type352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type353 { get; set; } + public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall? Type354 { get; set; } + public global::tryAGI.OpenAI.ComputerActionDiscriminatorType? Type354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallType? Type355 { get; set; } + public global::System.Collections.Generic.IList? Type355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type356 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImage? Type356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type357 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallStatus? Type358 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCall? Type358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutput? Type359 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallType? Type359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type360 { get; set; } + public global::System.Collections.Generic.IList? Type360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type361 { get; set; } + public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type362 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallStatus? Type362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type363 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutput? Type363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputStatus? Type364 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResource? Type365 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type366 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type366 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type367 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileResource? Type368 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputStatus? Type368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResource? Type369 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResource? Type369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResourceObject? Type370 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type371 { get; set; } + public global::System.Collections.Generic.IList? Type371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResource? Type372 { get; set; } + public global::tryAGI.OpenAI.ContainerFileResource? Type372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type373 { get; set; } + public global::tryAGI.OpenAI.ContainerListResource? Type373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type374 { get; set; } + public global::tryAGI.OpenAI.ContainerListResourceObject? Type374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceMemoryLimit? Type375 { get; set; } + public global::System.Collections.Generic.IList? Type375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceNetworkPolicy? Type376 { get; set; } + public global::tryAGI.OpenAI.ContainerResource? Type376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType? Type377 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Content5? Type378 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContent? Type379 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceMemoryLimit? Type379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContent? Type380 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceNetworkPolicy? Type380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItem? Type381 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType? Type381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Message? Type382 { get; set; } + public global::tryAGI.OpenAI.Content5? Type382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResource? Type383 { get; set; } + public global::tryAGI.OpenAI.InputContent? Type383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type384 { get; set; } + public global::tryAGI.OpenAI.OutputContent? Type384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall? Type385 { get; set; } + public global::tryAGI.OpenAI.ConversationItem? Type385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall? Type386 { get; set; } + public global::tryAGI.OpenAI.Message? Type386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall? Type387 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResource? Type387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCall? Type388 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutput? Type389 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCall? Type389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalTools? Type390 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCall? Type390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdate? Type391 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCall? Type391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItem? Type392 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCall? Type392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Program? Type393 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutput? Type393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutput? Type394 { get; set; } + public global::tryAGI.OpenAI.AdditionalTools? Type394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBody? Type395 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdate? Type395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall? Type396 { get; set; } + public global::tryAGI.OpenAI.ReasoningItem? Type396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type397 { get; set; } + public global::tryAGI.OpenAI.Program? Type397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCall? Type398 { get; set; } + public global::tryAGI.OpenAI.ProgramOutput? Type398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutput? Type399 { get; set; } + public global::tryAGI.OpenAI.CompactionBody? Type399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCall? Type400 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCall? Type400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput? Type401 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListTools? Type402 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCall? Type402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest? Type403 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutput? Type403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type404 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCall? Type404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCall? Type405 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput? Type405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCall? Type406 { get; set; } + public global::tryAGI.OpenAI.MCPListTools? Type406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput? Type407 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequest? Type407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type408 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemDiscriminatorType? Type409 { get; set; } + public global::tryAGI.OpenAI.MCPToolCall? Type409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemList? Type410 { get; set; } + public global::tryAGI.OpenAI.CustomToolCall? Type410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemListObject? Type411 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutput? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type412 { get; set; } + public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationParam? Type413 { get; set; } + public global::tryAGI.OpenAI.ConversationItemDiscriminatorType? Type413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationParam2? Type414 { get; set; } + public global::tryAGI.OpenAI.ConversationItemList? Type414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResult? Type415 { get; set; } + public global::tryAGI.OpenAI.ConversationItemListObject? Type415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultObject? Type416 { get; set; } + public global::System.Collections.Generic.IList? Type416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultAmount? Type417 { get; set; } + public global::tryAGI.OpenAI.ConversationParam? Type417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type418 { get; set; } + public global::tryAGI.OpenAI.ConversationParam2? Type418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultQuantityUnit? Type419 { get; set; } + public global::tryAGI.OpenAI.CostsResult? Type419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequest? Type420 { get; set; } + public global::tryAGI.OpenAI.CostsResultObject? Type420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type421 { get; set; } + public global::tryAGI.OpenAI.CostsResultAmount? Type421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortEnum? Type422 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResources? Type423 { get; set; } + public global::tryAGI.OpenAI.CostsResultQuantityUnit? Type423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type424 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequest? Type424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type425 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type426 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortEnum? Type426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type427 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResources? Type427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type428 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type429 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type430 { get; set; } + public global::System.Collections.Generic.IList? Type430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type431 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type432 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequest? Type433 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type434 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type435 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type436 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponseProperties? Type437 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequest? Type437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type438 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type438 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type439 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsShared? Type440 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierEnum? Type441 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? Type441 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type442 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityEnum? Type443 { get; set; } + public global::System.Collections.Generic.IList? Type443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type444 { get; set; } + public global::tryAGI.OpenAI.ModelIdsShared? Type444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type445 { get; set; } + public global::tryAGI.OpenAI.ServiceTierEnum? Type445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type446 { get; set; } + public global::System.Collections.Generic.IList? Type446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocation? Type447 { get; set; } + public global::tryAGI.OpenAI.VerbosityEnum? Type447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSize? Type448 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormat? Type449 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator? Type450 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? Type451 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocation? Type451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type452 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSize? Type452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoice? Type453 { get; set; } + public global::tryAGI.OpenAI.ResponseFormat? Type453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type454 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator? Type454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationParam? Type455 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? Type455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StopConfiguration? Type456 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type457 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoice? Type457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContent? Type458 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type459 { get; set; } + public global::tryAGI.OpenAI.ModerationParam? Type459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type460 { get; set; } + public global::tryAGI.OpenAI.StopConfiguration? Type460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletions? Type461 { get; set; } + public global::System.Collections.Generic.Dictionary? Type461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type462 { get; set; } + public global::tryAGI.OpenAI.PredictionContent? Type462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type463 { get; set; } + public global::System.Collections.Generic.IList>? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type464 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type465 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletions? Type465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type466 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type467 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type469 { get; set; } + public global::System.Collections.Generic.IList? Type469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type470 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type471 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs? Type472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type473 { get; set; } + public global::System.Collections.Generic.IList? Type473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type474 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type475 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type476 { get; set; } + public global::System.Collections.Generic.IList? Type476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequest? Type477 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type478 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type479 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type480 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type480 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type481 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequest? Type481 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type482 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponse? Type483 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type483 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type484 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type485 { get; set; } + public global::System.Collections.Generic.IList? Type485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type486 { get; set; } + public global::System.Collections.Generic.IList>? Type486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs? Type487 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponse? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::System.Collections.Generic.IList? Type488 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type489 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type489 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type490 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type491 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs? Type491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBody? Type492 { get; set; } + public global::System.Collections.Generic.IList? Type492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type493 { get; set; } + public global::System.Collections.Generic.IList>? Type493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type494 { get; set; } + public global::System.Collections.Generic.Dictionary? Type494 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type495 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem? Type496 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBody? Type496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParam? Type497 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParam? Type498 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator? Type499 { get; set; } + public global::System.Collections.Generic.IList? Type499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? Type500 { get; set; } + public global::tryAGI.OpenAI.SkillsItem? Type500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit? Type501 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParam? Type501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy? Type502 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParam? Type502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Type503 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator? Type503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Type504 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? Type504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator? Type505 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit? Type505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? Type506 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy? Type506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerFileBody? Type507 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Type507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type508 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Type508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type509 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator? Type509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type510 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? Type510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type511 { get; set; } + public global::tryAGI.OpenAI.CreateContainerFileBody? Type511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type512 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type512 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type513 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Embedding? Type514 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type515 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type516 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type517 { get; set; } + public global::System.Collections.Generic.IList? Type517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type518 { get; set; } + public global::tryAGI.OpenAI.Embedding? Type518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages? Type519 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType? Type520 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type521 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type522 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessage? Type523 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages? Type523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItem? Type524 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType? Type524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages? Type525 { get; set; } + public global::System.Collections.Generic.IList>? Type525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType? Type526 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type527 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessage? Type527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type528 { get; set; } + public global::tryAGI.OpenAI.EvalItem? Type528 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type529 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages? Type529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type530 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType? Type530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type531 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type532 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type533 { get; set; } + public global::System.Collections.Generic.IList? Type533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type534 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type535 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItem? Type536 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? Type537 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type538 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type539 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type540 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItem? Type540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type541 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? Type541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type542 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type542 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type543 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type544 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type545 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequest? Type546 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type547 { get; set; } + public global::System.Collections.Generic.IList? Type547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type548 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type549 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderStringCheck? Type550 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequest? Type550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type551 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPython? Type552 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModel? Type553 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type554 { get; set; } + public global::tryAGI.OpenAI.EvalGraderStringCheck? Type554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type555 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate? Type556 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPython? Type556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType? Type557 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModel? Type557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type558 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type559 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem? Type560 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate? Type560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference? Type561 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType? Type561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType? Type562 { get; set; } + public global::System.Collections.Generic.IList>? Type562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type563 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type564 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem? Type564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Tool? Type565 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference? Type565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type566 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType? Type566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type567 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type568 { get; set; } + public global::System.Collections.Generic.IList? Type568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSource? Type569 { get; set; } + public global::tryAGI.OpenAI.Tool? Type569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRunRequest? Type570 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type571 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type572 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequest? Type573 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSource? Type573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type574 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRunRequest? Type574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfter? Type575 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type576 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type577 { get; set; } + public global::tryAGI.OpenAI.CreateFileRequest? Type577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type578 { get; set; } + public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type579 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfter? Type579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type580 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type581 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type582 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type583 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type584 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type585 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type586 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type586 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type587 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type588 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type589 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type590 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethod? Type591 { get; set; } + public global::System.Collections.Generic.IList? Type591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateGroupBody? Type592 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateGroupUserBody? Type593 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequest? Type594 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type595 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethod? Type595 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type596 { get; set; } + public global::tryAGI.OpenAI.CreateGroupBody? Type596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type597 { get; set; } + public global::tryAGI.OpenAI.CreateGroupUserBody? Type597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type598 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequest? Type598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type599 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type600 { get; set; } + public global::System.Collections.Generic.IList? Type600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type601 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type602 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type603 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFidelity? Type604 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type605 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequest? Type606 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type607 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModel? Type608 { get; set; } + public global::tryAGI.OpenAI.InputFidelity? Type608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestQuality? Type609 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type610 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequest? Type610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type611 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type612 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModel? Type612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestSize? Type613 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestQuality? Type613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModeration? Type614 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestBackground? Type615 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestStyle? Type616 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequest? Type617 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestSize? Type617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type618 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModeration? Type618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type619 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestBackground? Type619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type620 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestStyle? Type620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type621 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequest? Type621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequest? Type622 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestRole? Type623 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>>? Type624 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type625 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type626 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequest? Type626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObject? Type627 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestRole? Type627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type628 { get; set; } + public global::tryAGI.OpenAI.OneOf>>? Type628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type629 { get; set; } + public global::System.Collections.Generic.IList>? Type629 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type630 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item? Type631 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObject? Type631 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type632 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type633 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponseProperties? Type634 { get; set; } + public global::System.Collections.Generic.IList? Type634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type635 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item? Type635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheOptionsParam? Type636 { get; set; } + public global::System.Collections.Generic.IList>? Type636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequest? Type637 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type637 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type638 { get; set; } + public global::tryAGI.OpenAI.ModelResponseProperties? Type638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type639 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type640 { get; set; } + public global::tryAGI.OpenAI.PromptCacheOptionsParam? Type640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type641 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequest? Type641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type642 { get; set; } + public global::System.Collections.Generic.IList>? Type642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type643 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type644 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type645 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestModel? Type646 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponse? Type647 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type648 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResult? Type649 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type650 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestModel? Type650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type651 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponse? Type651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type652 { get; set; } + public global::System.Collections.Generic.IList? Type652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type653 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResult? Type653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type654 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type654 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type655 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type656 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type657 { get; set; } + public global::System.Collections.Generic.IList? Type657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type658 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type658 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type660 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type660 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type661 { get; set; } + public global::System.Collections.Generic.IList? Type661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type662 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type662 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type663 { get; set; } + public global::System.Collections.Generic.IList? Type663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type664 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type664 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type666 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type666 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type667 { get; set; } + public global::System.Collections.Generic.IList? Type667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type668 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type669 { get; set; } + public global::System.Collections.Generic.IList? Type669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type670 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type672 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type673 { get; set; } + public global::System.Collections.Generic.IList? Type673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type674 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type676 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type676 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type677 { get; set; } + public global::System.Collections.Generic.IList? Type677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type678 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponse? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseProperties? Type680 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponseVariant3? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AccessProgramsParam? Type682 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePromptCacheOptionsParam? Type683 { get; set; } + public global::tryAGI.OpenAI.CreateResponse? Type683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierResponsesEnum? Type684 { get; set; } + public global::tryAGI.OpenAI.ResponseProperties? Type684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponseVariant3Truncation? Type685 { get; set; } + public global::tryAGI.OpenAI.CreateResponseVariant3? Type685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Reasoning? Type686 { get; set; } + public global::tryAGI.OpenAI.AccessProgramsParam? Type686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputParam? Type687 { get; set; } + public global::tryAGI.OpenAI.ResponsePromptCacheOptionsParam? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::tryAGI.OpenAI.ServiceTierResponsesEnum? Type688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.IncludeEnum? Type689 { get; set; } + public global::tryAGI.OpenAI.CreateResponseVariant3Truncation? Type689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamOptionsVariant1? Type690 { get; set; } + public global::tryAGI.OpenAI.Reasoning? Type690 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type691 { get; set; } + public global::tryAGI.OpenAI.InputParam? Type691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContextManagementParam? Type692 { get; set; } + public global::System.Collections.Generic.IList? Type692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunRequest? Type693 { get; set; } + public global::tryAGI.OpenAI.IncludeEnum? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamOptionsVariant1? Type694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type695 { get; set; } + public global::System.Collections.Generic.IList? Type695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObject? Type696 { get; set; } + public global::tryAGI.OpenAI.ContextManagementParam? Type696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type697 { get; set; } + public global::tryAGI.OpenAI.CreateRunRequest? Type697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequest? Type698 { get; set; } + public global::System.Collections.Generic.IList? Type698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type699 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type700 { get; set; } + public global::tryAGI.OpenAI.TruncationObject? Type700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>? Type701 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type702 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequest? Type702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsShared? Type703 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestVoice? Type704 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestVoice2? Type705 { get; set; } + public global::tryAGI.OpenAI.AnyOf?, global::tryAGI.OpenAI.CreateSpeechRequestVoice2>? Type705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type706 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type707 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsShared? Type707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type708 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestVoice? Type708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type709 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestVoice2? Type709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type710 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type711 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type712 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpendAlertBody? Type713 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpendAlertBodyCurrency? Type714 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpendAlertBodyInterval? Type715 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendAlertNotificationChannel? Type716 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type717 { get; set; } + public global::tryAGI.OpenAI.CreateSpendAlertBody? Type717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequest? Type718 { get; set; } + public global::tryAGI.OpenAI.CreateSpendAlertBodyCurrency? Type718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type719 { get; set; } + public global::tryAGI.OpenAI.CreateSpendAlertBodyInterval? Type719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type720 { get; set; } + public global::tryAGI.OpenAI.SpendAlertNotificationChannel? Type720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type721 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type722 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequest? Type722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type723 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type724 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type725 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type726 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type726 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type727 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type728 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResources? Type728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type729 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type730 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type731 { get; set; } + public global::System.Collections.Generic.IList? Type731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type732 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type733 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type734 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type735 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type736 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type736 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type737 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionInclude? Type738 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type739 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type740 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type741 { get; set; } + public global::System.Collections.Generic.IList? Type741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type742 { get; set; } + public global::tryAGI.OpenAI.TranscriptionInclude? Type742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfig? Type743 { get; set; } + public global::System.Collections.Generic.IList? Type743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type744 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type745 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type745 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type746 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type747 { get; set; } + public global::tryAGI.OpenAI.VadConfig? Type747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type748 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type749 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type750 { get; set; } + public global::System.Collections.Generic.IList? Type750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type751 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type752 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type753 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionLanguage? Type755 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type755 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type756 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type757 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type758 { get; set; } + public global::System.Collections.Generic.IList? Type758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type759 { get; set; } + public global::tryAGI.OpenAI.TranscriptionLanguage? Type759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type760 { get; set; } + public global::System.Collections.Generic.IList? Type760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type761 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type762 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type763 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type764 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type765 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type766 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionWord? Type767 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type767 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type768 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionSegment? Type769 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequest? Type770 { get; set; } + public global::System.Collections.Generic.IList? Type770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type771 { get; set; } + public global::tryAGI.OpenAI.TranscriptionWord? Type771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type772 { get; set; } + public global::System.Collections.Generic.IList? Type772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type773 { get; set; } + public global::tryAGI.OpenAI.TranscriptionSegment? Type773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type774 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequest? Type774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type775 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequest? Type776 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type777 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type778 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type779 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type780 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequest? Type780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type781 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type782 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type783 { get; set; } + public global::System.Collections.Generic.IList? Type783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type784 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVoiceRequest? Type785 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallType? Type786 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCaller? Type787 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputType? Type788 { get; set; } + public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParam? Type789 { get; set; } + public global::tryAGI.OpenAI.CreateVoiceRequest? Type789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type790 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallType? Type790 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type791 { get; set; } + public global::tryAGI.OpenAI.ToolCallCaller? Type791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type792 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputType? Type792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type793 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParam? Type793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type794 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type795 { get; set; } + public global::System.Collections.Generic.IList? Type795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResource? Type796 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type797 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallStatus? Type798 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type799 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type800 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallResource? Type800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type801 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type802 { get; set; } + public global::tryAGI.OpenAI.FunctionCallStatus? Type802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type803 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type804 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type805 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type806 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type807 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponse? Type808 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type809 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponse? Type810 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type811 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponse? Type812 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponse? Type812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponseObject? Type813 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type814 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponse? Type814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type815 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponse? Type816 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponse? Type816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type817 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponseObject? Type817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteModelResponse? Type818 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponse? Type819 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type820 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponse? Type820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type821 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type822 { get; set; } + public global::tryAGI.OpenAI.DeleteModelResponse? Type822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type823 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponse? Type823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type824 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversation? Type825 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResource? Type826 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type827 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventEvent? Type828 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventData? Type829 { get; set; } + public global::tryAGI.OpenAI.DeletedConversation? Type829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageRole? Type830 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResource? Type830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type831 { get; set; } + public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type831 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type832 { get; set; } + public global::tryAGI.OpenAI.DoneEventEvent? Type832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase? Type833 { get; set; } + public global::tryAGI.OpenAI.DoneEventData? Type833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageType? Type834 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageRole? Type834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type835 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type836 { get; set; } + public global::System.Collections.Generic.IList? Type836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type837 { get; set; } + public global::tryAGI.OpenAI.MessagePhase? Type837 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type838 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageType? Type838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam? Type839 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality? Type840 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity? Type841 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamSize? Type843 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam? Type843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat? Type844 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality? Type844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration? Type845 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity? Type845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground? Type846 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type846 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type847 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamSize? Type847 { get; set; } /// /// /// - public float? Type848 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat? Type848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmbeddingObject? Type849 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration? Type849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error? Type850 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground? Type850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorDetailsResource? Type851 { get; set; } + public global::tryAGI.OpenAI.AnyOf, string>? Type851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorEventEvent? Type852 { get; set; } + public global::System.Collections.Generic.IList? Type852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse? Type853 { get; set; } + public float? Type853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Eval? Type854 { get; set; } + public global::tryAGI.OpenAI.EmbeddingObject? Type854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalObject? Type855 { get; set; } + public global::tryAGI.OpenAI.Error? Type855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type856 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorDetailsResource? Type856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type857 { get; set; } + public global::tryAGI.OpenAI.ErrorEventEvent? Type857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type858 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse? Type858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type859 { get; set; } + public global::tryAGI.OpenAI.Eval? Type859 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type860 { get; set; } + public global::tryAGI.OpenAI.EvalObject? Type860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type861 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderLabelModel? Type862 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalApiError? Type863 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type864 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModel? Type865 { get; set; } + public global::System.Collections.Generic.IList>? Type865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPython? Type866 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type867 { get; set; } + public global::tryAGI.OpenAI.EvalGraderLabelModel? Type867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModel? Type868 { get; set; } + public global::tryAGI.OpenAI.EvalApiError? Type868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type869 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheck? Type870 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModel? Type870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarity? Type871 { get; set; } + public global::tryAGI.OpenAI.GraderPython? Type871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type872 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemRole? Type873 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModel? Type873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContent? Type874 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemType? Type875 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheck? Type875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentItem? Type876 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarity? Type876 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type877 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent? Type878 { get; set; } + public global::tryAGI.OpenAI.EvalItemRole? Type878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputText? Type879 { get; set; } + public global::tryAGI.OpenAI.EvalItemContent? Type879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImage? Type880 { get; set; } + public global::tryAGI.OpenAI.EvalItemType? Type880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudio? Type881 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentItem? Type881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type882 { get; set; } + public global::System.Collections.Generic.IList? Type882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImageType? Type883 { get; set; } + public global::tryAGI.OpenAI.InputTextContent? Type883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type884 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentOutputText? Type884 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type885 { get; set; } + public global::tryAGI.OpenAI.EvalItemInputImage? Type885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type886 { get; set; } + public global::tryAGI.OpenAI.InputAudio? Type886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type887 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalList? Type888 { get; set; } + public global::tryAGI.OpenAI.EvalItemInputImageType? Type888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalListObject? Type889 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type889 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type890 { get; set; } + public global::System.Collections.Generic.IList? Type890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type891 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSourceType? Type892 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRun? Type893 { get; set; } + public global::tryAGI.OpenAI.EvalList? Type893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunObject? Type894 { get; set; } + public global::tryAGI.OpenAI.EvalListObject? Type894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunResultCounts? Type895 { get; set; } + public global::System.Collections.Generic.IList? Type895 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type896 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type897 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSourceType? Type897 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type898 { get; set; } + public global::tryAGI.OpenAI.EvalRun? Type898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type899 { get; set; } + public global::tryAGI.OpenAI.EvalRunObject? Type899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunList? Type900 { get; set; } + public global::tryAGI.OpenAI.EvalRunResultCounts? Type900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunListObject? Type901 { get; set; } + public global::System.Collections.Generic.IList? Type901 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type902 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItem? Type903 { get; set; } + public global::System.Collections.Generic.IList? Type903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type904 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type904 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type905 { get; set; } + public global::tryAGI.OpenAI.EvalRunList? Type905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type906 { get; set; } + public global::tryAGI.OpenAI.EvalRunListObject? Type906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type907 { get; set; } + public global::System.Collections.Generic.IList? Type907 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type908 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItem? Type908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type909 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type909 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type910 { get; set; } + public global::System.Collections.Generic.IList? Type910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type911 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type912 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemList? Type913 { get; set; } + public global::System.Collections.Generic.IList? Type913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type914 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type914 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type915 { get; set; } + public global::System.Collections.Generic.IList? Type915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type916 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type917 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type917 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type918 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemList? Type918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type919 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePath? Type920 { get; set; } + public global::System.Collections.Generic.IList? Type920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePathType? Type921 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchRanker? Type922 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallType? Type923 { get; set; } + public global::System.DateTimeOffset? Type923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type924 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type924 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type925 { get; set; } + public global::tryAGI.OpenAI.FilePath? Type925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type926 { get; set; } + public global::tryAGI.OpenAI.FilePathType? Type926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type927 { get; set; } + public global::tryAGI.OpenAI.FileSearchRanker? Type927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type928 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallType? Type928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type929 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type930 { get; set; } + public global::System.Collections.Generic.IList? Type930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type931 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type932 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type933 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type934 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type935 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type936 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type937 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOMethod? Type938 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethodType? Type939 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type940 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type941 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type942 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type943 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOMethod? Type943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type944 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethodType? Type944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type945 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type946 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type947 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type948 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type949 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type950 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type951 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type952 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type953 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type954 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type955 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type956 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMulti? Type957 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type958 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type959 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type960 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type961 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type962 { get; set; } + public global::tryAGI.OpenAI.GraderMulti? Type962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type963 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type964 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type965 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type966 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegration? Type967 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationType? Type968 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type969 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJob? Type970 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobError? Type971 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type972 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegration? Type972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type973 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationType? Type973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type974 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type975 { get; set; } + public global::tryAGI.OpenAI.FineTuningJob? Type975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type976 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type977 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobErrorVariant1? Type977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type978 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobObject? Type979 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobStatus? Type980 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type980 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type981 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type982 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type983 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type984 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEvent? Type985 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobObject? Type985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventObject? Type986 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobStatus? Type986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type987 { get; set; } + public global::System.Collections.Generic.IList? Type987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventType? Type988 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent? Type989 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent? Type990 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type991 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEvent? Type991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type992 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventObject? Type992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall? Type993 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallType? Type994 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventType? Type994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallStatus? Type995 { get; set; } + public global::tryAGI.OpenAI.InputImageContent? Type995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput? Type996 { get; set; } + public global::tryAGI.OpenAI.InputFileContent? Type996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type997 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type998 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type999 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCall? Type999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type1000 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallType? Type1000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModelType? Type1001 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallStatus? Type1001 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1002 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutput? Type1002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMultiType? Type1003 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type1003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1004 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type1004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPythonType? Type1005 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type1005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelType? Type1006 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type1006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type1007 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModelType? Type1007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckType? Type1008 { get; set; } + public global::System.Collections.Generic.IList? Type1008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckOperation? Type1009 { get; set; } + public global::tryAGI.OpenAI.GraderMultiType? Type1009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityType? Type1010 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type1011 { get; set; } + public global::tryAGI.OpenAI.GraderPythonType? Type1011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Group? Type1012 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelType? Type1012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupObject? Type1013 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type1013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupDeletedResource? Type1014 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckType? Type1014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type1015 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckOperation? Type1015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupListResource? Type1016 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityType? Type1016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupListResourceObject? Type1017 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type1017 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1018 { get; set; } + public global::tryAGI.OpenAI.Group? Type1018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResponse? Type1019 { get; set; } + public global::tryAGI.OpenAI.GroupObject? Type1019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupMemberUser? Type1020 { get; set; } + public global::tryAGI.OpenAI.GroupDeletedResource? Type1020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupMemberUserUserType? Type1021 { get; set; } + public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type1021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type1022 { get; set; } + public global::tryAGI.OpenAI.GroupListResource? Type1022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResponseGroupType? Type1023 { get; set; } + public global::tryAGI.OpenAI.GroupListResourceObject? Type1023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupRoleAssignment? Type1024 { get; set; } + public global::System.Collections.Generic.IList? Type1024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type1025 { get; set; } + public global::tryAGI.OpenAI.GroupResponse? Type1025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Role? Type1026 { get; set; } + public global::tryAGI.OpenAI.GroupMemberUser? Type1026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUser? Type1027 { get; set; } + public global::tryAGI.OpenAI.GroupMemberUserUserType? Type1027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserAssignment? Type1028 { get; set; } + public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type1028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type1029 { get; set; } + public global::tryAGI.OpenAI.GroupResponseGroupType? Type1029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserDeletedResource? Type1030 { get; set; } + public global::tryAGI.OpenAI.GroupRoleAssignment? Type1030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type1031 { get; set; } + public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type1031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedToolPermission? Type1032 { get; set; } + public global::tryAGI.OpenAI.Role? Type1032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedToolPermissionUpdate? Type1033 { get; set; } + public global::tryAGI.OpenAI.GroupUser? Type1033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Image2? Type1034 { get; set; } + public global::tryAGI.OpenAI.GroupUserAssignment? Type1034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1035 { get; set; } + public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type1035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1036 { get; set; } + public global::tryAGI.OpenAI.GroupUserDeletedResource? Type1036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1037 { get; set; } + public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type1037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1038 { get; set; } + public global::tryAGI.OpenAI.HostedToolPermission? Type1038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1039 { get; set; } + public global::tryAGI.OpenAI.HostedToolPermissionUpdate? Type1039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1040 { get; set; } + public global::tryAGI.OpenAI.Image2? Type1040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1041 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type1041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsage? Type1042 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type1042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1043 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1044 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type1044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1045 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type1045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1046 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type1046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1047 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type1047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1048 { get; set; } + public global::tryAGI.OpenAI.ImagesUsage? Type1048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1049 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type1049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1050 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type1050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1051 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type1052 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type1052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1053 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type1053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1054 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type1054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1055 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type1055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1056 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEvent? Type1056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1057 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type1057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1058 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type1058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1059 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type1059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1060 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type1060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1061 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1062 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type1062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1063 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type1063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1064 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type1064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1065 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type1065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1066 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type1066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1067 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type1067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1068 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type1069 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type1069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenTool? Type1070 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type1070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolType? Type1071 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type1071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1072 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type1072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModel? Type1073 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEvent? Type1073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolQuality? Type1074 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type1074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1075 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type1075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolSize? Type1076 { get; set; } + public global::tryAGI.OpenAI.ImageGenTool? Type1076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type1077 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolType? Type1077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModeration? Type1078 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolBackground? Type1079 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModel? Type1079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type1080 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolQuality? Type1080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenActionEnum? Type1081 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponse? Type1082 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolSize? Type1082 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1083 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type1083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseBackground? Type1084 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModeration? Type1084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1085 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolBackground? Type1085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1086 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type1086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseSize? Type1087 { get; set; } + public global::tryAGI.OpenAI.ImageGenActionEnum? Type1087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseQuality? Type1088 { get; set; } + public global::tryAGI.OpenAI.ImagesResponse? Type1088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenUsage? Type1089 { get; set; } + public global::System.Collections.Generic.IList? Type1089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1090 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseBackground? Type1090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioType? Type1091 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1? Type1092 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1093 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseSize? Type1093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentDiscriminator? Type1094 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseQuality? Type1094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type1095 { get; set; } + public global::tryAGI.OpenAI.ImageGenUsage? Type1095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItem? Type1096 { get; set; } + public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Item? Type1097 { get; set; } + public global::tryAGI.OpenAI.InputAudioType? Type1097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionTriggerItemParam? Type1098 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1? Type1098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParam? Type1099 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramItemParam? Type1100 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminator? Type1100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemParam? Type1101 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type1101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminator? Type1102 { get; set; } + public global::tryAGI.OpenAI.InputItem? Type1102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminatorType? Type1103 { get; set; } + public global::tryAGI.OpenAI.Item? Type1103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessage? Type1104 { get; set; } + public global::tryAGI.OpenAI.CompactionTriggerItemParam? Type1104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageType? Type1105 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParam? Type1105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageRole? Type1106 { get; set; } + public global::tryAGI.OpenAI.ProgramItemParam? Type1106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageStatus? Type1107 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemParam? Type1107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResource? Type1108 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminator? Type1108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1109 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminatorType? Type1109 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1110 { get; set; } + public global::tryAGI.OpenAI.InputMessage? Type1110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Invite? Type1111 { get; set; } + public global::tryAGI.OpenAI.InputMessageType? Type1111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteObject? Type1112 { get; set; } + public global::tryAGI.OpenAI.InputMessageRole? Type1112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRole? Type1113 { get; set; } + public global::tryAGI.OpenAI.InputMessageStatus? Type1113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteStatus? Type1114 { get; set; } + public global::tryAGI.OpenAI.InputMessageResource? Type1114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1115 { get; set; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProject? Type1116 { get; set; } + public global::System.Collections.Generic.IList? Type1116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectRole? Type1117 { get; set; } + public global::tryAGI.OpenAI.Invite? Type1117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponse? Type1118 { get; set; } + public global::tryAGI.OpenAI.InviteObject? Type1118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1119 { get; set; } + public global::tryAGI.OpenAI.InviteRole? Type1119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponse? Type1120 { get; set; } + public global::tryAGI.OpenAI.InviteStatus? Type1120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponseObject? Type1121 { get; set; } + public global::System.Collections.Generic.IList? Type1121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1122 { get; set; } + public global::tryAGI.OpenAI.InviteProject? Type1122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1123 { get; set; } + public global::tryAGI.OpenAI.InviteProjectRole? Type1123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequest? Type1124 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponse? Type1124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestRole? Type1125 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1126 { get; set; } + public global::tryAGI.OpenAI.InviteListResponse? Type1126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProject? Type1127 { get; set; } + public global::tryAGI.OpenAI.InviteListResponseObject? Type1127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1128 { get; set; } + public global::System.Collections.Generic.IList? Type1128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessage? Type1129 { get; set; } + public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1130 { get; set; } + public global::tryAGI.OpenAI.InviteRequest? Type1130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1131 { get; set; } + public global::tryAGI.OpenAI.InviteRequestRole? Type1131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1132 { get; set; } + public global::System.Collections.Generic.IList? Type1132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1133 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProject? Type1133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParam? Type1134 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam? Type1135 { get; set; } + public global::tryAGI.OpenAI.OutputMessage? Type1135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1136 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1137 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1138 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1139 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1140 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParam? Type1140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponse? Type1141 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam? Type1141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminator? Type1142 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminatorType? Type1143 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResource? Type1144 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1145 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Type1146 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsResponse? Type1147 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponse? Type1147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1148 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminator? Type1148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1149 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminatorType? Type1149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1150 { get; set; } + public global::tryAGI.OpenAI.ItemResource? Type1150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1151 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponse? Type1152 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Type1152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1153 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsResponse? Type1153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1154 { get; set; } + public global::System.Collections.Generic.IList? Type1154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponse? Type1155 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1156 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificate? Type1157 { get; set; } + public global::System.Collections.Generic.IList? Type1157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1158 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponse? Type1158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesResponse? Type1159 { get; set; } + public global::System.Collections.Generic.IList? Type1159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1160 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFile? Type1161 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponse? Type1161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1162 { get; set; } + public global::System.Collections.Generic.IList? Type1162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1163 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificate? Type1163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1164 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1165 { get; set; } + public global::tryAGI.OpenAI.ListFilesResponse? Type1165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1166 { get; set; } + public global::System.Collections.Generic.IList? Type1166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1167 { get; set; } + public global::tryAGI.OpenAI.OpenAIFile? Type1167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1168 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1169 { get; set; } + public global::System.Collections.Generic.IList? Type1169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1170 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesResponse? Type1171 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1172 { get; set; } + public global::System.Collections.Generic.IList? Type1172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObject? Type1173 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponse? Type1174 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponseObject? Type1175 { get; set; } + public global::System.Collections.Generic.IList? Type1175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1176 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Model18? Type1177 { get; set; } + public global::tryAGI.OpenAI.ListMessagesResponse? Type1177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1178 { get; set; } + public global::System.Collections.Generic.IList? Type1178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1179 { get; set; } + public global::tryAGI.OpenAI.MessageObject? Type1179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1180 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponse? Type1180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesResponse? Type1181 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponseObject? Type1181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1182 { get; set; } + public global::System.Collections.Generic.IList? Type1182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificate? Type1183 { get; set; } + public global::tryAGI.OpenAI.Model18? Type1183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesResponseObject? Type1184 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsResponse? Type1185 { get; set; } + public global::System.Collections.Generic.IList? Type1185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1186 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObject? Type1187 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesResponse? Type1187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsResponse? Type1188 { get; set; } + public global::System.Collections.Generic.IList? Type1188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1189 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificate? Type1189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObject? Type1190 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesResponseObject? Type1190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1191 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsResponse? Type1191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1192 { get; set; } + public global::System.Collections.Generic.IList? Type1192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObject? Type1193 { get; set; } + public global::tryAGI.OpenAI.RunStepObject? Type1193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1194 { get; set; } + public global::tryAGI.OpenAI.ListRunsResponse? Type1194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1195 { get; set; } + public global::System.Collections.Generic.IList? Type1195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObject? Type1196 { get; set; } + public global::tryAGI.OpenAI.RunObject? Type1196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallAcceptRequest? Type1197 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallAcceptSession? Type1198 { get; set; } + public global::System.Collections.Generic.IList? Type1198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsLive? Type1199 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObject? Type1199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMediaSessionAudioParam? Type1200 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1? Type1201 { get; set; } + public global::System.Collections.Generic.IList? Type1201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1202 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObject? Type1202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallAcceptSessionType? Type1203 { get; set; } + public global::tryAGI.OpenAI.LiveCallAcceptRequest? Type1203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallReferRequest? Type1204 { get; set; } + public global::tryAGI.OpenAI.LiveCallAcceptSession? Type1204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCallRejectRequest? Type1205 { get; set; } + public global::tryAGI.OpenAI.ModelIdsLive? Type1205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientEvent? Type1206 { get; set; } + public global::tryAGI.OpenAI.LiveMediaSessionAudioParam? Type1206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartEvent? Type1207 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1? Type1207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParam? Type1208 { get; set; } + public global::System.Collections.Generic.IList? Type1208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEvent? Type1209 { get; set; } + public global::tryAGI.OpenAI.LiveCallAcceptSessionType? Type1209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParam? Type1210 { get; set; } + public global::tryAGI.OpenAI.LiveCallReferRequest? Type1210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam? Type1211 { get; set; } + public global::tryAGI.OpenAI.LiveCallRejectRequest? Type1211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParam? Type1212 { get; set; } + public global::tryAGI.OpenAI.LiveClientEvent? Type1212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParam? Type1213 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartEvent? Type1213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParam? Type1214 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParam? Type1214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParam? Type1215 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendEvent? Type1215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParam? Type1216 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuteParam? Type1216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParam? Type1217 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam? Type1217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientEventDiscriminator? Type1218 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendParam? Type1218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientEventDiscriminatorType? Type1219 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendParam? Type1219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveConnectParams? Type1220 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendParam? Type1220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCreateRequest? Type1221 { get; set; } + public global::tryAGI.OpenAI.LiveResponseItemCreateParam? Type1221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMediaSessionCreateParams? Type1222 { get; set; } + public global::tryAGI.OpenAI.LiveResponseCreateParam? Type1222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebRTCTransport? Type1223 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCloseParam? Type1223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCreateResponse? Type1224 { get; set; } + public global::tryAGI.OpenAI.LiveClientEventDiscriminator? Type1224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCreateResponseSession? Type1225 { get; set; } + public global::tryAGI.OpenAI.LiveClientEventDiscriminatorType? Type1225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkClientEvent? Type1226 { get; set; } + public global::tryAGI.OpenAI.LiveConnectParams? Type1226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionStartEvent? Type1227 { get; set; } + public global::tryAGI.OpenAI.LiveCreateRequest? Type1227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkClientEventDiscriminator? Type1228 { get; set; } + public global::tryAGI.OpenAI.LiveMediaSessionCreateParams? Type1228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkClientEventDiscriminatorType? Type1229 { get; set; } + public global::tryAGI.OpenAI.LiveWebRTCTransport? Type1229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkPathParams? Type1230 { get; set; } + public global::tryAGI.OpenAI.LiveCreateResponse? Type1230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkRequest? Type1231 { get; set; } + public global::tryAGI.OpenAI.LiveCreateResponseSession? Type1231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMediaSessionForkParams? Type1232 { get; set; } + public global::tryAGI.OpenAI.LiveForkClientEvent? Type1232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent? Type1233 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionStartEvent? Type1233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParam? Type1234 { get; set; } + public global::tryAGI.OpenAI.LiveForkClientEventDiscriminator? Type1234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientConfigParam? Type1235 { get; set; } + public global::tryAGI.OpenAI.LiveForkClientEventDiscriminatorType? Type1235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam? Type1236 { get; set; } + public global::tryAGI.OpenAI.LiveForkPathParams? Type1236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2? Type1237 { get; set; } + public global::tryAGI.OpenAI.LiveForkRequest? Type1237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEventDiscriminator? Type1238 { get; set; } + public global::tryAGI.OpenAI.LiveMediaSessionForkParams? Type1238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandClientEvent? Type1239 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent? Type1239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminator? Type1240 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParam? Type1240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminatorType? Type1241 { get; set; } + public global::tryAGI.OpenAI.LiveClientConfigParam? Type1241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandConnectParams? Type1242 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam? Type1242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandPathParams? Type1243 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2? Type1243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandServerEvent? Type1244 { get; set; } + public global::tryAGI.OpenAI.LiveServerEventDiscriminator? Type1244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStarted? Type1245 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandClientEvent? Type1245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdated? Type1246 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminator? Type1246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuted? Type1247 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandClientEventDiscriminatorType? Type1247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuted? Type1248 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandConnectParams? Type1248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppended? Type1249 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandPathParams? Type1249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppended? Type1250 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandServerEvent? Type1250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppended? Type1251 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStarted? Type1251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDelta? Type1252 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdated? Type1252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDelta? Type1253 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuted? Type1253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreated? Type1254 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuted? Type1254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseEvent? Type1255 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppended? Type1255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdated? Type1256 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppended? Type1256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosed? Type1257 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppended? Type1257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveErrorEvent? Type1258 { get; set; } + public global::tryAGI.OpenAI.LiveInputTranscriptDelta? Type1258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInfoEvent? Type1259 { get; set; } + public global::tryAGI.OpenAI.LiveOutputTranscriptDelta? Type1259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminator? Type1260 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationCreated? Type1260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminatorType? Type1261 { get; set; } + public global::tryAGI.OpenAI.LiveResponseEvent? Type1261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebRTCTransportType? Type1262 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsageUpdated? Type1262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallType? Type1263 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosed? Type1263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecAction? Type1264 { get; set; } + public global::tryAGI.OpenAI.LiveErrorEvent? Type1264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1265 { get; set; } + public global::tryAGI.OpenAI.LiveInfoEvent? Type1265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1266 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminator? Type1266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type1267 { get; set; } + public global::tryAGI.OpenAI.LiveSidebandServerEventDiscriminatorType? Type1267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProbProperties? Type1268 { get; set; } + public global::tryAGI.OpenAI.LiveWebRTCTransportType? Type1268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1269 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallType? Type1269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1270 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecAction? Type1270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1271 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsType? Type1272 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1273 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus? Type1273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsTool? Type1274 { get; set; } + public global::tryAGI.OpenAI.LogProbProperties? Type1274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPTool? Type1275 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolType? Type1276 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolConnectorId? Type1277 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1278 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsType? Type1278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolFilter? Type1279 { get; set; } + public global::System.Collections.Generic.IList? Type1279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1280 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsTool? Type1280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1281 { get; set; } + public global::tryAGI.OpenAI.MCPTool? Type1281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1282 { get; set; } + public global::tryAGI.OpenAI.MCPToolType? Type1282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallType? Type1283 { get; set; } + public global::tryAGI.OpenAI.MCPToolConnectorId? Type1283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallError? Type1284 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallStatus? Type1285 { get; set; } + public global::tryAGI.OpenAI.MCPToolFilter? Type1285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPProtocolError? Type1286 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolExecutionError? Type1287 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HTTPError? Type1288 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminator? Type1289 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallType? Type1289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminatorType? Type1290 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallError? Type1290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1291 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallStatus? Type1291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1292 { get; set; } + public global::tryAGI.OpenAI.MCPProtocolError? Type1292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1293 { get; set; } + public global::tryAGI.OpenAI.MCPToolExecutionError? Type1293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1294 { get; set; } + public global::tryAGI.OpenAI.HTTPError? Type1294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1295 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminator? Type1295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1296 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallErrorDiscriminatorType? Type1296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1297 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1298 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1299 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1300 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1301 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1302 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1303 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1304 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObject? Type1305 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1306 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1307 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1307 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1308 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1309 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1310 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1311 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObject? Type1311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1312 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1313 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1314 { get; set; } + public global::System.Collections.Generic.IList>? Type1314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1315 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1316 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1317 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1318 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1319 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1320 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1321 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1322 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1323 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1324 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1325 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1326 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1327 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1328 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1329 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1330 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObject? Type1331 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1332 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1333 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1334 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectObject? Type1335 { get; set; } + public global::System.Collections.Generic.IList>? Type1335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectStatus? Type1336 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetails? Type1337 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObject? Type1337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1338 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectRole? Type1339 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1339 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1340 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1341 { get; set; } + public global::tryAGI.OpenAI.MessageObjectObject? Type1341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1342 { get; set; } + public global::tryAGI.OpenAI.MessageObjectStatus? Type1342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1343 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetails? Type1343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1344 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1345 { get; set; } + public global::tryAGI.OpenAI.MessageObjectRole? Type1345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1346 { get; set; } + public global::System.Collections.Generic.IList? Type1346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1347 { get; set; } + public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1348 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1349 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1350 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1351 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1352 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelObject? Type1353 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1353 { get; set; } /// /// /// - public global::System.DateTime? Type1354 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIds? Type1355 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses? Type1356 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsCompaction? Type1357 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsLiveEnum? Type1358 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1359 { get; set; } + public global::tryAGI.OpenAI.ModelObject? Type1359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1360 { get; set; } + public global::System.DateTime? Type1360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention? Type1361 { get; set; } + public global::tryAGI.OpenAI.ModelIds? Type1361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1362 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponses? Type1362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1363 { get; set; } + public global::tryAGI.OpenAI.ModelIdsCompaction? Type1363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1364 { get; set; } + public global::tryAGI.OpenAI.ModelIdsLiveEnum? Type1364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1365 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1366 { get; set; } + public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyMessageRequest? Type1367 { get; set; } + public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention? Type1367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyRunRequest? Type1368 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequest? Type1369 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources? Type1369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1370 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1371 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1372 { get; set; } + public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NoiseReductionType? Type1373 { get; set; } + public global::tryAGI.OpenAI.ModifyMessageRequest? Type1373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileObject? Type1374 { get; set; } + public global::tryAGI.OpenAI.ModifyRunRequest? Type1374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1375 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequest? Type1375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileStatus? Type1376 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResources? Type1376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateObject? Type1377 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails? Type1378 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateActivationResponse? Type1379 { get; set; } + public global::tryAGI.OpenAI.NoiseReductionType? Type1379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject? Type1380 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileObject? Type1380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse? Type1381 { get; set; } + public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject? Type1382 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileStatus? Type1382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationDataRetention? Type1383 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateObject? Type1383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationDataRetentionObject? Type1384 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails? Type1384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationDataRetentionType? Type1385 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateActivationResponse? Type1385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateObject? Type1386 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject? Type1386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateCertificateDetails? Type1387 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse? Type1387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponse? Type1388 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject? Type1388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject? Type1389 { get; set; } + public global::tryAGI.OpenAI.OrganizationDataRetention? Type1389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse? Type1390 { get; set; } + public global::tryAGI.OpenAI.OrganizationDataRetentionObject? Type1390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject? Type1391 { get; set; } + public global::tryAGI.OpenAI.OrganizationDataRetentionType? Type1391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlert? Type1392 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateObject? Type1392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertObject? Type1393 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateCertificateDetails? Type1393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertCurrency? Type1394 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponse? Type1394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertInterval? Type1395 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject? Type1395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResource? Type1396 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse? Type1396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResourceObject? Type1397 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject? Type1397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertListResource? Type1398 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlert? Type1398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject? Type1399 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertObject? Type1399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1400 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertCurrency? Type1400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1401 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertInterval? Type1401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1402 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResource? Type1402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudio? Type1403 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertDeletedResourceObject? Type1403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudioType? Type1404 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertListResource? Type1404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent? Type1405 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendAlertListResourceObject? Type1405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent? Type1406 { get; set; } + public global::System.Collections.Generic.IList? Type1406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContent? Type1407 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1408 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type1409 { get; set; } + public global::tryAGI.OpenAI.OutputAudio? Type1409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItem? Type1410 { get; set; } + public global::tryAGI.OpenAI.OutputAudioType? Type1410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1411 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent? Type1411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminatorType? Type1412 { get; set; } + public global::tryAGI.OpenAI.RefusalContent? Type1412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageType? Type1413 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContent? Type1413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageRole? Type1414 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1415 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type1415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContent? Type1416 { get; set; } + public global::tryAGI.OpenAI.OutputItem? Type1416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageStatus? Type1417 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1418 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminatorType? Type1418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type1419 { get; set; } + public global::tryAGI.OpenAI.OutputMessageType? Type1419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PermissionErrorResponse? Type1420 { get; set; } + public global::tryAGI.OpenAI.OutputMessageRole? Type1420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1421 { get; set; } + public global::System.Collections.Generic.IList? Type1421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContentType? Type1422 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContent? Type1422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Project? Type1423 { get; set; } + public global::tryAGI.OpenAI.OutputMessageStatus? Type1423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectObject? Type1424 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicProjectResidency? Type1425 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type1425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKey? Type1426 { get; set; } + public global::tryAGI.OpenAI.PermissionErrorResponse? Type1426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1427 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerProjectAccess? Type1428 { get; set; } + public global::tryAGI.OpenAI.PredictionContentType? Type1428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1429 { get; set; } + public global::tryAGI.OpenAI.Project? Type1429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1430 { get; set; } + public global::tryAGI.OpenAI.ProjectObject? Type1430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerUser? Type1431 { get; set; } + public global::tryAGI.OpenAI.PublicProjectResidency? Type1431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerServiceAccount? Type1432 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKey? Type1432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1433 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1434 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerProjectAccess? Type1434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1435 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1436 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1436 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1437 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerUser? Type1437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectCreateRequest? Type1438 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerServiceAccount? Type1438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectDataRetention? Type1439 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectDataRetentionObject? Type1440 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectDataRetentionType? Type1441 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroup? Type1442 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupObject? Type1443 { get; set; } + public global::System.Collections.Generic.IList? Type1443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupGroupType? Type1444 { get; set; } + public global::tryAGI.OpenAI.ProjectCreateRequest? Type1444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1445 { get; set; } + public global::tryAGI.OpenAI.ProjectDataRetention? Type1445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1446 { get; set; } + public global::tryAGI.OpenAI.ProjectDataRetentionObject? Type1446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupListResource? Type1447 { get; set; } + public global::tryAGI.OpenAI.ProjectDataRetentionType? Type1447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1448 { get; set; } + public global::tryAGI.OpenAI.ProjectGroup? Type1448 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1449 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupObject? Type1449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectHostedToolPermissions? Type1450 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupGroupType? Type1450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectHostedToolPermissionsUpdateRequest? Type1451 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponse? Type1452 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponseObject? Type1453 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupListResource? Type1453 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1454 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissions? Type1455 { get; set; } + public global::System.Collections.Generic.IList? Type1455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsObject? Type1456 { get; set; } + public global::tryAGI.OpenAI.ProjectHostedToolPermissions? Type1456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsMode? Type1457 { get; set; } + public global::tryAGI.OpenAI.ProjectHostedToolPermissionsUpdateRequest? Type1457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponse? Type1458 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponse? Type1458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponseObject? Type1459 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponseObject? Type1459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequest? Type1460 { get; set; } + public global::System.Collections.Generic.IList? Type1460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequestMode? Type1461 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissions? Type1461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimit? Type1462 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsObject? Type1462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1463 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsMode? Type1463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1464 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponse? Type1464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1465 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsDeleteResponseObject? Type1465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1466 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequest? Type1466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1467 { get; set; } + public global::tryAGI.OpenAI.ProjectModelPermissionsUpdateRequestMode? Type1467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccount? Type1468 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimit? Type1468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1469 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1470 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1471 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1472 { get; set; } + public global::System.Collections.Generic.IList? Type1472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1473 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1474 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccount? Type1474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1475 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1476 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1477 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1478 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1479 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1480 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1480 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1481 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlert? Type1482 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertObject? Type1483 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertCurrency? Type1484 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertInterval? Type1485 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResource? Type1486 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResourceObject? Type1487 { get; set; } + public global::System.Collections.Generic.IList? Type1487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertListResource? Type1488 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlert? Type1488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendAlertListResourceObject? Type1489 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertObject? Type1489 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1490 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertCurrency? Type1490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1491 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertInterval? Type1491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUser? Type1492 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResource? Type1492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserObject? Type1493 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertDeletedResourceObject? Type1493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1494 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertListResource? Type1494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1495 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendAlertListResourceObject? Type1495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1496 { get; set; } + public global::System.Collections.Generic.IList? Type1496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserListResponse? Type1497 { get; set; } + public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1497 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1498 { get; set; } + public global::tryAGI.OpenAI.ProjectUser? Type1498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1499 { get; set; } + public global::tryAGI.OpenAI.ProjectUserObject? Type1499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptVariant1? Type1500 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1501 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1502 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRoleListResource? Type1503 { get; set; } + public global::tryAGI.OpenAI.ProjectUserListResponse? Type1503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1504 { get; set; } + public global::System.Collections.Generic.IList? Type1504 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1505 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1506 { get; set; } + public global::tryAGI.OpenAI.PromptVariant1? Type1506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1507 { get; set; } + public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1508 { get; set; } + public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1509 { get; set; } + public global::tryAGI.OpenAI.PublicRoleListResource? Type1509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1510 { get; set; } + public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1511 { get; set; } + public global::System.Collections.Generic.IList? Type1511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1512 { get; set; } + public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1513 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1514 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1515 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItem? Type1516 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1517 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1518 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1519 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1520 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1521 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1522 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItem? Type1522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1523 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1524 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1525 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1526 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1527 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1528 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1529 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1530 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1531 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1532 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1533 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1534 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1535 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1536 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1537 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1538 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1539 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1540 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1541 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1542 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1543 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1544 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1545 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1546 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1547 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1548 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1548 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1549 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1550 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1551 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1552 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1553 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1553 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1554 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1555 { get; set; } + public global::System.Collections.Generic.IList? Type1555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1556 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1557 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1558 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1559 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1560 { get; set; } + public global::System.Collections.Generic.IList? Type1560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1561 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1561 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1562 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1563 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1564 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1565 { get; set; } + public global::System.Collections.Generic.IList? Type1565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceOptions? Type1566 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunction? Type1567 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCP? Type1568 { get; set; } + public global::System.Collections.Generic.IList? Type1568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1569 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1570 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1571 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1572 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceOptions? Type1572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1573 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunction? Type1573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1574 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCP? Type1574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1575 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1576 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1577 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1578 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1579 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1580 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1581 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1582 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1583 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1584 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1585 { get; set; } + public global::System.Collections.Generic.IList? Type1585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1586 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1587 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1588 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1589 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1590 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1591 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1592 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1593 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1594 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1595 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1596 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1597 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1598 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1599 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1600 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1601 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1602 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1603 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1604 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1605 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1606 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1607 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1608 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1609 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1609 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1610 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1611 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1612 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1613 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1614 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1615 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1616 { get; set; } + public global::System.Collections.Generic.IList? Type1616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1617 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1618 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1619 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1620 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1621 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1622 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1623 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1624 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1625 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1626 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1627 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1628 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1629 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1630 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1631 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1632 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1633 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1634 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1635 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1636 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1637 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1638 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1639 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1640 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1641 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1642 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1643 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1644 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1645 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1646 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1647 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1648 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1649 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1650 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1651 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1652 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1653 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1654 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1655 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1656 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSession? Type1657 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1658 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1659 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1660 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1661 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1662 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1663 { get; set; } + public global::tryAGI.OpenAI.RealtimeSession? Type1663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1664 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1665 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1666 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1667 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1668 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEvent? Type1669 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1670 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1671 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1672 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1673 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1674 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1675 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEvent? Type1675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1676 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1677 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1678 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1679 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1680 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1681 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type1682 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1683 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1684 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1685 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1686 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1687 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1688 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type1688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1689 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1690 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1691 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1692 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1693 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1694 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1695 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1696 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1697 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1698 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1699 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1700 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1701 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1702 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1703 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1704 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1705 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1706 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1707 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1708 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type1709 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1710 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1711 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1712 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1713 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1714 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1715 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type1715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1716 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1717 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1718 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1719 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1719 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1720 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1721 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1722 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1723 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1724 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1725 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1726 { get; set; } + public global::System.Collections.Generic.IList? Type1726 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1727 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1728 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1729 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1730 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1731 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1732 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1733 { get; set; } + public global::System.Collections.Generic.IList? Type1733 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1734 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1735 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1736 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1737 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1738 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1739 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1740 { get; set; } + public global::System.Collections.Generic.IList? Type1740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1741 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1742 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1742 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1743 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1744 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1745 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1746 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1747 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1748 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1749 { get; set; } + public global::System.Collections.Generic.IList? Type1749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Session2? Type1750 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1751 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1752 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1753 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type1754 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1755 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1756 { get; set; } + public global::tryAGI.OpenAI.Session2? Type1756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1757 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1758 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1759 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1760 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type1760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1761 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1762 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1763 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1764 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1765 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1766 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1767 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeReasoning? Type1768 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeReasoningEffort? Type1769 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponse? Type1770 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseObject? Type1771 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1772 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1773 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1774 { get; set; } + public global::tryAGI.OpenAI.RealtimeReasoning? Type1774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1775 { get; set; } + public global::tryAGI.OpenAI.RealtimeReasoningEffort? Type1775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1776 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponse? Type1776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1777 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseObject? Type1777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1778 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1779 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1780 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1781 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1782 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1783 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1784 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1785 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1786 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1787 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1788 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1789 { get; set; } + public global::System.Collections.Generic.IList? Type1789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1790 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1790 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1791 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1792 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1793 { get; set; } + public global::System.Collections.Generic.IList? Type1793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1794 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1795 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1796 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEvent? Type1797 { get; set; } + public global::System.Collections.Generic.IList>? Type1797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1798 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1799 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1800 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1801 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1802 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1803 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEvent? Type1803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1804 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1805 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError? Type1806 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1807 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1808 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1809 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1810 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1811 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1812 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventError? Type1812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1813 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1814 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1815 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1816 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1817 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1818 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1819 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1820 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1821 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1822 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1823 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1824 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1825 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1826 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1827 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1828 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1829 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1830 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1831 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1832 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1833 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1834 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1835 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1836 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1837 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1838 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1839 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1840 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1841 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1842 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1843 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1844 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type1845 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1846 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1847 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1848 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1849 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1850 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1851 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type1851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1852 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1853 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1854 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1855 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1856 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1857 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1858 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1859 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1860 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1861 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1862 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1863 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1864 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1865 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1866 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1867 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1868 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1869 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1870 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1871 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1872 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1873 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1873 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1874 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1875 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1876 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1877 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1878 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1879 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1880 { get; set; } + public global::System.Collections.Generic.IList? Type1880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1881 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1882 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1883 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1884 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1885 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1886 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1887 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1888 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1889 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1890 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1891 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1892 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1893 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1894 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1895 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1896 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1897 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1898 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1899 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1900 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1901 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1902 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1903 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1904 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionObject? Type1905 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1905 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1906 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1907 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1908 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionModel? Type1909 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1910 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1911 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionObject? Type1911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1912 { get; set; } + public global::System.Collections.Generic.IList? Type1912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1913 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1914 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1915 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionModel? Type1915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1916 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1916 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1917 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1918 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1919 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1919 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1920 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1921 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1922 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1922 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1923 { get; set; } + public global::System.Collections.Generic.IList? Type1923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1924 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1925 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1926 { get; set; } + public global::System.Collections.Generic.IList? Type1926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1927 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1928 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1929 { get; set; } + public global::System.Collections.Generic.IList? Type1929 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1930 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1931 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1932 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1933 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1934 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncation? Type1935 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1936 { get; set; } + public global::System.Collections.Generic.IList? Type1936 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1937 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1938 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1939 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1940 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1941 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncation? Type1941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1942 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1943 { get; set; } + public global::System.Collections.Generic.IList? Type1943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1944 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1944 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1945 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1946 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1947 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1948 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1949 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1950 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1951 { get; set; } + public global::System.Collections.Generic.IList? Type1951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1952 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1952 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1953 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1954 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1954 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1955 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1956 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1957 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1958 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1959 { get; set; } + public global::System.Collections.Generic.IList? Type1959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1960 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1961 { get; set; } + public global::System.Collections.Generic.IList? Type1961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1962 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1963 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1964 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1965 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1966 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1967 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1968 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAObject? Type1969 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1969 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1970 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1971 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1972 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1973 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1974 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1975 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAObject? Type1975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1976 { get; set; } + public global::System.Collections.Generic.IList? Type1976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1977 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1977 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1978 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1979 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1980 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1981 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1982 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1983 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1984 { get; set; } + public global::System.Collections.Generic.IList? Type1984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1985 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1986 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1987 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1987 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1988 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1989 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1990 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1991 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1992 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1993 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1993 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1994 { get; set; } + public global::System.Collections.Generic.IList? Type1994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1995 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1996 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1996 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1997 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1998 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1999 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type2000 { get; set; } + public global::System.Collections.Generic.IList? Type2000 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2001 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type2001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type2002 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type2002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type2003 { get; set; } + public global::System.Collections.Generic.IList? Type2003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type2004 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type2004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type2005 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type2005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection? Type2006 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type2006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type2007 { get; set; } + public global::System.Collections.Generic.IList? Type2007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type2008 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type2008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type2009 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type2009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type2010 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type2010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type2011 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type2011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type2012 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection? Type2012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type2013 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type2013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type2014 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type2014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type2015 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type2015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type2016 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type2016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type2017 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type2017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type2018 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type2018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type2019 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type2019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type2020 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type2020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type2021 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type2021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSession? Type2022 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type2022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type2023 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type2023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type2024 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type2024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type2025 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type2025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type2026 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type2026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type2027 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type2027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type2028 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSession? Type2028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type2029 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type2029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type2030 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type2030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type2031 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type2031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type2032 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type2032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type2033 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type2033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type2034 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type2034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type2035 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type2035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type2036 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type2036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type2037 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type2037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type2038 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type2038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type2039 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type2039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type2040 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type2040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type2041 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type2041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription? Type2042 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type2042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction? Type2043 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type2043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type2044 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type2044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type2045 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type2045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type2046 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type2046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription? Type2047 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type2047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction? Type2048 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription? Type2048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type2049 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction? Type2049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type2050 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type2050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type2051 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type2051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription? Type2052 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type2052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction? Type2053 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription? Type2053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type2054 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction? Type2054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type2055 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type2055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type2056 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type2056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type2057 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type2057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type2058 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription? Type2058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type2059 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction? Type2059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type2060 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type2060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type2061 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type2061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type2062 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type2062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type2063 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type2063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningModeEnum? Type2064 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type2064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummary? Type2065 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type2065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningContext? Type2066 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type2066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type2067 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type2067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemType? Type2068 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type2068 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2069 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type2069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContent? Type2070 { get; set; } + public global::tryAGI.OpenAI.ReasoningModeEnum? Type2070 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2071 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummary? Type2071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type2072 { get; set; } + public global::tryAGI.OpenAI.ReasoningContext? Type2072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Response? Type2073 { get; set; } + public global::tryAGI.OpenAI.ReasoningGenerateSummary? Type2073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3? Type2074 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemType? Type2074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Truncation? Type2075 { get; set; } + public global::System.Collections.Generic.IList? Type2075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type2076 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContent? Type2076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type2077 { get; set; } + public global::System.Collections.Generic.IList? Type2077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AccessProgramsBody? Type2078 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemStatus? Type2078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorVariant1? Type2079 { get; set; } + public global::tryAGI.OpenAI.Response? Type2079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type2080 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3? Type2080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type2081 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Truncation? Type2081 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2082 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Object? Type2082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2083 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Status? Type2083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsage? Type2084 { get; set; } + public global::tryAGI.OpenAI.AccessProgramsBody? Type2084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheOptions? Type2085 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorVariant1? Type2085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnostics? Type2086 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails? Type2086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Moderation? Type2087 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type2087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConversation? Type2088 { get; set; } + public global::System.Collections.Generic.IList? Type2088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type2089 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type2090 { get; set; } + public global::tryAGI.OpenAI.ResponseUsage? Type2090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type2091 { get; set; } + public global::tryAGI.OpenAI.PromptCacheOptions? Type2091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type2092 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnostics? Type2092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type2093 { get; set; } + public global::tryAGI.OpenAI.Moderation? Type2093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type2094 { get; set; } + public global::tryAGI.OpenAI.ResponseConversation? Type2094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type2095 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type2095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type2096 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type2096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type2097 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type2097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type2098 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type2098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type2099 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type2099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type2100 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type2100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type2101 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type2101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type2102 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type2102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type2103 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type2103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type2104 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type2104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type2105 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type2105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type2106 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type2106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingEvent? Type2107 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type2107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent? Type2108 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type2108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type2109 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type2109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type2110 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type2110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateType? Type2111 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type2111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateReasoning? Type2112 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type2112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamType? Type2113 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingEvent? Type2113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamReasoning? Type2114 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent? Type2114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type2115 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type2115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type2116 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type2116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type2117 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateType? Type2117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type2118 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateReasoning? Type2118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type2119 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamType? Type2119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type2120 { get; set; } + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParamReasoning? Type2120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type2121 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type2121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type2122 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type2122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type2123 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type2123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type2124 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type2124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type2125 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type2125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type2126 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type2126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type2127 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type2127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type2128 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type2128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type2129 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type2129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type2130 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type2130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type2131 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorCode? Type2131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type2132 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEvent? Type2132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type2133 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEventType? Type2133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type2134 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEvent? Type2134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type2135 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEventType? Type2135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type2136 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type2136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type2137 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type2137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type2138 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type2138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type2139 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type2139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextType? Type2140 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type2140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type2141 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type2141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type2142 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type2142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPython? Type2143 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type2143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type2144 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type2144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type2145 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type2145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type2146 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextType? Type2146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type2147 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type2147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type2148 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type2148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type2149 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPython? Type2149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type2150 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type2150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type2151 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type2151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type2152 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type2152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type2153 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type2153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type2154 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type2154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type2155 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type2155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type2156 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type2156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type2157 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type2157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type2158 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type2158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type2159 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type2159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type2160 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type2160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemList? Type2161 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type2161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type2162 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type2162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2163 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type2163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProb? Type2164 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type2164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2165 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type2165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type2166 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type2166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type2167 { get; set; } + public global::tryAGI.OpenAI.ResponseItemList? Type2167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type2168 { get; set; } + public global::tryAGI.OpenAI.ResponseItemListObject? Type2168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type2169 { get; set; } + public global::System.Collections.Generic.IList? Type2169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type2170 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProb? Type2170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type2171 { get; set; } + public global::System.Collections.Generic.IList? Type2171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type2172 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type2172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type2173 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type2173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type2174 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type2174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type2175 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type2175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type2176 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type2176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type2177 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type2177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type2178 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type2178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type2179 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type2179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type2180 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type2180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type2181 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type2181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type2182 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type2182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type2183 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type2183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type2184 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type2184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type2185 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type2185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type2186 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type2186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type2187 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type2187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type2188 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type2188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type2189 { get; set; } + public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type2189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Annotation? Type2190 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type2190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2191 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type2191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextParam? Type2192 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type2192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceParam? Type2193 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type2193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type2194 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type2194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type2195 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type2195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type2196 { get; set; } + public global::tryAGI.OpenAI.Annotation? Type2196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type2197 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type2198 { get; set; } + public global::tryAGI.OpenAI.ResponseTextParam? Type2198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type2199 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceParam? Type2199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type2200 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type2200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2201 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type2201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventStatus? Type2202 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type2202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type2203 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type2203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2204 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type2204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2205 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type2205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2206 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type2206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2207 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2208 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventStatus? Type2208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2209 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type2209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2210 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2211 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2212 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2213 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2214 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2215 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2216 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEvent? Type2217 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEventType? Type2218 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEventSteer? Type2219 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerErrorCode? Type2220 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum? Type2221 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerEvent? Type2222 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerEventType? Type2223 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerAcceptedEvent? Type2223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInput? Type2224 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerAcceptedEventType? Type2224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEvent? Type2225 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerAcceptedEventSteer? Type2225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventType? Type2226 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerErrorCode? Type2226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventSteer? Type2227 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum? Type2227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventError? Type2228 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerEvent? Type2228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEventErrorType? Type2229 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerEventType? Type2229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2230 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInput? Type2230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInputItem? Type2231 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEvent? Type2231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParam? Type2232 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventType? Type2232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminator? Type2233 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventSteer? Type2233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminatorType? Type2234 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventError? Type2234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEvent? Type2235 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerFailedEventErrorType? Type2235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEventType? Type2236 { get; set; } + public global::System.Collections.Generic.IList? Type2236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEventSteer? Type2237 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInputItem? Type2237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingReason? Type2238 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParam? Type2238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2239 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminator? Type2239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInput? Type2240 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerInputItemDiscriminatorType? Type2240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum? Type2241 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingEvent? Type2241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type2242 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingEventType? Type2242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type2243 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingEventSteer? Type2243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput? Type2244 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingReason? Type2244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type2245 { get; set; } + public global::System.Collections.Generic.IList? Type2245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput? Type2246 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInput? Type2246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type2247 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum? Type2247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput? Type2248 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type2248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutputType? Type2249 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type2249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type2250 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput? Type2250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type2251 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type2251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput? Type2252 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput? Type2252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputType? Type2253 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type2253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type2254 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput? Type2254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse? Type2255 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutputType? Type2255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type2256 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type2256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminator? Type2257 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type2257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminatorType? Type2258 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput? Type2258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type2259 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputType? Type2259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent? Type2260 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type2260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent? Type2261 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse? Type2261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent? Type2262 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type2262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent? Type2263 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminator? Type2263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent? Type2264 { get; set; } + public global::tryAGI.OpenAI.ResponseSteerRequiredInputDiscriminatorType? Type2264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2265 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEvent? Type2265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2266 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent? Type2266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2267 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent? Type2267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2268 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent? Type2268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2269 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent? Type2269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2270 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent? Type2270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type2271 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2272 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2273 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2274 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type2275 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type2276 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2277 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type2277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2278 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2279 { get; set; } + public global::System.Collections.Generic.IList? Type2279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWsError? Type2280 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWsErrorType? Type2281 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type2281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorPayload? Type2282 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type2282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEvent? Type2283 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type2284 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type2285 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminatorType? Type2286 { get; set; } + public global::tryAGI.OpenAI.ResponseWsError? Type2286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type2287 { get; set; } + public global::tryAGI.OpenAI.ResponseWsErrorType? Type2287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type2288 { get; set; } + public global::tryAGI.OpenAI.ErrorPayload? Type2288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEvent? Type2289 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEvent? Type2289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2290 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type2290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2? Type2291 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type2291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2292 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminatorType? Type2292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2? Type2293 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type2293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2294 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type2294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2? Type2295 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEvent? Type2295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2296 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDone2? Type2297 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDelta2? Type2297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2298 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDelta2? Type2299 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioWsDone2? Type2299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2300 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDone2? Type2301 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDelta2? Type2301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2302 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsCompleted2? Type2303 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseAudioTranscriptWsDone2? Type2303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2304 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallInWsProgress2? Type2305 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDelta2? Type2305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2306 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsInterpreting2? Type2307 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallCodeWsDone2? Type2307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2308 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCompactionWsCompacting2? Type2309 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsCompleted2? Type2309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2310 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCompleted2? Type2311 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallInWsProgress2? Type2311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2312 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsAdded2? Type2313 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCodeInterpreterCallWsInterpreting2? Type2313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2314 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsDone2? Type2315 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCompactionWsCompacting2? Type2315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2316 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCreated2? Type2317 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCompleted2? Type2317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2318 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsCompleted2? Type2319 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsAdded2? Type2319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2320 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallInWsProgress2? Type2321 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseContentPartWsDone2? Type2321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2322 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsSearching2? Type2323 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsCreated2? Type2323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2324 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDelta2? Type2325 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsCompleted2? Type2325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2326 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDone2? Type2327 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallInWsProgress2? Type2327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2328 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsAdded2? Type2329 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFileSearchCallWsSearching2? Type2329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2330 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDelta2? Type2331 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDelta2? Type2331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2332 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDone2? Type2333 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseFunctionCallArgumentsWsDone2? Type2333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2334 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDelta2? Type2335 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsAdded2? Type2335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2336 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDone2? Type2337 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDelta2? Type2337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2338 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseInWsProgress2? Type2339 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallCommandWsDone2? Type2339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2340 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsFailed2? Type2341 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDelta2? Type2341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2342 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsIncomplete2? Type2343 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseShellCallOutputContentWsDone2? Type2343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2344 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsAdded2? Type2345 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseInWsProgress2? Type2345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2346 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsDone2? Type2347 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsFailed2? Type2347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2348 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsAdded2? Type2349 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsIncomplete2? Type2349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2350 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsDone2? Type2351 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsAdded2? Type2351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2352 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDelta2? Type2353 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputItemWsDone2? Type2353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2354 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDone2? Type2355 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsAdded2? Type2355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2356 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDelta2? Type2357 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryPartWsDone2? Type2357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2358 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDone2? Type2359 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDelta2? Type2359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2360 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDelta2? Type2361 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningSummaryTextWsDone2? Type2361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2362 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDone2? Type2363 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDelta2? Type2363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2364 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDelta2? Type2365 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseReasoningTextWsDone2? Type2365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2366 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDone2? Type2367 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDelta2? Type2367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2368 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsCompleted2? Type2369 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseRefusalWsDone2? Type2369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2370 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallInWsProgress2? Type2371 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDelta2? Type2371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2372 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsSearching2? Type2373 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseTextWsDone2? Type2373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2374 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsCompleted2? Type2375 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsCompleted2? Type2375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2376 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsGenerating2? Type2377 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallInWsProgress2? Type2377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2378 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallInWsProgress2? Type2379 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWebSearchCallWsSearching2? Type2379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2380 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallPartialWsImage2? Type2381 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsCompleted2? Type2381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2382 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDelta2? Type2383 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallWsGenerating2? Type2383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2384 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDone2? Type2385 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallInWsProgress2? Type2385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2386 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsCompleted2? Type2387 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseImageGenCallPartialWsImage2? Type2387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2388 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsFailed2? Type2389 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDelta2? Type2389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2390 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallInWsProgress2? Type2391 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallArgumentsWsDone2? Type2391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2392 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsCompleted2? Type2393 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsCompleted2? Type2393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2394 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsFailed2? Type2395 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallWsFailed2? Type2395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2396 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsInWsProgress2? Type2397 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpCallInWsProgress2? Type2397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2398 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputTextAnnotationWsAdded2? Type2399 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsCompleted2? Type2399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2400 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseWsQueued2? Type2401 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsWsFailed2? Type2401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2402 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDelta2? Type2403 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseMcpListToolsInWsProgress2? Type2403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2404 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDone2? Type2405 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseOutputTextAnnotationWsAdded2? Type2405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2406 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminatorType? Type2407 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseWsQueued2? Type2407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesWebSocketStreamEvent? Type2408 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2? Type2409 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDelta2? Type2409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleObject? Type2410 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResource? Type2411 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventResponseCustomToolCallInputWsDone2? Type2411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2412 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResource? Type2413 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminatorType? Type2413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResourceObject? Type2414 { get; set; } + public global::tryAGI.OpenAI.ResponsesWebSocketStreamEvent? Type2414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2415 { get; set; } + public global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2? Type2415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2416 { get; set; } + public global::tryAGI.OpenAI.RoleObject? Type2416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequest? Type2417 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResource? Type2417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponse? Type2418 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2419 { get; set; } + public global::tryAGI.OpenAI.RoleListResource? Type2419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2420 { get; set; } + public global::tryAGI.OpenAI.RoleListResourceObject? Type2420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectObject? Type2421 { get; set; } + public global::System.Collections.Generic.IList? Type2421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectStatus? Type2422 { get; set; } + public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2423 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequest? Type2423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2424 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponse? Type2424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2425 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2426 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObject? Type2427 { get; set; } + public global::tryAGI.OpenAI.RunObjectObject? Type2427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastError? Type2428 { get; set; } + public global::tryAGI.OpenAI.RunObjectStatus? Type2428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2429 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2430 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2431 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2432 { get; set; } + public global::System.Collections.Generic.IList? Type2432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObject? Type2433 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObject? Type2433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2434 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastError? Type2434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2435 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2436 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2437 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2438 { get; set; } + public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2439 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObject? Type2439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2440 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2441 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2442 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2443 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2444 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2445 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2446 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2447 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2448 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2449 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2450 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2451 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2452 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2453 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2454 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2455 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2456 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2457 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2458 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2459 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2460 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2461 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2461 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2462 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2463 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2464 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2465 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2466 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2467 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2468 { get; set; } + public global::System.Collections.Generic.IList>? Type2468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2469 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2470 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2471 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2472 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2472 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2473 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2474 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2474 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2475 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2476 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2477 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2478 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2479 { get; set; } + public global::System.Collections.Generic.IList? Type2479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2480 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2481 { get; set; } + public global::System.Collections.Generic.IList? Type2481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2482 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectObject? Type2483 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectType? Type2484 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectStatus? Type2485 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2486 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastError? Type2487 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2488 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2489 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectObject? Type2489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2490 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectType? Type2490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2491 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStatus? Type2491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2492 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2493 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastError? Type2493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2494 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2495 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2496 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2497 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2498 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2499 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2500 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2501 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2502 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2503 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2504 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2505 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2506 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2507 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2508 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2509 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2510 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2511 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2512 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2513 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2514 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2515 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2516 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2517 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2518 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2519 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2520 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2521 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2522 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectType? Type2523 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2524 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2525 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2526 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2527 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendAlertNotificationChannelType? Type2528 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2529 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectType? Type2529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2530 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2531 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2532 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2533 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2533 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2534 { get; set; } + public global::tryAGI.OpenAI.SpendAlertNotificationChannelType? Type2534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2535 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2536 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2537 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObject? Type2538 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectObject? Type2539 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResources? Type2540 { get; set; } + public global::System.Collections.Generic.IList? Type2540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2541 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2542 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2543 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2544 { get; set; } + public global::tryAGI.OpenAI.ThreadObject? Type2544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2545 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectObject? Type2545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionTool? Type2546 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResources? Type2546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchTool? Type2547 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerTool? Type2548 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2549 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchTool? Type2550 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgrammaticToolCallingParam? Type2551 { get; set; } + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParam? Type2552 { get; set; } + public global::tryAGI.OpenAI.FunctionTool? Type2552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParam? Type2553 { get; set; } + public global::tryAGI.OpenAI.FileSearchTool? Type2553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParam? Type2554 { get; set; } + public global::tryAGI.OpenAI.ComputerTool? Type2554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParam? Type2555 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParam? Type2556 { get; set; } + public global::tryAGI.OpenAI.WebSearchTool? Type2556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2557 { get; set; } + public global::tryAGI.OpenAI.ProgrammaticToolCallingParam? Type2557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2558 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParam? Type2558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type2559 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParam? Type2559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminatorType? Type2560 { get; set; } + public global::tryAGI.OpenAI.CustomToolParam? Type2560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2561 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParam? Type2561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2562 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParam? Type2562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2563 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustom? Type2564 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2565 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminator? Type2565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2566 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminatorType? Type2566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2567 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type2568 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam? Type2569 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2570 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustom? Type2570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2571 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2572 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2573 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2573 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2574 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypes? Type2574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2575 { get; set; } + public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam? Type2575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2576 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2577 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2578 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2579 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2580 { get; set; } + public global::System.Collections.Generic.IList? Type2580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2581 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2582 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2583 { get; set; } + public global::System.Collections.Generic.IList? Type2583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2584 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2585 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObjectType? Type2586 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateGroupBody? Type2587 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBody? Type2588 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType? Type2589 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectDataRetentionBody? Type2590 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType? Type2591 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectServiceAccountBody? Type2592 { get; set; } + public global::tryAGI.OpenAI.TruncationObjectType? Type2592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectServiceAccountBodyRole? Type2593 { get; set; } + public global::tryAGI.OpenAI.UpdateGroupBody? Type2593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2594 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBody? Type2594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2595 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationDataRetentionBodyRetentionType? Type2595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2596 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectDataRetentionBody? Type2596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2597 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectDataRetentionBodyRetentionType? Type2597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type2598 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectServiceAccountBody? Type2598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type2599 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectServiceAccountBodyRole? Type2599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type2600 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2601 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2602 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type2603 { get; set; } + public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type2604 { get; set; } + public global::tryAGI.OpenAI.Upload? Type2604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2605 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type2605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2606 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type2606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2607 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2608 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type2608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2609 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type2609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2610 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2611 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2612 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2613 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2614 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResult? Type2615 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResultObject? Type2616 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2617 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2618 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2619 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2620 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsResult? Type2620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type2621 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsResultObject? Type2621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2622 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type2622 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2623 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2624 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type2624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2625 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2625 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2626 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type2626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem? Type2627 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type2627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2628 { get; set; } + public global::System.Collections.Generic.IList? Type2628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResult? Type2629 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type2629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2630 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2631 { get; set; } + public global::System.Collections.Generic.IList? Type2631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2632 { get; set; } + public global::tryAGI.OpenAI.ResultsItem? Type2632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResultObject? Type2633 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type2634 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResult? Type2634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type2635 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1? Type2636 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1Object? Type2637 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjects? Type2638 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsResultObject? Type2638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsObject? Type2639 { get; set; } + public global::tryAGI.OpenAI.User? Type2639 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2640 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type2640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsDataItem? Type2641 { get; set; } + public global::tryAGI.OpenAI.UserUser1? Type2641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2642 { get; set; } + public global::tryAGI.OpenAI.UserUser1Object? Type2642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2643 { get; set; } + public global::tryAGI.OpenAI.UserProjects? Type2643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResource? Type2644 { get; set; } + public global::tryAGI.OpenAI.UserProjectsObject? Type2644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResourceObject? Type2645 { get; set; } + public global::System.Collections.Generic.IList? Type2645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2646 { get; set; } + public global::tryAGI.OpenAI.UserProjectsDataItem? Type2646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type2647 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type2647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2648 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2648 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2649 { get; set; } + public global::tryAGI.OpenAI.UserListResource? Type2649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignment? Type2650 { get; set; } + public global::tryAGI.OpenAI.UserListResourceObject? Type2650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2651 { get; set; } + public global::System.Collections.Generic.IList? Type2651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2652 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type2652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type2653 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type2653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2654 { get; set; } + public global::System.Collections.Generic.IList? Type2654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2655 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignment? Type2655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2656 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2657 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2658 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type2658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2659 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2660 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2661 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2662 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2663 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2664 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2665 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2666 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2667 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type2668 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2669 { get; set; } + public global::System.Collections.Generic.IList? Type2669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2670 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2671 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2672 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2673 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError? Type2673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2674 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2675 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2676 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2677 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2678 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2679 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2680 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2681 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2681 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2682 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2683 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2684 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2685 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2686 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2687 { get; set; } + public global::System.Collections.Generic.IList? Type2687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResource? Type2688 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2689 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2689 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2690 { get; set; } + public global::System.Collections.Generic.IList? Type2690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResource? Type2691 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2692 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2693 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResource? Type2693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2694 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResource? Type2695 { get; set; } + public global::System.Collections.Generic.IList? Type2695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResourceObject? Type2696 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResource? Type2696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type2697 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type2698 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2699 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2700 { get; set; } + public global::tryAGI.OpenAI.VoiceResource? Type2700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type2701 { get; set; } + public global::tryAGI.OpenAI.VoiceResourceObject? Type2701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2702 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type2702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2703 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type2703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2704 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2705 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2706 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type2706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2707 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolType? Type2708 { get; set; } + public global::System.Collections.Generic.IList? Type2708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolFilters? Type2709 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2710 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type2711 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallStatus? Type2712 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2713 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolType? Type2713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2714 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolFilters? Type2714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2715 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2716 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type2716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2717 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallStatus? Type2717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2718 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2719 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2720 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2721 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2722 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2723 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2724 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2725 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2726 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2727 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2728 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2729 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2730 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2731 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2732 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2733 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2734 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2735 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2736 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2737 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2738 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2739 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2740 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2741 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2742 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2743 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2744 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2745 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2746 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2747 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2748 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2749 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2750 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2751 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2752 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2753 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2754 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2755 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncoming? Type2756 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingData? Type2757 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2758 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity? Type2759 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2760 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader? Type2761 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncoming? Type2761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingObject? Type2762 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingData? Type2762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveCallIncomingType? Type2763 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncoming? Type2764 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipMediaSecurity? Type2764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingData? Type2765 { get; set; } + public global::System.Collections.Generic.IList? Type2765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType? Type2766 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingDataSipHeader? Type2766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2767 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingObject? Type2767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity? Type2768 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveCallIncomingType? Type2768 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2769 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncoming? Type2769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipHeader? Type2770 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingData? Type2770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingObject? Type2771 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataType? Type2771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookLiveTransportIncomingType? Type2772 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2773 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipMediaSecurity? Type2773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2774 { get; set; } + public global::System.Collections.Generic.IList? Type2774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2775 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingDataSipHeader? Type2775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity? Type2776 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingObject? Type2776 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2777 { get; set; } + public global::tryAGI.OpenAI.WebhookLiveTransportIncomingType? Type2777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2778 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2779 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2780 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2781 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipMediaSecurity? Type2781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2782 { get; set; } + public global::System.Collections.Generic.IList? Type2782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2783 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2784 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2785 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2786 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2787 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2788 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2789 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2790 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2791 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2792 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2793 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2794 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2795 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2796 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreated? Type2797 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject? Type2798 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType? Type2799 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedData? Type2800 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssued? Type2801 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject? Type2802 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreated? Type2802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType? Type2803 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedObject? Type2803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedData? Type2804 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedType? Type2804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreated? Type2805 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyAlertCreatedData? Type2805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject? Type2806 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssued? Type2806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType? Type2807 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedObject? Type2807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedData? Type2808 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedType? Type2808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssued? Type2809 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyDeactivationIssuedData? Type2809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject? Type2810 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreated? Type2810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType? Type2811 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedObject? Type2811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData? Type2812 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedType? Type2812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorType? Type2813 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyOrgAlertCreatedData? Type2813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum? Type2814 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssued? Type2814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MisalignmentSteer? Type2815 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedObject? Type2815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputType? Type2816 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedType? Type2816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationResultBodyType? Type2817 { get; set; } + public global::tryAGI.OpenAI.WebhookSafetyWarningIssuedData? Type2817 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type2818 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorType? Type2818 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type2819 { get; set; } + public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum? Type2819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2820 { get; set; } + public global::tryAGI.OpenAI.MisalignmentSteer? Type2820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheTTLEnum? Type2821 { get; set; } + public global::tryAGI.OpenAI.ModerationInputType? Type2821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheModeEnum? Type2822 { get; set; } + public global::tryAGI.OpenAI.ModerationResultBodyType? Type2822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointParamMode? Type2823 { get; set; } + public global::System.Collections.Generic.Dictionary? Type2823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationMode? Type2824 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type2824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationConfigParam? Type2825 { get; set; } + public global::System.Collections.Generic.IList? Type2825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationPolicyParam? Type2826 { get; set; } + public global::tryAGI.OpenAI.PromptCacheTTLEnum? Type2826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParamType? Type2827 { get; set; } + public global::tryAGI.OpenAI.PromptCacheModeEnum? Type2827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2828 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointParamMode? Type2828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2829 { get; set; } + public global::tryAGI.OpenAI.ModerationMode? Type2829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2830 { get; set; } + public global::tryAGI.OpenAI.ModerationConfigParam? Type2830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParamType? Type2831 { get; set; } + public global::tryAGI.OpenAI.ModerationPolicyParam? Type2831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2832 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParamType? Type2832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2833 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2834 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2834 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2835 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStatus? Type2836 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParamType? Type2836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRole? Type2837 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointConfig? Type2838 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode? Type2839 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type2840 { get; set; } + public global::System.Collections.Generic.IList? Type2840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBody? Type2841 { get; set; } + public global::tryAGI.OpenAI.MessageStatus? Type2841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBodyType? Type2842 { get; set; } + public global::tryAGI.OpenAI.MessageRole? Type2842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBody? Type2843 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointConfig? Type2843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBodyType? Type2844 { get; set; } + public global::tryAGI.OpenAI.PromptCacheBreakpointConfigMode? Type2844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2845 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type2845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2846 { get; set; } + public global::tryAGI.OpenAI.FileCitationBody? Type2846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2847 { get; set; } + public global::tryAGI.OpenAI.FileCitationBodyType? Type2847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2848 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBody? Type2848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type2849 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBodyType? Type2849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type2850 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2851 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type2852 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2852 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2853 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2853 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2854 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type2854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContent? Type2855 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type2855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContentType? Type2856 { get; set; } + public global::System.Collections.Generic.IList? Type2856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type2857 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type2857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContentType? Type2858 { get; set; } + public global::System.Collections.Generic.IList? Type2858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type2859 { get; set; } + public global::System.Collections.Generic.IList? Type2859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageDetail? Type2860 { get; set; } + public global::tryAGI.OpenAI.TextContent? Type2860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type2861 { get; set; } + public global::tryAGI.OpenAI.TextContentType? Type2861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2862 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContentType? Type2862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2863 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContentType? Type2863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileInputDetail? Type2864 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type2864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type2865 { get; set; } + public global::tryAGI.OpenAI.ImageDetail? Type2865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase2? Type2866 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type2866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageType? Type2867 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2867 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2868 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem3? Type2869 { get; set; } + public global::tryAGI.OpenAI.FileInputDetail? Type2869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2870 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type2870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2871 { get; set; } + public global::tryAGI.OpenAI.MessagePhase2? Type2871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCaller? Type2872 { get; set; } + public global::tryAGI.OpenAI.MessageType? Type2872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerType? Type2873 { get; set; } + public global::System.Collections.Generic.IList? Type2873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCaller? Type2874 { get; set; } + public global::tryAGI.OpenAI.ContentItem3? Type2874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerType? Type2875 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerDiscriminator? Type2876 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerDiscriminatorType? Type2877 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCaller? Type2877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParam? Type2878 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerType? Type2878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParamType? Type2879 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCaller? Type2879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParam? Type2880 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerType? Type2880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParamType? Type2881 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerDiscriminator? Type2881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminator? Type2882 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerDiscriminatorType? Type2882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminatorType? Type2883 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerParam? Type2883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageBackground? Type2884 { get; set; } + public global::tryAGI.OpenAI.DirectToolCallCallerParamType? Type2884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageOutputFormat? Type2885 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerParam? Type2885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type2886 { get; set; } + public global::tryAGI.OpenAI.ProgramToolCallCallerParamType? Type2886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type2887 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminator? Type2887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type2888 { get; set; } + public global::tryAGI.OpenAI.ToolCallCallerParamDiscriminatorType? Type2888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallSizeVariant1? Type2889 { get; set; } + public global::tryAGI.OpenAI.ImageBackground? Type2889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallQuality? Type2890 { get; set; } + public global::tryAGI.OpenAI.ImageOutputFormat? Type2890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButtonType? Type2891 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallType? Type2891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParamType? Type2892 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type2892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickActionType? Type2893 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type2893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CoordParam? Type2894 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallSizeVariant1? Type2894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParamType? Type2895 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallQuality? Type2895 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2896 { get; set; } + public global::tryAGI.OpenAI.ClickButtonType? Type2896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressActionType? Type2897 { get; set; } + public global::tryAGI.OpenAI.ClickParamType? Type2897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParamType? Type2898 { get; set; } + public global::tryAGI.OpenAI.DoubleClickActionType? Type2898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParamType? Type2899 { get; set; } + public global::tryAGI.OpenAI.CoordParam? Type2899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParamType? Type2900 { get; set; } + public global::tryAGI.OpenAI.DragParamType? Type2900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParamType? Type2901 { get; set; } + public global::System.Collections.Generic.IList? Type2901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParamType? Type2902 { get; set; } + public global::tryAGI.OpenAI.KeyPressActionType? Type2902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2903 { get; set; } + public global::tryAGI.OpenAI.MoveParamType? Type2903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallType? Type2904 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParamType? Type2904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type2905 { get; set; } + public global::tryAGI.OpenAI.ScrollParamType? Type2905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankerVersionType? Type2906 { get; set; } + public global::tryAGI.OpenAI.TypeParamType? Type2906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HybridSearchOptions? Type2907 { get; set; } + public global::tryAGI.OpenAI.WaitParamType? Type2907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type2908 { get; set; } + public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters2? Type2909 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallType? Type2909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type2910 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type2910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolType? Type2911 { get; set; } + public global::tryAGI.OpenAI.RankerVersionType? Type2911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerEnvironment? Type2912 { get; set; } + public global::tryAGI.OpenAI.HybridSearchOptions? Type2912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2913 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type2913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2914 { get; set; } + public global::tryAGI.OpenAI.Filters2? Type2914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2915 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type2915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy2? Type2916 { get; set; } + public global::tryAGI.OpenAI.ComputerToolType? Type2916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2917 { get; set; } + public global::tryAGI.OpenAI.ComputerEnvironment? Type2917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2918 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgrammaticToolCallingParamType? Type2919 { get; set; } + public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParamType? Type2920 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParam? Type2921 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy2? Type2921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamType? Type2922 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy3? Type2923 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2924 { get; set; } + public global::tryAGI.OpenAI.ProgrammaticToolCallingParamType? Type2924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2925 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParamType? Type2925 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2926 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParam? Type2926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem2? Type2927 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamType? Type2927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2928 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy3? Type2928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2929 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalSkillParam? Type2930 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2931 { get; set; } + public global::System.Collections.Generic.IList? Type2931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2932 { get; set; } + public global::tryAGI.OpenAI.SkillsItem2? Type2932 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2933 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam? Type2934 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2935 { get; set; } + public global::tryAGI.OpenAI.LocalSkillParam? Type2935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2936 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant1? Type2937 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2938 { get; set; } + public global::System.Collections.Generic.IList? Type2938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type2939 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParam? Type2939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParam? Type2940 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2941 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GrammarSyntax1? Type2942 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant1? Type2942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2943 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2944 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type2944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamType? Type2945 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParam? Type2945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format2? Type2946 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2947 { get; set; } + public global::tryAGI.OpenAI.GrammarSyntax1? Type2947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type2948 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmptyModelParam? Type2949 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParam? Type2950 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamType? Type2950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParamType? Type2951 { get; set; } + public global::tryAGI.OpenAI.Format2? Type2951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamType? Type2952 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2952 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2953 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type2953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem13? Type2954 { get; set; } + public global::tryAGI.OpenAI.EmptyModelParam? Type2954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2955 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParam? Type2955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type2956 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParamType? Type2956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2957 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamType? Type2957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocation? Type2958 { get; set; } + public global::System.Collections.Generic.IList? Type2958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocationType? Type2959 { get; set; } + public global::tryAGI.OpenAI.ToolsItem13? Type2959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContextSize? Type2960 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContentType? Type2961 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type2961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2962 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2962 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2963 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocation? Type2963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2964 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocationType? Type2964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputType? Type2965 { get; set; } + public global::tryAGI.OpenAI.SearchContextSize? Type2965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsType? Type2966 { get; set; } + public global::tryAGI.OpenAI.SearchContentType? Type2966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramType? Type2967 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputStatus? Type2968 { get; set; } + public global::System.Collections.Generic.IList? Type2968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputType? Type2969 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBodyType? Type2970 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputType? Type2970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2971 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsType? Type2971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2972 { get; set; } + public global::tryAGI.OpenAI.ProgramType? Type2972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type2973 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputStatus? Type2973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellAction? Type2974 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputType? Type2974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2975 { get; set; } + public global::tryAGI.OpenAI.CompactionBodyType? Type2975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2976 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2977 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResource? Type2978 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type2978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2979 { get; set; } + public global::tryAGI.OpenAI.FunctionShellAction? Type2979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallType? Type2980 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant12? Type2981 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2982 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type2983 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResource? Type2983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2984 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2985 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallType? Type2985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2986 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant12? Type2986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2987 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2988 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type2988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2989 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome? Type2990 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2991 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type2992 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2993 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2993 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2994 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2995 { get; set; } + public global::tryAGI.OpenAI.Outcome? Type2995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2996 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2997 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type2997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2998 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2999 { get; set; } + public global::System.Collections.Generic.IList? Type2999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type3000 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type3000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type3001 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type3001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type3002 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type3002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation? Type3003 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type3003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type3004 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type3004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type3005 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type3005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type3006 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type3006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type3007 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type3007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPProtocolErrorType? Type3008 { get; set; } + public global::tryAGI.OpenAI.Operation? Type3008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolExecutionErrorType? Type3009 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type3009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HTTPErrorType? Type3010 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type3010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DetailEnum? Type3011 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type3011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemStatus? Type3012 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type3012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type3013 { get; set; } + public global::tryAGI.OpenAI.MCPProtocolErrorType? Type3013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam? Type3014 { get; set; } + public global::tryAGI.OpenAI.MCPToolExecutionErrorType? Type3014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParamType? Type3015 { get; set; } + public global::tryAGI.OpenAI.HTTPErrorType? Type3015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type3016 { get; set; } + public global::tryAGI.OpenAI.DetailEnum? Type3016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type3017 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemStatus? Type3017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileDetailEnum? Type3018 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type3018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam? Type3019 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParam? Type3019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParamType? Type3020 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParamType? Type3020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type3021 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type3021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3022 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type3022 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3023 { get; set; } + public global::tryAGI.OpenAI.FileDetailEnum? Type3023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item? Type3024 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParam? Type3024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3025 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParamType? Type3025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3026 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type3026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationParam? Type3027 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationParamType? Type3028 { get; set; } + public global::System.Collections.Generic.IList? Type3028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationParam? Type3029 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item? Type3029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationParamType? Type3030 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type3030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationParam? Type3031 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type3031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationParamType? Type3032 { get; set; } + public global::tryAGI.OpenAI.FileCitationParam? Type3032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type3033 { get; set; } + public global::tryAGI.OpenAI.FileCitationParamType? Type3033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type3034 { get; set; } + public global::tryAGI.OpenAI.UrlCitationParam? Type3034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParamType? Type3035 { get; set; } + public global::tryAGI.OpenAI.UrlCitationParamType? Type3035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParamRole? Type3036 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationParam? Type3036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type3037 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationParamType? Type3037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellActionParam? Type3038 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type3038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type3039 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type3039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type3040 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParamType? Type3040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant13? Type3041 { get; set; } + public global::tryAGI.OpenAI.AdditionalToolsItemParamRole? Type3041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3042 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type3042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3043 { get; set; } + public global::tryAGI.OpenAI.FunctionShellActionParam? Type3043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type3044 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type3044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type3045 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type3045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type3046 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant13? Type3046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type3047 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type3047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type3048 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type3048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type3049 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type3049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type3050 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type3050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type3051 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type3051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type3052 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type3052 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3053 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type3053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type3054 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type3054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type3055 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type3055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type3056 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type3056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type3057 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type3057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type3058 { get; set; } + public global::System.Collections.Generic.IList? Type3058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type3059 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type3059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type3060 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type3060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type3061 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type3061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type3062 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type3062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type3063 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type3063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type3064 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type3064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type3065 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type3065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type3066 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type3066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionTriggerItemParamType? Type3067 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type3067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType? Type3068 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type3068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramItemParamType? Type3069 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type3069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemStatus? Type3070 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type3070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemParamType? Type3071 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type3071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResource? Type3072 { get; set; } + public global::tryAGI.OpenAI.CompactionTriggerItemParamType? Type3072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type3073 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType? Type3073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type3074 { get; set; } + public global::tryAGI.OpenAI.ProgramItemParamType? Type3074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type3075 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemStatus? Type3075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCustomVoiceParam? Type3076 { get; set; } + public global::tryAGI.OpenAI.ProgramOutputItemParamType? Type3076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>? Type3077 { get; set; } + public global::tryAGI.OpenAI.ConversationResource? Type3077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type3078 { get; set; } + public global::tryAGI.OpenAI.ConversationResourceObject? Type3078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1? Type3079 { get; set; } + public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type3079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam? Type3080 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type3080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParamType? Type3081 { get; set; } + public global::tryAGI.OpenAI.LiveCustomVoiceParam? Type3081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesServiceTier? Type3082 { get; set; } + public global::tryAGI.OpenAI.OneOf?, global::tryAGI.OpenAI.LiveCustomVoiceParam>? Type3082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveReasoningEffort? Type3083 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type3083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveReasoningSummary? Type3084 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioOutputParamVoiceVariant1? Type3084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? Type3085 { get; set; } + public global::tryAGI.OpenAI.LiveClientDelegationParam? Type3085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTextVerbosity? Type3086 { get; set; } + public global::tryAGI.OpenAI.LiveClientDelegationParamType? Type3086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationTextInputParam? Type3087 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesServiceTier? Type3087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Type3088 { get; set; } + public global::tryAGI.OpenAI.LiveReasoningEffort? Type3088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParamType? Type3089 { get; set; } + public global::tryAGI.OpenAI.LiveReasoningSummary? Type3089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? Type3090 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationReasoningInputParam? Type3090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParamType? Type3091 { get; set; } + public global::tryAGI.OpenAI.LiveTextVerbosity? Type3091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveToolChoiceEnum? Type3092 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationTextInputParam? Type3092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolChoiceParam? Type3093 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolInputParam? Type3093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolChoiceParamType? Type3094 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolInputParamType? Type3094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMCPToolChoiceParam? Type3095 { get; set; } + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam? Type3095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveMCPToolChoiceParamType? Type3096 { get; set; } + public global::tryAGI.OpenAI.LiveWebSearchToolInputParamType? Type3096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam? Type3097 { get; set; } + public global::tryAGI.OpenAI.LiveToolChoiceEnum? Type3097 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3098 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolChoiceParam? Type3098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem14? Type3099 { get; set; } + public global::tryAGI.OpenAI.LiveFunctionToolChoiceParamType? Type3099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator? Type3100 { get; set; } + public global::tryAGI.OpenAI.LiveMCPToolChoiceParam? Type3100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type3101 { get; set; } + public global::tryAGI.OpenAI.LiveMCPToolChoiceParamType? Type3101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3102 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParam? Type3102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParam? Type3103 { get; set; } + public global::System.Collections.Generic.IList? Type3103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParamType? Type3104 { get; set; } + public global::tryAGI.OpenAI.ToolsItem14? Type3104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1Discriminator? Type3105 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminator? Type3105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant1DiscriminatorType? Type3106 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsInputParamToolDiscriminatorType? Type3106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialMessageStatus? Type3107 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParam? Type3108 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationParam? Type3108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParamType? Type3109 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationParamType? Type3109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam? Type3110 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1Discriminator? Type3110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamType? Type3111 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant1DiscriminatorType? Type3111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamRole? Type3112 { get; set; } + public global::tryAGI.OpenAI.LiveInitialMessageStatus? Type3112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3113 { get; set; } + public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParam? Type3113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam? Type3114 { get; set; } + public global::tryAGI.OpenAI.LiveInitialInputTextContentPartParamType? Type3114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamType? Type3115 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam? Type3115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamRole? Type3116 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamType? Type3116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParam? Type3117 { get; set; } + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParamRole? Type3117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParamType? Type3118 { get; set; } + public global::System.Collections.Generic.IList? Type3118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam? Type3119 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam? Type3119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParamType? Type3120 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamType? Type3120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam? Type3121 { get; set; } + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParamRole? Type3121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamType? Type3122 { get; set; } + public global::tryAGI.OpenAI.LiveInitialTextContentPartParam? Type3122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamRole? Type3123 { get; set; } + public global::tryAGI.OpenAI.LiveInitialTextContentPartParamType? Type3123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3124 { get; set; } + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam? Type3124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem4? Type3125 { get; set; } + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParamType? Type3125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminator? Type3126 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam? Type3126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminatorType? Type3127 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamType? Type3127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItem? Type3128 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamRole? Type3128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItemDiscriminator? Type3129 { get; set; } + public global::System.Collections.Generic.IList? Type3129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialItemDiscriminatorRole? Type3130 { get; set; } + public global::tryAGI.OpenAI.ContentItem4? Type3130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAllowedServerEventParam? Type3131 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminator? Type3131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParam? Type3132 { get; set; } + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParamContentItemDiscriminatorType? Type3132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3133 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItem? Type3133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents? Type3134 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItemDiscriminator? Type3134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type3135 { get; set; } + public global::tryAGI.OpenAI.LiveInitialItemDiscriminatorRole? Type3135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents? Type3136 { get; set; } + public global::tryAGI.OpenAI.LiveAllowedServerEventParam? Type3136 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3137 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParam? Type3137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? Type3138 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3139 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedClientEvents? Type3139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem15? Type3140 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type3140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator? Type3141 { get; set; } + public global::tryAGI.OpenAI.LiveDataChannelConfigParamAllowedServerEvents? Type3141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type3142 { get; set; } + public global::System.Collections.Generic.IList? Type3142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType? Type3143 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParam? Type3143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse? Type3144 { get; set; } + public global::System.Collections.Generic.IList? Type3144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType? Type3145 { get; set; } + public global::tryAGI.OpenAI.ToolsItem15? Type3145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse? Type3146 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminator? Type3146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType? Type3147 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationSettingsUpdateInputParamToolDiscriminatorType? Type3147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse? Type3148 { get; set; } + public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParamType? Type3148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType? Type3149 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse? Type3149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProviderDiscriminator? Type3150 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponseType? Type3150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProviderDiscriminatorType? Type3151 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse? Type3151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType? Type3152 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponseType? Type3152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type3153 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse? Type3153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type3154 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponseType? Type3154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CyberAccessProgramEnum? Type3155 { get; set; } + public global::tryAGI.OpenAI.ProviderDiscriminator? Type3155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningModeEnumEnum? Type3156 { get; set; } + public global::tryAGI.OpenAI.ProviderDiscriminatorType? Type3156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CacheMissReasonTypeEnum? Type3157 { get; set; } + public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParamType? Type3157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody? Type3158 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type3158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBodyType? Type3159 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type3159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody? Type3160 { get; set; } + public global::tryAGI.OpenAI.CyberAccessProgramEnum? Type3160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBodyType? Type3161 { get; set; } + public global::tryAGI.OpenAI.ReasoningModeEnumEnum? Type3161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody? Type3162 { get; set; } + public global::tryAGI.OpenAI.CacheMissReasonTypeEnum? Type3162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type3163 { get; set; } + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody? Type3163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody? Type3164 { get; set; } + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBodyType? Type3164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBodyType? Type3165 { get; set; } + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody? Type3165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminator? Type3166 { get; set; } + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBodyType? Type3166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminatorType? Type3167 { get; set; } + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody? Type3167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBody? Type3168 { get; set; } + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type3168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBodyType? Type3169 { get; set; } + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody? Type3169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input4? Type3170 { get; set; } + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBodyType? Type3170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputDiscriminator? Type3171 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminator? Type3171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationInputDiscriminatorType? Type3172 { get; set; } + public global::tryAGI.OpenAI.PromptCacheDiagnosticsDiscriminatorType? Type3172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output5? Type3173 { get; set; } + public global::tryAGI.OpenAI.ModerationErrorBody? Type3173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationOutputDiscriminator? Type3174 { get; set; } + public global::tryAGI.OpenAI.ModerationErrorBodyType? Type3174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModerationOutputDiscriminatorType? Type3175 { get; set; } + public global::tryAGI.OpenAI.Input4? Type3175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType? Type3176 { get; set; } + public global::tryAGI.OpenAI.ModerationInputDiscriminator? Type3176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType? Type3177 { get; set; } + public global::tryAGI.OpenAI.ModerationInputDiscriminatorType? Type3177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType? Type3178 { get; set; } + public global::tryAGI.OpenAI.Output5? Type3178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType? Type3179 { get; set; } + public global::tryAGI.OpenAI.ModerationOutputDiscriminator? Type3179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ShellCallOutputDelta? Type3180 { get; set; } + public global::tryAGI.OpenAI.ModerationOutputDiscriminatorType? Type3180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType? Type3181 { get; set; } + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEventType? Type3181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType? Type3182 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEventType? Type3182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationBody? Type3183 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEventType? Type3183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type3184 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEventType? Type3184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type3185 { get; set; } + public global::tryAGI.OpenAI.ShellCallOutputDelta? Type3185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseNoticeType? Type3186 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEventType? Type3186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseNotice? Type3187 { get; set; } + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEventType? Type3187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseResource? Type3188 { get; set; } + public global::tryAGI.OpenAI.CreateConversationBody? Type3188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyCaseResourceObject? Type3189 { get; set; } + public global::tryAGI.OpenAI.UpdateConversationBody? Type3189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertErrorType? Type3190 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type3190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertResource? Type3191 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseNoticeType? Type3191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SafetyAlertResourceObject? Type3192 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseNotice? Type3192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageOrder? Type3193 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseResource? Type3193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageStatus? Type3194 { get; set; } + public global::tryAGI.OpenAI.SafetyCaseResourceObject? Type3194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponse? Type3195 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertErrorType? Type3195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseObject? Type3196 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertResource? Type3196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Provider2? Type3197 { get; set; } + public global::tryAGI.OpenAI.SafetyAlertResourceObject? Type3197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminator? Type3198 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageOrder? Type3198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminatorType? Type3199 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageStatus? Type3199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageListResource? Type3200 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponse? Type3200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageListResourceObject? Type3201 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseObject? Type3201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3202 { get; set; } + public global::tryAGI.OpenAI.Provider2? Type3202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParams? Type3203 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminator? Type3203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType? Type3204 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageResponseProviderDiscriminatorType? Type3204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParams? Type3205 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageListResource? Type3205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType? Type3206 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageListResourceObject? Type3206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParams? Type3207 { get; set; } + public global::System.Collections.Generic.IList? Type3207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType? Type3208 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderParams? Type3208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBody? Type3209 { get; set; } + public global::tryAGI.OpenAI.AwsExternalStorageProviderParamsType? Type3209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Provider3? Type3210 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderParams? Type3210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator? Type3211 { get; set; } + public global::tryAGI.OpenAI.AzureExternalStorageProviderParamsType? Type3211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType? Type3212 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderParams? Type3212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageDeletedResource? Type3213 { get; set; } + public global::tryAGI.OpenAI.GcpExternalStorageProviderParamsType? Type3213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject? Type3214 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBody? Type3214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrency? Type3215 { get; set; } + public global::tryAGI.OpenAI.Provider3? Type3215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type3216 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminator? Type3216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitInterval? Type3217 { get; set; } + public global::tryAGI.OpenAI.CreateExternalStorageBodyProviderDiscriminatorType? Type3217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type3218 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageDeletedResource? Type3218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type3219 { get; set; } + public global::tryAGI.OpenAI.ExternalStorageDeletedResourceObject? Type3219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type3220 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrency? Type3220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcement? Type3221 { get; set; } + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum? Type3221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type3222 { get; set; } + public global::tryAGI.OpenAI.SpendLimitInterval? Type3222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type3223 { get; set; } + public global::tryAGI.OpenAI.SpendLimitIntervalEnum? Type3223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type3224 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatus? Type3224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type3225 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum? Type3225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type3226 { get; set; } + public global::tryAGI.OpenAI.SpendLimitEnforcement? Type3226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type3227 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResource? Type3227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type3228 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitResourceObject? Type3228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type3229 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBody? Type3229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type3230 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyCurrency? Type3230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type3231 { get; set; } + public global::tryAGI.OpenAI.UpdateOrganizationSpendLimitBodyInterval? Type3231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type3232 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResource? Type3232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type3233 { get; set; } + public global::tryAGI.OpenAI.OrganizationSpendLimitDeletedResourceObject? Type3233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type3234 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResource? Type3234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type3235 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitResourceObject? Type3235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type3236 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBody? Type3236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type3237 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyCurrency? Type3237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type3238 { get; set; } + public global::tryAGI.OpenAI.UpdateProjectSpendLimitBodyInterval? Type3238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContentProvenanceBody? Type3239 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResource? Type3239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceCheckObject? Type3240 { get; set; } + public global::tryAGI.OpenAI.ProjectSpendLimitDeletedResourceObject? Type3240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceDetectionResultApi? Type3241 { get; set; } + public global::tryAGI.OpenAI.CreateProjectServiceAccountApiKeyBody? Type3241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAValidationStateApi? Type3242 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBody? Type3242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResult? Type3243 { get; set; } + public global::tryAGI.OpenAI.ServiceAccountApiKeyBodyObject? Type3243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResultType? Type3244 { get; set; } + public global::tryAGI.OpenAI.CreateContentProvenanceBody? Type3244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResult? Type3245 { get; set; } + public global::tryAGI.OpenAI.ProvenanceCheckObject? Type3245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResultType? Type3246 { get; set; } + public global::tryAGI.OpenAI.ProvenanceDetectionResultApi? Type3246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResource? Type3247 { get; set; } + public global::tryAGI.OpenAI.C2PAValidationStateApi? Type3247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3248 { get; set; } + public global::tryAGI.OpenAI.C2PAProvenanceResult? Type3248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem2? Type3249 { get; set; } + public global::tryAGI.OpenAI.C2PAProvenanceResultType? Type3249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminator? Type3250 { get; set; } + public global::tryAGI.OpenAI.SynthIDProvenanceResult? Type3250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminatorType? Type3251 { get; set; } + public global::tryAGI.OpenAI.SynthIDProvenanceResultType? Type3251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrderEnum? Type3252 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResource? Type3252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModel? Type3253 { get; set; } + public global::System.Collections.Generic.IList? Type3253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum? Type3254 { get; set; } + public global::tryAGI.OpenAI.ResultsItem2? Type3254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoStatus? Type3255 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminator? Type3255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSize? Type3256 { get; set; } + public global::tryAGI.OpenAI.ProvenanceResourceResultDiscriminatorType? Type3256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error22? Type3257 { get; set; } + public global::tryAGI.OpenAI.OrderEnum? Type3257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResource? Type3258 { get; set; } + public global::tryAGI.OpenAI.VideoModel? Type3258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResourceObject? Type3259 { get; set; } + public global::tryAGI.OpenAI.VideoModelEnum? Type3259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResource? Type3260 { get; set; } + public global::tryAGI.OpenAI.VideoStatus? Type3260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type3261 { get; set; } + public global::tryAGI.OpenAI.VideoSize? Type3261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3262 { get; set; } + public global::tryAGI.OpenAI.Error22? Type3262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam2? Type3263 { get; set; } + public global::tryAGI.OpenAI.VideoResource? Type3263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSeconds? Type3264 { get; set; } + public global::tryAGI.OpenAI.VideoResourceObject? Type3264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type3265 { get; set; } + public global::tryAGI.OpenAI.VideoListResource? Type3265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3266 { get; set; } + public global::tryAGI.OpenAI.VideoListResourceObject? Type3266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type3267 { get; set; } + public global::System.Collections.Generic.IList? Type3267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type3268 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam2? Type3268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type3269 { get; set; } + public global::tryAGI.OpenAI.VideoSeconds? Type3269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type3270 { get; set; } + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type3270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type3271 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3272 { get; set; } + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type3272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type3273 { get; set; } + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type3273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type3274 { get; set; } + public global::tryAGI.OpenAI.VideoCharacterResource? Type3274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3275 { get; set; } + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type3275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type3276 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type3276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type3277 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type3278 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type3278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoContentVariant? Type3279 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type3279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type3280 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationEnum? Type3281 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type3281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnum? Type3282 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResource? Type3282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersonalityEnumEnum? Type3283 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type3283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsBody? Type3284 { get; set; } + public global::tryAGI.OpenAI.VideoContentVariant? Type3284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResource? Type3285 { get; set; } + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type3285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type3286 { get; set; } + public global::tryAGI.OpenAI.TruncationEnum? Type3286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type3287 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnum? Type3287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierEnum2? Type3288 { get; set; } + public global::tryAGI.OpenAI.PersonalityEnumEnum? Type3288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type3289 { get; set; } + public global::tryAGI.OpenAI.TokenCountsBody? Type3289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemField? Type3290 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResource? Type3290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type3291 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type3291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type3292 { get; set; } + public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type3292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResource? Type3293 { get; set; } + public global::tryAGI.OpenAI.ServiceTierEnum2? Type3293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResourceObject? Type3294 { get; set; } + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type3294 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3295 { get; set; } + public global::tryAGI.OpenAI.ItemField? Type3295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResource? Type3296 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type3296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResourceObject? Type3297 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type3297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResource? Type3298 { get; set; } + public global::tryAGI.OpenAI.CompactResource? Type3298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type3299 { get; set; } + public global::tryAGI.OpenAI.CompactResourceObject? Type3299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3300 { get; set; } + public global::System.Collections.Generic.IList? Type3300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillBody? Type3301 { get; set; } + public global::tryAGI.OpenAI.SkillResource? Type3301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type3302 { get; set; } + public global::tryAGI.OpenAI.SkillResourceObject? Type3302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type3303 { get; set; } + public global::tryAGI.OpenAI.SkillListResource? Type3303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type3304 { get; set; } + public global::tryAGI.OpenAI.SkillListResourceObject? Type3304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type3305 { get; set; } + public global::System.Collections.Generic.IList? Type3305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResource? Type3306 { get; set; } + public global::tryAGI.OpenAI.CreateSkillBody? Type3306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type3307 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? Type3307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type3308 { get; set; } + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type3308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type3309 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResource? Type3309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3310 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type3310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type3311 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResource? Type3311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type3312 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type3312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type3313 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResource? Type3313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type3314 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type3314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type3315 { get; set; } + public global::System.Collections.Generic.IList? Type3315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type3316 { get; set; } + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type3316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type3317 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type3317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type3318 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type3318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type3319 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type3319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type3320 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflow? Type3320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type3321 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type3321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type3322 { get; set; } + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type3322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResource? Type3323 { get; set; } + public global::tryAGI.OpenAI.ChatSessionStatus? Type3323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type3324 { get; set; } + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type3324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type3325 { get; set; } + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type3325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowParam? Type3326 { get; set; } + public global::tryAGI.OpenAI.ChatSessionHistory? Type3326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type3327 { get; set; } + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type3327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type3328 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResource? Type3328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RateLimitsParam? Type3329 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type3329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type3330 { get; set; } + public global::tryAGI.OpenAI.WorkflowTracingParam? Type3330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileUploadParam? Type3331 { get; set; } + public global::tryAGI.OpenAI.WorkflowParam? Type3331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HistoryParam? Type3332 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParam? Type3332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type3333 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type3333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type3334 { get; set; } + public global::tryAGI.OpenAI.RateLimitsParam? Type3334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText? Type3335 { get; set; } + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type3335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type3336 { get; set; } + public global::tryAGI.OpenAI.FileUploadParam? Type3336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type3337 { get; set; } + public global::tryAGI.OpenAI.HistoryParam? Type3337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type3338 { get; set; } + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type3338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AttachmentType? Type3339 { get; set; } + public global::tryAGI.OpenAI.CreateChatSessionBody? Type3339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Attachment? Type3340 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputText? Type3340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice10? Type3341 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputTextType? Type3341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InferenceOptions? Type3342 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedText? Type3342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItem? Type3343 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type3343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type3344 { get; set; } + public global::tryAGI.OpenAI.AttachmentType? Type3344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemType? Type3345 { get; set; } + public global::tryAGI.OpenAI.Attachment? Type3345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3346 { get; set; } + public global::tryAGI.OpenAI.ToolChoice9? Type3346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem5? Type3347 { get; set; } + public global::tryAGI.OpenAI.InferenceOptions? Type3347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type3348 { get; set; } + public global::tryAGI.OpenAI.UserMessageItem? Type3348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type3349 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemObject? Type3349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3350 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemType? Type3350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type3351 { get; set; } + public global::System.Collections.Generic.IList? Type3351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type3352 { get; set; } + public global::tryAGI.OpenAI.ContentItem5? Type3352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotation? Type3353 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type3353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationType? Type3354 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type3354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type3355 { get; set; } + public global::System.Collections.Generic.IList? Type3355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type3356 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSource? Type3356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation? Type3357 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type3357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type3358 { get; set; } + public global::tryAGI.OpenAI.FileAnnotation? Type3358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputText? Type3359 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationType? Type3359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type3360 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSource? Type3360 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3361 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type3361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type3362 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotation? Type3362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type3363 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationType? Type3363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type3364 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputText? Type3364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type3365 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextType? Type3365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type3366 { get; set; } + public global::System.Collections.Generic.IList? Type3366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type3367 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem3? Type3367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3368 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type3368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type3369 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type3369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type3370 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItem? Type3370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type3371 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type3371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type3372 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemType? Type3372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type3373 { get; set; } + public global::System.Collections.Generic.IList? Type3373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type3374 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItem? Type3374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type3375 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type3375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskType? Type3376 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemType? Type3376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItem? Type3377 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallStatus? Type3377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemObject? Type3378 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItem? Type3378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemType? Type3379 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type3379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupTask? Type3380 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemType? Type3380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem? Type3381 { get; set; } + public global::tryAGI.OpenAI.TaskType? Type3381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type3382 { get; set; } + public global::tryAGI.OpenAI.TaskItem? Type3382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type3383 { get; set; } + public global::tryAGI.OpenAI.TaskItemObject? Type3383 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3384 { get; set; } + public global::tryAGI.OpenAI.TaskItemType? Type3384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItem? Type3385 { get; set; } + public global::tryAGI.OpenAI.TaskGroupTask? Type3385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type3386 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItem? Type3386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type3387 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemObject? Type3387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type3388 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemType? Type3388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type3389 { get; set; } + public global::System.Collections.Generic.IList? Type3389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3390 { get; set; } + public global::tryAGI.OpenAI.ThreadItem? Type3390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatus? Type3391 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type3391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatusType? Type3392 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type3392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatus? Type3393 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResource? Type3393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatusType? Type3394 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type3394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatus? Type3395 { get; set; } + public global::System.Collections.Generic.IList? Type3395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatusType? Type3396 { get; set; } + public global::tryAGI.OpenAI.ActiveStatus? Type3396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResource? Type3397 { get; set; } + public global::tryAGI.OpenAI.ActiveStatusType? Type3397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type3398 { get; set; } + public global::tryAGI.OpenAI.LockedStatus? Type3398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Status? Type3399 { get; set; } + public global::tryAGI.OpenAI.LockedStatusType? Type3399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type3400 { get; set; } + public global::tryAGI.OpenAI.ClosedStatus? Type3400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type3401 { get; set; } + public global::tryAGI.OpenAI.ClosedStatusType? Type3401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type3402 { get; set; } + public global::tryAGI.OpenAI.ThreadResource? Type3402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type3403 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceObject? Type3403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResource? Type3404 { get; set; } + public global::tryAGI.OpenAI.Status? Type3404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type3405 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type3405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3406 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type3406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTypeResource? Type3407 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResource? Type3407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentStatusResource? Type3408 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type3408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInline? Type3409 { get; set; } + public global::tryAGI.OpenAI.ThreadListResource? Type3409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInlineType? Type3410 { get; set; } + public global::tryAGI.OpenAI.ThreadListResourceObject? Type3410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResource? Type3411 { get; set; } + public global::System.Collections.Generic.IList? Type3411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceDiscriminator? Type3412 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTypeResource? Type3412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceDiscriminatorType? Type3413 { get; set; } + public global::tryAGI.OpenAI.EnvironmentStatusResource? Type3413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReference? Type3414 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceInline? Type3414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReferenceType? Type3415 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceInlineType? Type3415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInline? Type3416 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResource? Type3416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInlineType? Type3417 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceDiscriminator? Type3417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResource? Type3418 { get; set; } + public global::tryAGI.OpenAI.HostedPluginResourceDiscriminatorType? Type3418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceDiscriminator? Type3419 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceSkillReference? Type3419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceDiscriminatorType? Type3420 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceSkillReferenceType? Type3420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId? Type3421 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceInline? Type3421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileIdType? Type3422 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceInlineType? Type3422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline? Type3423 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResource? Type3423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInlineType? Type3424 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceDiscriminator? Type3424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResource? Type3425 { get; set; } + public global::tryAGI.OpenAI.HostedSkillResourceDiscriminatorType? Type3425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminator? Type3426 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId? Type3426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminatorType? Type3427 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileIdType? Type3427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicEnvironmentResource? Type3428 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline? Type3428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicEnvironmentResourceObject? Type3429 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInlineType? Type3429 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3430 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResource? Type3430 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3431 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminator? Type3431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3432 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceDiscriminatorType? Type3432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorBodyResource? Type3433 { get; set; } + public global::tryAGI.OpenAI.PublicEnvironmentResource? Type3433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse2? Type3434 { get; set; } + public global::tryAGI.OpenAI.PublicEnvironmentResourceObject? Type3434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrderParam? Type3435 { get; set; } + public global::System.Collections.Generic.IList? Type3435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFilePageObjectResource? Type3436 { get; set; } + public global::System.Collections.Generic.IList? Type3436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileResource? Type3437 { get; set; } + public global::System.Collections.Generic.IList? Type3437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileResourceObject? Type3438 { get; set; } + public global::tryAGI.OpenAI.ErrorBodyResource? Type3438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentFileListResource? Type3439 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse2? Type3439 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3440 { get; set; } + public global::tryAGI.OpenAI.ListOrderParam? Type3440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId? Type3441 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFilePageObjectResource? Type3441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileIdType? Type3442 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileResource? Type3442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline? Type3443 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileResourceObject? Type3443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInlineType? Type3444 { get; set; } + public global::tryAGI.OpenAI.EnvironmentFileListResource? Type3444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParam? Type3445 { get; set; } + public global::System.Collections.Generic.IList? Type3445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminator? Type3446 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId? Type3446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminatorType? Type3447 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileIdType? Type3447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentObjectResource? Type3448 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline? Type3448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextResource? Type3449 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInlineType? Type3449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextResourceType? Type3450 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParam? Type3450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResource? Type3451 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminator? Type3451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResourceType? Type3452 { get; set; } + public global::tryAGI.OpenAI.HostedEnvironmentFileParamDiscriminatorType? Type3452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResource? Type3453 { get; set; } + public global::tryAGI.OpenAI.SubagentObjectResource? Type3453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResourceDiscriminator? Type3454 { get; set; } + public global::tryAGI.OpenAI.OutputTextResource? Type3454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentContentResourceDiscriminatorType? Type3455 { get; set; } + public global::tryAGI.OpenAI.OutputTextResourceType? Type3455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentStatusResource? Type3456 { get; set; } + public global::tryAGI.OpenAI.EncryptedContentResource? Type3456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubagentResource? Type3457 { get; set; } + public global::tryAGI.OpenAI.EncryptedContentResourceType? Type3457 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3458 { get; set; } + public global::tryAGI.OpenAI.AgentContentResource? Type3458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionMessageRoleResource? Type3459 { get; set; } + public global::tryAGI.OpenAI.AgentContentResourceDiscriminator? Type3459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputText? Type3460 { get; set; } + public global::tryAGI.OpenAI.AgentContentResourceDiscriminatorType? Type3460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputTextType? Type3461 { get; set; } + public global::tryAGI.OpenAI.SubagentStatusResource? Type3461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImage? Type3462 { get; set; } + public global::tryAGI.OpenAI.SubagentResource? Type3462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImageType? Type3463 { get; set; } + public global::System.Collections.Generic.IList? Type3463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputText? Type3464 { get; set; } + public global::tryAGI.OpenAI.SessionMessageRoleResource? Type3464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputTextType? Type3465 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputText? Type3465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResource? Type3466 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputTextType? Type3466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceDiscriminator? Type3467 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputImage? Type3467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceDiscriminatorType? Type3468 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceInputImageType? Type3468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemStatusResource? Type3469 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceOutputText? Type3469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhaseResource? Type3470 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceOutputTextType? Type3470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageItemResource? Type3471 { get; set; } + public global::tryAGI.OpenAI.MessageContentResource? Type3471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageItemResourceType? Type3472 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceDiscriminator? Type3472 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3473 { get; set; } + public global::tryAGI.OpenAI.MessageContentResourceDiscriminatorType? Type3473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextResource? Type3474 { get; set; } + public global::tryAGI.OpenAI.OutputItemStatusResource? Type3474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextResourceType? Type3475 { get; set; } + public global::tryAGI.OpenAI.MessagePhaseResource? Type3475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResource? Type3476 { get; set; } + public global::tryAGI.OpenAI.MessageItemResource? Type3476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResourceType? Type3477 { get; set; } + public global::tryAGI.OpenAI.MessageItemResourceType? Type3477 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3478 { get; set; } + public global::System.Collections.Generic.IList? Type3478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallStatusResource? Type3479 { get; set; } + public global::tryAGI.OpenAI.SummaryTextResource? Type3479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResource? Type3480 { get; set; } + public global::tryAGI.OpenAI.SummaryTextResourceType? Type3480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResourceType? Type3481 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemResource? Type3481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputText? Type3482 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemResourceType? Type3482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputTextType? Type3483 { get; set; } + public global::System.Collections.Generic.IList? Type3483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImage? Type3484 { get; set; } + public global::tryAGI.OpenAI.FunctionCallStatusResource? Type3484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImageType? Type3485 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemResource? Type3485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResource? Type3486 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemResourceType? Type3486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceDiscriminator? Type3487 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputText? Type3487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentResourceDiscriminatorType? Type3488 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputTextType? Type3488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputResource? Type3489 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputImage? Type3489 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3490 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceInputImageType? Type3490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResource? Type3491 { get; set; } + public global::tryAGI.OpenAI.InputContentResource? Type3491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResourceType? Type3492 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceDiscriminator? Type3492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResource? Type3493 { get; set; } + public global::tryAGI.OpenAI.InputContentResourceDiscriminatorType? Type3493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResourceType? Type3494 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputResource? Type3494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpCallItemResource? Type3495 { get; set; } + public global::System.Collections.Generic.IList? Type3495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpCallItemResourceType? Type3496 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemResource? Type3496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearch? Type3497 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemResourceType? Type3497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearchType? Type3498 { get; set; } + public global::tryAGI.OpenAI.AgentMessageItemResource? Type3498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage? Type3499 { get; set; } + public global::tryAGI.OpenAI.AgentMessageItemResourceType? Type3499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPageType? Type3500 { get; set; } + public global::tryAGI.OpenAI.McpCallItemResource? Type3500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage? Type3501 { get; set; } + public global::tryAGI.OpenAI.McpCallItemResourceType? Type3501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPageType? Type3502 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceSearch? Type3502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOther? Type3503 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceSearchType? Type3503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOtherType? Type3504 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage? Type3504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResource? Type3505 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPageType? Type3505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminator? Type3506 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage? Type3506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminatorType? Type3507 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPageType? Type3507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResource? Type3508 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOther? Type3508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResourceType? Type3509 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceOtherType? Type3509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResource? Type3510 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResource? Type3510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResourceType? Type3511 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminator? Type3511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResource? Type3512 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionResourceDiscriminatorType? Type3512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResourceType? Type3513 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallItemResource? Type3513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResource? Type3514 { get; set; } + public global::tryAGI.OpenAI.WebSearchCallItemResourceType? Type3514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResourceType? Type3515 { get; set; } + public global::tryAGI.OpenAI.CommandExecutionItemResource? Type3515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResource? Type3516 { get; set; } + public global::tryAGI.OpenAI.CommandExecutionItemResourceType? Type3516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResourceType? Type3517 { get; set; } + public global::tryAGI.OpenAI.InterruptSubagentCallItemResource? Type3517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResource? Type3518 { get; set; } + public global::tryAGI.OpenAI.InterruptSubagentCallItemResourceType? Type3518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResourceType? Type3519 { get; set; } + public global::tryAGI.OpenAI.CreateSubagentCallItemResource? Type3519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource? Type3520 { get; set; } + public global::tryAGI.OpenAI.CreateSubagentCallItemResourceType? Type3520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResourceType? Type3521 { get; set; } + public global::tryAGI.OpenAI.SendSubagentInputCallItemResource? Type3521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResource? Type3522 { get; set; } + public global::tryAGI.OpenAI.SendSubagentInputCallItemResourceType? Type3522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResourceType? Type3523 { get; set; } + public global::tryAGI.OpenAI.ResumeSubagentCallItemResource? Type3523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResource? Type3524 { get; set; } + public global::tryAGI.OpenAI.ResumeSubagentCallItemResourceType? Type3524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminator? Type3525 { get; set; } + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource? Type3525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminatorType? Type3526 { get; set; } + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResourceType? Type3526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionItemListResource? Type3527 { get; set; } + public global::tryAGI.OpenAI.CloseSubagentCallItemResource? Type3527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionItemListResourceObject? Type3528 { get; set; } + public global::tryAGI.OpenAI.CloseSubagentCallItemResourceType? Type3528 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3529 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResource? Type3529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnObjectResource? Type3530 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminator? Type3530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnStatusResource? Type3531 { get; set; } + public global::tryAGI.OpenAI.SessionTurnItemResourceDiscriminatorType? Type3531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnErrorCodeResource? Type3532 { get; set; } + public global::tryAGI.OpenAI.SessionItemListResource? Type3532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnErrorResource? Type3533 { get; set; } + public global::tryAGI.OpenAI.SessionItemListResourceObject? Type3533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTokensDetailsResource? Type3534 { get; set; } + public global::System.Collections.Generic.IList? Type3534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTokensDetailsResource? Type3535 { get; set; } + public global::tryAGI.OpenAI.TurnObjectResource? Type3535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenUsageResource? Type3536 { get; set; } + public global::tryAGI.OpenAI.TurnStatusResource? Type3536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TurnResource? Type3537 { get; set; } + public global::tryAGI.OpenAI.SessionTurnErrorCodeResource? Type3537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnListResource? Type3538 { get; set; } + public global::tryAGI.OpenAI.SessionTurnErrorResource? Type3538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionTurnListResourceObject? Type3539 { get; set; } + public global::tryAGI.OpenAI.InputTokensDetailsResource? Type3539 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3540 { get; set; } + public global::tryAGI.OpenAI.OutputTokensDetailsResource? Type3540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortResource? Type3541 { get; set; } + public global::tryAGI.OpenAI.TokenUsageResource? Type3541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummaryResource? Type3542 { get; set; } + public global::tryAGI.OpenAI.TurnResource? Type3542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningResource? Type3543 { get; set; } + public global::tryAGI.OpenAI.SessionTurnListResource? Type3543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceText? Type3544 { get; set; } + public global::tryAGI.OpenAI.SessionTurnListResourceObject? Type3544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceTextType? Type3545 { get; set; } + public global::System.Collections.Generic.IList? Type3545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchema? Type3546 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortResource? Type3546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchemaType? Type3547 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummaryResource? Type3547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResource? Type3548 { get; set; } + public global::tryAGI.OpenAI.ReasoningResource? Type3548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceDiscriminator? Type3549 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceText? Type3549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceDiscriminatorType? Type3550 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceTextType? Type3550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityResource? Type3551 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceJsonSchema? Type3551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResource? Type3552 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceJsonSchemaType? Type3552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierResource? Type3553 { get; set; } + public global::tryAGI.OpenAI.TextFormatResource? Type3553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction? Type3554 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceDiscriminator? Type3554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunctionType? Type3555 { get; set; } + public global::tryAGI.OpenAI.TextFormatResourceDiscriminatorType? Type3555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch? Type3556 { get; set; } + public global::tryAGI.OpenAI.VerbosityResource? Type3556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearchType? Type3557 { get; set; } + public global::tryAGI.OpenAI.TextResource? Type3557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling? Type3558 { get; set; } + public global::tryAGI.OpenAI.ServiceTierResource? Type3558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCallingType? Type3559 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction? Type3559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp? Type3560 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunctionType? Type3560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttpType? Type3561 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch? Type3561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio? Type3562 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearchType? Type3562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdioType? Type3563 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling? Type3563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResource? Type3564 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCallingType? Type3564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminator? Type3565 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp? Type3565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminatorType? Type3566 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttpType? Type3566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpConnectionOriginResource? Type3567 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio? Type3567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp? Type3568 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdioType? Type3568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcpType? Type3569 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResource? Type3569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchModeResource? Type3570 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminator? Type3570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSizeResource? Type3571 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportResourceDiscriminatorType? Type3571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocationResource? Type3572 { get; set; } + public global::tryAGI.OpenAI.McpConnectionOriginResource? Type3572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch? Type3573 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp? Type3573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearchType? Type3574 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcpType? Type3574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResource? Type3575 { get; set; } + public global::tryAGI.OpenAI.WebSearchModeResource? Type3575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminator? Type3576 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSizeResource? Type3576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminatorType? Type3577 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocationResource? Type3577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MultiAgentConfigResource? Type3578 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch? Type3578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentResource? Type3579 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearchType? Type3579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentResourceObject? Type3580 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResource? Type3580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3581 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminator? Type3581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentListResource? Type3582 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolResourceDiscriminatorType? Type3582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentListResourceObject? Type3583 { get; set; } + public global::tryAGI.OpenAI.MultiAgentConfigResource? Type3583 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3584 { get; set; } + public global::tryAGI.OpenAI.AgentResource? Type3584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortParam? Type3585 { get; set; } + public global::tryAGI.OpenAI.AgentResourceObject? Type3585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummaryParam? Type3586 { get; set; } + public global::System.Collections.Generic.IList? Type3586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningParam? Type3587 { get; set; } + public global::tryAGI.OpenAI.AgentListResource? Type3587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamText? Type3588 { get; set; } + public global::tryAGI.OpenAI.AgentListResourceObject? Type3588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamTextType? Type3589 { get; set; } + public global::System.Collections.Generic.IList? Type3589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchema? Type3590 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortParam? Type3590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchemaType? Type3591 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummaryParam? Type3591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParam? Type3592 { get; set; } + public global::tryAGI.OpenAI.ReasoningParam? Type3592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamDiscriminator? Type3593 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamText? Type3593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextFormatParamDiscriminatorType? Type3594 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamTextType? Type3594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityParam? Type3595 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamJsonSchema? Type3595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextParam? Type3596 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamJsonSchemaType? Type3596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierParam? Type3597 { get; set; } + public global::tryAGI.OpenAI.TextFormatParam? Type3597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction? Type3598 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamDiscriminator? Type3598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType? Type3599 { get; set; } + public global::tryAGI.OpenAI.TextFormatParamDiscriminatorType? Type3599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch? Type3600 { get; set; } + public global::tryAGI.OpenAI.VerbosityParam? Type3600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType? Type3601 { get; set; } + public global::tryAGI.OpenAI.TextParam? Type3601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling? Type3602 { get; set; } + public global::tryAGI.OpenAI.ServiceTierParam? Type3602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType? Type3603 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction? Type3603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp? Type3604 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunctionType? Type3604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType? Type3605 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch? Type3605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio? Type3606 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearchType? Type3606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType? Type3607 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling? Type3607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParam? Type3608 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCallingType? Type3608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminator? Type3609 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp? Type3609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType? Type3610 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttpType? Type3610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpConnectionOriginParam? Type3611 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio? Type3611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp? Type3612 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdioType? Type3612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType? Type3613 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParam? Type3613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchModeParam? Type3614 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminator? Type3614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSizeParam? Type3615 { get; set; } + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamDiscriminatorType? Type3615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocationParam? Type3616 { get; set; } + public global::tryAGI.OpenAI.McpConnectionOriginParam? Type3616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch? Type3617 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp? Type3617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType? Type3618 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcpType? Type3618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParam? Type3619 { get; set; } + public global::tryAGI.OpenAI.WebSearchModeParam? Type3619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminator? Type3620 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSizeParam? Type3620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType? Type3621 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocationParam? Type3621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? Type3622 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch? Type3622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAgentParams? Type3623 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearchType? Type3623 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3624 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParam? Type3624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateAgentParams? Type3625 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminator? Type3625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedAgentResource? Type3626 { get; set; } + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamDiscriminatorType? Type3626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedAgentResourceObject? Type3627 { get; set; } + public global::tryAGI.OpenAI.MultiAgentConfigCurrentParam? Type3627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentPackagesResource? Type3628 { get; set; } + public global::tryAGI.OpenAI.CreateAgentParams? Type3628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkAccessResource? Type3629 { get; set; } + public global::System.Collections.Generic.IList? Type3629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyResource? Type3630 { get; set; } + public global::tryAGI.OpenAI.UpdateAgentParams? Type3630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference? Type3631 { get; set; } + public global::tryAGI.OpenAI.DeletedAgentResource? Type3631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType? Type3632 { get; set; } + public global::tryAGI.OpenAI.DeletedAgentResourceObject? Type3632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline? Type3633 { get; set; } + public global::tryAGI.OpenAI.EnvironmentPackagesResource? Type3633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType? Type3634 { get; set; } + public global::tryAGI.OpenAI.NetworkAccessResource? Type3634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResource? Type3635 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyResource? Type3635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminator? Type3636 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference? Type3636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType? Type3637 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReferenceType? Type3637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId? Type3638 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline? Type3638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileIdType? Type3639 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInlineType? Type3639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInline? Type3640 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResource? Type3640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInlineType? Type3641 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminator? Type3641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResource? Type3642 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateSkillResourceDiscriminatorType? Type3642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminator? Type3643 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId? Type3643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminatorType? Type3644 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileIdType? Type3644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateResource? Type3645 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceInline? Type3645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateResourceObject? Type3646 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceInlineType? Type3646 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3647 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResource? Type3647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3648 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminator? Type3648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateListResource? Type3649 { get; set; } + public global::tryAGI.OpenAI.HostedTemplateFileResourceDiscriminatorType? Type3649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentTemplateListResourceObject? Type3650 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateResource? Type3650 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3651 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateResourceObject? Type3651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentPackagesParam? Type3652 { get; set; } + public global::System.Collections.Generic.IList? Type3652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetupCommandParam? Type3653 { get; set; } + public global::System.Collections.Generic.IList? Type3653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkAccessParam? Type3654 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateListResource? Type3654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicyParam? Type3655 { get; set; } + public global::tryAGI.OpenAI.EnvironmentTemplateListResourceObject? Type3655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReference? Type3656 { get; set; } + public global::System.Collections.Generic.IList? Type3656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReferenceType? Type3657 { get; set; } + public global::tryAGI.OpenAI.EnvironmentPackagesParam? Type3657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64? Type3658 { get; set; } + public global::tryAGI.OpenAI.SetupCommandParam? Type3658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64Type? Type3659 { get; set; } + public global::tryAGI.OpenAI.NetworkAccessParam? Type3659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64MediaType? Type3660 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicyParam? Type3660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParam? Type3661 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamSkillReference? Type3661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminator? Type3662 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamSkillReferenceType? Type3662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType? Type3663 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64? Type3663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInline? Type3664 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64Type? Type3664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInlineType? Type3665 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64MediaType? Type3665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParam? Type3666 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParam? Type3666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamDiscriminator? Type3667 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminator? Type3667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType? Type3668 { get; set; } + public global::tryAGI.OpenAI.InlineCapabilitySourceParamDiscriminatorType? Type3668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInline? Type3669 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamInline? Type3669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInlineType? Type3670 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamInlineType? Type3670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParam? Type3671 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParam? Type3671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamDiscriminator? Type3672 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamDiscriminator? Type3672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType? Type3673 { get; set; } + public global::tryAGI.OpenAI.HostedSkillParamDiscriminatorType? Type3673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEnvironmentTemplateParams? Type3674 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamInline? Type3674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3675 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamInlineType? Type3675 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3676 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParam? Type3676 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3677 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamDiscriminator? Type3677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3678 { get; set; } + public global::tryAGI.OpenAI.HostedPluginParamDiscriminatorType? Type3678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEnvironmentTemplateParams? Type3679 { get; set; } + public global::tryAGI.OpenAI.CreateEnvironmentTemplateParams? Type3679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResource? Type3680 { get; set; } + public global::System.Collections.Generic.IList? Type3680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResourceObject? Type3681 { get; set; } + public global::System.Collections.Generic.IList? Type3681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionStatusResource? Type3682 { get; set; } + public global::System.Collections.Generic.IList? Type3682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall? Type3683 { get; set; } + public global::System.Collections.Generic.IList? Type3683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCallType? Type3684 { get; set; } + public global::tryAGI.OpenAI.UpdateEnvironmentTemplateParams? Type3684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection? Type3685 { get; set; } + public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResource? Type3685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnectionType? Type3686 { get; set; } + public global::tryAGI.OpenAI.DeletedEnvironmentTemplateResourceObject? Type3686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResource? Type3687 { get; set; } + public global::tryAGI.OpenAI.SessionStatusResource? Type3687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminator? Type3688 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall? Type3688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminatorType? Type3689 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCallType? Type3689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunction? Type3690 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection? Type3690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunctionType? Type3691 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnectionType? Type3691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling? Type3692 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResource? Type3692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCallingType? Type3693 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminator? Type3693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttp? Type3694 { get; set; } + public global::tryAGI.OpenAI.SessionRequiredActionResourceDiscriminatorType? Type3694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttpType? Type3695 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceFunction? Type3695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdio? Type3696 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceFunctionType? Type3696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdioType? Type3697 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling? Type3697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResource? Type3698 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCallingType? Type3698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceDiscriminator? Type3699 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceHttp? Type3699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceDiscriminatorType? Type3700 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceHttpType? Type3700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcp? Type3701 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceStdio? Type3701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcpType? Type3702 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceStdioType? Type3702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearch? Type3703 { get; set; } + public global::tryAGI.OpenAI.McpTransportResource? Type3703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearchType? Type3704 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceDiscriminator? Type3704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResource? Type3705 { get; set; } + public global::tryAGI.OpenAI.McpTransportResourceDiscriminatorType? Type3705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceDiscriminator? Type3706 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceMcp? Type3706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceDiscriminatorType? Type3707 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceMcpType? Type3707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionAgentResource? Type3708 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceWebSearch? Type3708 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3709 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceWebSearchType? Type3709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNone? Type3710 { get; set; } + public global::tryAGI.OpenAI.AgentToolResource? Type3710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNoneType? Type3711 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceDiscriminator? Type3711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted? Type3712 { get; set; } + public global::tryAGI.OpenAI.AgentToolResourceDiscriminatorType? Type3712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHostedType? Type3713 { get; set; } + public global::tryAGI.OpenAI.SessionAgentResource? Type3713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted? Type3714 { get; set; } + public global::System.Collections.Generic.IList? Type3714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHostedType? Type3715 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceNone? Type3715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResource? Type3716 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceNoneType? Type3716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceDiscriminator? Type3717 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted? Type3717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceDiscriminatorType? Type3718 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHostedType? Type3718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionResource? Type3719 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted? Type3719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionResourceObject? Type3720 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceSelfHostedType? Type3720 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3721 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResource? Type3721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionListResource? Type3722 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceDiscriminator? Type3722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionListResourceObject? Type3723 { get; set; } + public global::tryAGI.OpenAI.EnvironmentResourceDiscriminatorType? Type3723 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3724 { get; set; } + public global::tryAGI.OpenAI.SessionResource? Type3724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunction? Type3725 { get; set; } + public global::tryAGI.OpenAI.SessionResourceObject? Type3725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunctionType? Type3726 { get; set; } + public global::System.Collections.Generic.IList? Type3726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch? Type3727 { get; set; } + public global::tryAGI.OpenAI.SessionListResource? Type3727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearchType? Type3728 { get; set; } + public global::tryAGI.OpenAI.SessionListResourceObject? Type3728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling? Type3729 { get; set; } + public global::System.Collections.Generic.IList? Type3729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCallingType? Type3730 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamFunction? Type3730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttp? Type3731 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamFunctionType? Type3731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttpType? Type3732 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch? Type3732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdio? Type3733 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearchType? Type3733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdioType? Type3734 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling? Type3734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParam? Type3735 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCallingType? Type3735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminator? Type3736 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamHttp? Type3736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminatorType? Type3737 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamHttpType? Type3737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcp? Type3738 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamStdio? Type3738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcpType? Type3739 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamStdioType? Type3739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch? Type3740 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParam? Type3740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearchType? Type3741 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminator? Type3741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParam? Type3742 { get; set; } + public global::tryAGI.OpenAI.McpTransportConfigParamDiscriminatorType? Type3742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminator? Type3743 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamMcp? Type3743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminatorType? Type3744 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamMcpType? Type3744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionAgentConfigParam? Type3745 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch? Type3745 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3746 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearchType? Type3746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNone? Type3747 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParam? Type3747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNoneType? Type3748 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminator? Type3748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted? Type3749 { get; set; } + public global::tryAGI.OpenAI.AgentToolConfigParamDiscriminatorType? Type3749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHostedType? Type3750 { get; set; } + public global::tryAGI.OpenAI.SessionAgentConfigParam? Type3750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHosted? Type3751 { get; set; } + public global::System.Collections.Generic.IList? Type3751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHostedType? Type3752 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamNone? Type3752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParam? Type3753 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamNoneType? Type3753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamDiscriminator? Type3754 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted? Type3754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamDiscriminatorType? Type3755 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHostedType? Type3755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputText? Type3756 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamSelfHosted? Type3756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputTextType? Type3757 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamSelfHostedType? Type3757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImage? Type3758 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParam? Type3758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImageType? Type3759 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamDiscriminator? Type3759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParam? Type3760 { get; set; } + public global::tryAGI.OpenAI.EnvironmentParamDiscriminatorType? Type3760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamDiscriminator? Type3761 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputText? Type3761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentParamDiscriminatorType? Type3762 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputTextType? Type3762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParam? Type3763 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputImage? Type3763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParamType? Type3764 { get; set; } + public global::tryAGI.OpenAI.InputContentParamInputImageType? Type3764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageParamRole? Type3765 { get; set; } + public global::tryAGI.OpenAI.InputContentParam? Type3765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3766 { get; set; } + public global::tryAGI.OpenAI.InputContentParamDiscriminator? Type3766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSessionInputParam? Type3767 { get; set; } + public global::tryAGI.OpenAI.InputContentParamDiscriminatorType? Type3767 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3768 { get; set; } + public global::tryAGI.OpenAI.InputMessageParam? Type3768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAgentSessionParams? Type3769 { get; set; } + public global::tryAGI.OpenAI.InputMessageParamType? Type3769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionErrorResource? Type3770 { get; set; } + public global::tryAGI.OpenAI.InputMessageParamRole? Type3770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventError? Type3771 { get; set; } + public global::System.Collections.Generic.IList? Type3771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventErrorType? Type3772 { get; set; } + public global::tryAGI.OpenAI.CreateSessionInputParam? Type3772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentStatusResource? Type3773 { get; set; } + public global::System.Collections.Generic.IList? Type3773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentErrorResource? Type3774 { get; set; } + public global::tryAGI.OpenAI.CreateAgentSessionParams? Type3774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEnvironmentStateResource? Type3775 { get; set; } + public global::tryAGI.OpenAI.SessionErrorResource? Type3775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady? Type3776 { get; set; } + public global::tryAGI.OpenAI.SessionEventError? Type3776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReadyType? Type3777 { get; set; } + public global::tryAGI.OpenAI.SessionEventErrorType? Type3777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset? Type3778 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentStatusResource? Type3778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentResetType? Type3779 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentErrorResource? Type3779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta? Type3780 { get; set; } + public global::tryAGI.OpenAI.SessionEnvironmentStateResource? Type3780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDeltaType? Type3781 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady? Type3781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreated? Type3782 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReadyType? Type3782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType? Type3783 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset? Type3783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated? Type3784 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentResetType? Type3784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType? Type3785 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta? Type3785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress? Type3786 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDeltaType? Type3786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType? Type3787 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionCreated? Type3787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted? Type3788 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionCreatedType? Type3788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType? Type3789 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated? Type3789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed? Type3790 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreatedType? Type3790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType? Type3791 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress? Type3791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled? Type3792 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgressType? Type3792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType? Type3793 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted? Type3793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded? Type3794 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompletedType? Type3794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAddedType? Type3795 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed? Type3795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdle? Type3796 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailedType? Type3796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdleType? Type3797 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled? Type3797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress? Type3798 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelledType? Type3798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgressType? Type3799 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded? Type3799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction? Type3800 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAddedType? Type3800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresActionType? Type3801 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionIdle? Type3801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailed? Type3802 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionIdleType? Type3802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailedType? Type3803 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress? Type3803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending? Type3804 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgressType? Type3804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPendingType? Type3805 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction? Type3805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected? Type3806 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresActionType? Type3806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnectedType? Type3807 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionFailed? Type3807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected? Type3808 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionFailedType? Type3808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnectedType? Type3809 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending? Type3809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed? Type3810 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPendingType? Type3810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailedType? Type3811 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected? Type3811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated? Type3812 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnectedType? Type3812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreatedType? Type3813 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected? Type3813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive? Type3814 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnectedType? Type3814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActiveType? Type3815 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed? Type3815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed? Type3816 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailedType? Type3816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosedType? Type3817 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated? Type3817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResource? Type3818 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreatedType? Type3818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResourceType? Type3819 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive? Type3819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResourceRole? Type3820 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActiveType? Type3820 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3821 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed? Type3821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResource? Type3822 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosedType? Type3822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminator? Type3823 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResource? Type3823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminatorType? Type3824 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResourceType? Type3824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone? Type3825 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemResourceRole? Type3825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDoneType? Type3826 { get; set; } + public global::System.Collections.Generic.IList? Type3826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded? Type3827 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResource? Type3827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAddedType? Type3828 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminator? Type3828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone? Type3829 { get; set; } + public global::tryAGI.OpenAI.AgentOutputItemResourceDiscriminatorType? Type3829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDoneType? Type3830 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone? Type3830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta? Type3831 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDoneType? Type3831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDeltaType? Type3832 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded? Type3832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone? Type3833 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAddedType? Type3833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDoneType? Type3834 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone? Type3834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded? Type3835 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDoneType? Type3835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAddedType? Type3836 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta? Type3836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone? Type3837 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDeltaType? Type3837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneType? Type3838 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone? Type3838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneStatus? Type3839 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDoneType? Type3839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta? Type3840 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded? Type3840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDeltaType? Type3841 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAddedType? Type3841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone? Type3842 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone? Type3842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDoneType? Type3843 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneType? Type3843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEvent? Type3844 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDoneStatus? Type3844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventDiscriminator? Type3845 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta? Type3845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionEventDiscriminatorType? Type3846 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDeltaType? Type3846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateSessionReasoningParam? Type3847 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone? Type3847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateSessionAgentParam? Type3848 { get; set; } + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDoneType? Type3848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateAgentSessionParams? Type3849 { get; set; } + public global::tryAGI.OpenAI.SessionEvent? Type3849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionResource? Type3850 { get; set; } + public global::tryAGI.OpenAI.SessionEventDiscriminator? Type3850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionResourceObject? Type3851 { get; set; } + public global::tryAGI.OpenAI.SessionEventDiscriminatorType? Type3851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactResource? Type3852 { get; set; } + public global::tryAGI.OpenAI.UpdateSessionReasoningParam? Type3852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactResourceObject? Type3853 { get; set; } + public global::tryAGI.OpenAI.UpdateSessionAgentParam? Type3853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactListResource? Type3854 { get; set; } + public global::tryAGI.OpenAI.UpdateAgentSessionParams? Type3854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionArtifactListResourceObject? Type3855 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionResource? Type3855 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3856 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionResourceObject? Type3856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionArtifactResource? Type3857 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactResource? Type3857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSessionArtifactResourceObject? Type3858 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactResourceObject? Type3858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage? Type3859 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactListResource? Type3859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessageType? Type3860 { get; set; } + public global::tryAGI.OpenAI.SessionArtifactListResourceObject? Type3860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel? Type3861 { get; set; } + public global::System.Collections.Generic.IList? Type3861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancelType? Type3862 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionArtifactResource? Type3862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputParam? Type3863 { get; set; } + public global::tryAGI.OpenAI.DeletedSessionArtifactResourceObject? Type3863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult? Type3864 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage? Type3864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResultType? Type3865 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessageType? Type3865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParam? Type3866 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel? Type3866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamDiscriminator? Type3867 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancelType? Type3867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SessionInputParamDiscriminatorType? Type3868 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputParam? Type3868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSessionEventsParams? Type3869 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult? Type3869 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3870 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResultType? Type3870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultStatusParam? Type3871 { get; set; } + public global::tryAGI.OpenAI.SessionInputParam? Type3871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultStatusFilterParam? Type3872 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamDiscriminator? Type3872 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3873 { get; set; } + public global::tryAGI.OpenAI.SessionInputParamDiscriminatorType? Type3873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultResource? Type3874 { get; set; } + public global::tryAGI.OpenAI.CreateSessionEventsParams? Type3874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultResourceObject? Type3875 { get; set; } + public global::System.Collections.Generic.IList? Type3875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultListResource? Type3876 { get; set; } + public global::tryAGI.OpenAI.VaultStatusParam? Type3876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultListResourceObject? Type3877 { get; set; } + public global::tryAGI.OpenAI.VaultStatusFilterParam? Type3877 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3878 { get; set; } + public global::System.Collections.Generic.IList? Type3878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultParams? Type3879 { get; set; } + public global::tryAGI.OpenAI.VaultResource? Type3879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultResource? Type3880 { get; set; } + public global::tryAGI.OpenAI.VaultResourceObject? Type3880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultResourceObject? Type3881 { get; set; } + public global::tryAGI.OpenAI.VaultListResource? Type3881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone? Type3882 { get; set; } + public global::tryAGI.OpenAI.VaultListResourceObject? Type3882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType? Type3883 { get; set; } + public global::System.Collections.Generic.IList? Type3883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic? Type3884 { get; set; } + public global::tryAGI.OpenAI.CreateVaultParams? Type3884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasicType? Type3885 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultResource? Type3885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost? Type3886 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultResourceObject? Type3886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPostType? Type3887 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone? Type3887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResource? Type3888 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNoneType? Type3888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminator? Type3889 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic? Type3889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminatorType? Type3890 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasicType? Type3890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.McpOauthRefreshResource? Type3891 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost? Type3891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth? Type3892 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPostType? Type3892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauthType? Type3893 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResource? Type3893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer? Type3894 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminator? Type3894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearerType? Type3895 { get; set; } + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceDiscriminatorType? Type3895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted? Type3896 { get; set; } + public global::tryAGI.OpenAI.McpOauthRefreshResource? Type3896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestrictedType? Type3897 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth? Type3897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited? Type3898 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauthType? Type3898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimitedType? Type3899 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer? Type3899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResource? Type3900 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearerType? Type3900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminator? Type3901 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted? Type3901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminatorType? Type3902 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestrictedType? Type3902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable? Type3903 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited? Type3903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariableType? Type3904 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimitedType? Type3904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResource? Type3905 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResource? Type3905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminator? Type3906 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminator? Type3906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminatorType? Type3907 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceDiscriminatorType? Type3907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialResource? Type3908 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable? Type3908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialResourceObject? Type3909 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariableType? Type3909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialListResource? Type3910 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResource? Type3910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialListResourceObject? Type3911 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminator? Type3911 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3912 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialAuthResourceDiscriminatorType? Type3912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone? Type3913 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialResource? Type3913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNoneType? Type3914 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialResourceObject? Type3914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3915 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialListResource? Type3915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3916 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialListResourceObject? Type3916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3917 { get; set; } + public global::System.Collections.Generic.IList? Type3917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3918 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone? Type3918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParam? Type3919 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNoneType? Type3919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminator? Type3920 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3921 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthRefreshParam? Type3922 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth? Type3923 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauthType? Type3924 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParam? Type3924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer? Type3925 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminator? Type3925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearerType? Type3926 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted? Type3927 { get; set; } + public global::tryAGI.OpenAI.CreateMcpOauthRefreshParam? Type3927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestrictedType? Type3928 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth? Type3928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited? Type3929 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauthType? Type3929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimitedType? Type3930 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer? Type3930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParam? Type3931 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearerType? Type3931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminator? Type3932 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted? Type3932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminatorType? Type3933 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestrictedType? Type3933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable? Type3934 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited? Type3934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariableType? Type3935 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimitedType? Type3935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParam? Type3936 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParam? Type3936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminator? Type3937 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminator? Type3937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminatorType? Type3938 { get; set; } + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamDiscriminatorType? Type3938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialParams? Type3939 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable? Type3939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3940 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariableType? Type3940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3941 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParam? Type3941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3942 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminator? Type3942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3943 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamDiscriminatorType? Type3943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParam? Type3944 { get; set; } + public global::tryAGI.OpenAI.CreateVaultCredentialParams? Type3944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminator? Type3945 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic? Type3945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3946 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasicType? Type3946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthRefreshParam? Type3947 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost? Type3947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth? Type3948 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPostType? Type3948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType? Type3949 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParam? Type3949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer? Type3950 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminator? Type3950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType? Type3951 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamDiscriminatorType? Type3951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable? Type3952 { get; set; } + public global::tryAGI.OpenAI.RotateMcpOauthRefreshParam? Type3952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariableType? Type3953 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth? Type3953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParam? Type3954 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauthType? Type3954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminator? Type3955 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer? Type3955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminatorType? Type3956 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearerType? Type3956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialParams? Type3957 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable? Type3957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultCredentialResource? Type3958 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariableType? Type3958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVaultCredentialResourceObject? Type3959 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParam? Type3959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointBody? Type3960 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminator? Type3960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointBodyObject? Type3961 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamDiscriminatorType? Type3961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointListResource? Type3962 { get; set; } + public global::tryAGI.OpenAI.RotateVaultCredentialParams? Type3962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointListResourceObject? Type3963 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultCredentialResource? Type3963 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3964 { get; set; } + public global::tryAGI.OpenAI.DeletedVaultCredentialResourceObject? Type3964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectEventTypeEnum? Type3965 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointBody? Type3965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicCreateEndpointBody? Type3966 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointBodyObject? Type3966 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type3967 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointListResource? Type3967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointWithSecretResource? Type3968 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointListResourceObject? Type3968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointWithSecretResourceObject? Type3969 { get; set; } + public global::System.Collections.Generic.IList? Type3969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicUpdateEndpointBody? Type3970 { get; set; } + public global::tryAGI.OpenAI.ProjectEventTypeEnum? Type3970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedWebhookEndpointResource? Type3971 { get; set; } + public global::tryAGI.OpenAI.PublicCreateEndpointBody? Type3971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedWebhookEndpointResourceObject? Type3972 { get; set; } + public global::System.Collections.Generic.IList? Type3972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRotateSecretBody? Type3973 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointWithSecretResource? Type3973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicTestEndpointBody? Type3974 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointWithSecretResourceObject? Type3974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointTestResultResource? Type3975 { get; set; } + public global::tryAGI.OpenAI.PublicUpdateEndpointBody? Type3975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEndpointTestResultResourceObject? Type3976 { get; set; } + public global::tryAGI.OpenAI.DeletedWebhookEndpointResource? Type3976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEventTypeListResource? Type3977 { get; set; } + public global::tryAGI.OpenAI.DeletedWebhookEndpointResourceObject? Type3977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEventTypeListResourceObject? Type3978 { get; set; } + public global::tryAGI.OpenAI.PublicRotateSecretBody? Type3978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragPoint? Type3979 { get; set; } + public global::tryAGI.OpenAI.PublicTestEndpointBody? Type3979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam? Type3980 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointTestResultResource? Type3980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType? Type3981 { get; set; } + public global::tryAGI.OpenAI.WebhookEndpointTestResultResourceObject? Type3981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam? Type3982 { get; set; } + public global::tryAGI.OpenAI.WebhookEventTypeListResource? Type3982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType? Type3983 { get; set; } + public global::tryAGI.OpenAI.WebhookEventTypeListResourceObject? Type3983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam? Type3984 { get; set; } + public global::tryAGI.OpenAI.DragPoint? Type3984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType? Type3985 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam? Type3985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormat? Type3986 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParamType? Type3986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormatDiscriminator? Type3987 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam? Type3987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType? Type3988 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParamType? Type3988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInitialSessionAudioParam? Type3989 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam? Type3989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParams? Type3990 { get; set; } + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParamType? Type3990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant12? Type3991 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormat? Type3991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1Discriminator? Type3992 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormatDiscriminator? Type3992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType? Type3993 { get; set; } + public global::tryAGI.OpenAI.LiveAudioFormatDiscriminatorType? Type3993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartEventType? Type3994 { get; set; } + public global::tryAGI.OpenAI.LiveInitialSessionAudioParam? Type3994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParams? Type3995 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParams? Type3995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant13? Type3996 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant12? Type3996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1Discriminator? Type3997 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1Discriminator? Type3997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1DiscriminatorType? Type3998 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCreateParamsDelegationVariant1DiscriminatorType? Type3998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParamType? Type3999 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartEventType? Type3999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEventType? Type4000 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParams? Type4000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParamType? Type4001 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant13? Type4001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParamType? Type4002 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1Discriminator? Type4002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParamType? Type4003 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamsDelegationVariant1DiscriminatorType? Type4003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParamType? Type4004 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdateParamType? Type4004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParamType? Type4005 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendEventType? Type4005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParamType? Type4006 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMuteParamType? Type4006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParamType? Type4007 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParamType? Type4007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParamType? Type4008 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendParamType? Type4008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkAudioParam? Type4009 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendParamType? Type4009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionConfigParam? Type4010 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendParamType? Type4010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionStartEventType? Type4011 { get; set; } + public global::tryAGI.OpenAI.LiveResponseItemCreateParamType? Type4011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParam? Type4012 { get; set; } + public global::tryAGI.OpenAI.LiveResponseCreateParamType? Type4012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DelegationVariant14? Type4013 { get; set; } + public global::tryAGI.OpenAI.LiveSessionCloseParamType? Type4013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1Discriminator? Type4014 { get; set; } + public global::tryAGI.OpenAI.LiveForkAudioParam? Type4014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1DiscriminatorType? Type4015 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionConfigParam? Type4015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionResourceParamStatus? Type4016 { get; set; } + public global::tryAGI.OpenAI.LiveForkSessionStartEventType? Type4016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartedType? Type4017 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParam? Type4017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdatedType? Type4018 { get; set; } + public global::tryAGI.OpenAI.DelegationVariant14? Type4018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMutedType? Type4019 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1Discriminator? Type4019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmutedType? Type4020 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamDelegationVariant1DiscriminatorType? Type4020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendedType? Type4021 { get; set; } + public global::tryAGI.OpenAI.LiveSessionResourceParamStatus? Type4021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendedType? Type4022 { get; set; } + public global::tryAGI.OpenAI.LiveSessionStartedType? Type4022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendedType? Type4023 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUpdatedType? Type4023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppend? Type4024 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioMutedType? Type4024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendType? Type4025 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioUnmutedType? Type4025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDelta? Type4026 { get; set; } + public global::tryAGI.OpenAI.LiveInstructionsAppendedType? Type4026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDeltaType? Type4027 { get; set; } + public global::tryAGI.OpenAI.LiveThinkingAppendedType? Type4027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDeltaType? Type4028 { get; set; } + public global::tryAGI.OpenAI.LiveCommentaryAppendedType? Type4028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDeltaType? Type4029 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppend? Type4029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItem? Type4030 { get; set; } + public global::tryAGI.OpenAI.LiveInputAudioAppendType? Type4030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemType? Type4031 { get; set; } + public global::tryAGI.OpenAI.LiveOutputAudioDelta? Type4031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4032 { get; set; } + public global::tryAGI.OpenAI.LiveOutputAudioDeltaType? Type4032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant1? Type4033 { get; set; } + public global::tryAGI.OpenAI.LiveInputTranscriptDeltaType? Type4033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant2? Type4034 { get; set; } + public global::tryAGI.OpenAI.LiveOutputTranscriptDeltaType? Type4034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreatedType? Type4035 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItem? Type4035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveResponseEventType? Type4036 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemType? Type4036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsage? Type4037 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveContextWindowUsage? Type4038 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant1? Type4038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdatedType? Type4039 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationItemTargetVariant2? Type4039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedType? Type4040 { get; set; } + public global::tryAGI.OpenAI.LiveDelegationCreatedType? Type4040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant1? Type4041 { get; set; } + public global::tryAGI.OpenAI.LiveResponseEventType? Type4041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant2? Type4042 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsage? Type4042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant3? Type4043 { get; set; } + public global::tryAGI.OpenAI.LiveContextWindowUsage? Type4043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant4? Type4044 { get; set; } + public global::tryAGI.OpenAI.LiveSessionUsageUpdatedType? Type4044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant5? Type4045 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedType? Type4045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveLiveError? Type4046 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant1? Type4046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveErrorEventType? Type4047 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant2? Type4047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveInfoEventType? Type4048 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant3? Type4048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceived? Type4049 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant4? Type4049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceivedType? Type4050 { get; set; } + public global::tryAGI.OpenAI.LiveSessionClosedReasonVariant5? Type4050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSend? Type4051 { get; set; } + public global::tryAGI.OpenAI.LiveLiveError? Type4051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSendType? Type4052 { get; set; } + public global::tryAGI.OpenAI.LiveErrorEventType? Type4052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportRinging? Type4053 { get; set; } + public global::tryAGI.OpenAI.LiveInfoEventType? Type4053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportRingingType? Type4054 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFReceived? Type4054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportAnswered? Type4055 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFReceivedType? Type4055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportAnsweredType? Type4056 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFSend? Type4056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportCallError? Type4057 { get; set; } + public global::tryAGI.OpenAI.LiveTransportDTMFSendType? Type4057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportCallErrorType? Type4058 { get; set; } + public global::tryAGI.OpenAI.LiveTransportRinging? Type4058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportFailed? Type4059 { get; set; } + public global::tryAGI.OpenAI.LiveTransportRingingType? Type4059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveTransportFailedType? Type4060 { get; set; } + public global::tryAGI.OpenAI.LiveTransportAnswered? Type4060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2Discriminator? Type4061 { get; set; } + public global::tryAGI.OpenAI.LiveTransportAnsweredType? Type4061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2DiscriminatorType? Type4062 { get; set; } + public global::tryAGI.OpenAI.LiveTransportCallError? Type4062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamType? Type4063 { get; set; } + public global::tryAGI.OpenAI.LiveTransportCallErrorType? Type4063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamRole? Type4064 { get; set; } + public global::tryAGI.OpenAI.LiveTransportFailed? Type4064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? Type4065 { get; set; } + public global::tryAGI.OpenAI.LiveTransportFailedType? Type4065 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4066 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2Discriminator? Type4066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant1Item? Type4067 { get; set; } + public global::tryAGI.OpenAI.LiveServerEvent2DiscriminatorType? Type4067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminator? Type4068 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamType? Type4068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminatorType? Type4069 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamRole? Type4069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResource? Type4070 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? Type4070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type4071 { get; set; } + public global::System.Collections.Generic.IList? Type4071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTokenCountsBody? Type4072 { get; set; } + public global::tryAGI.OpenAI.ContentVariant1Item? Type4072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4073 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminator? Type4073 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4074 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemParamContentVariant1ItemDiscriminatorType? Type4074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItem? Type4075 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResource? Type4075 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4076 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsResourceObject? Type4076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTool? Type4077 { get; set; } + public global::tryAGI.OpenAI.BetaTokenCountsBody? Type4077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextParam? Type4078 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoning? Type4079 { get; set; } + public global::System.Collections.Generic.IList? Type4079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTruncationEnum? Type4080 { get; set; } + public global::tryAGI.OpenAI.BetaInputItem? Type4080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnum? Type4081 { get; set; } + public global::System.Collections.Generic.IList? Type4081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam? Type4082 { get; set; } + public global::tryAGI.OpenAI.BetaTool? Type4082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceParam? Type4083 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextParam? Type4083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type4084 { get; set; } + public global::tryAGI.OpenAI.BetaReasoning? Type4084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type4085 { get; set; } + public global::tryAGI.OpenAI.BetaTruncationEnum? Type4085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type4086 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnum? Type4086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type4087 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam? Type4087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type4088 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceParam? Type4088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type4089 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceOptions? Type4089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type4090 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowed? Type4090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type4091 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypes? Type4091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type4092 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunction? Type4092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type4093 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCP? Type4093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type4094 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustom? Type4094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type4095 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam? Type4095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type4096 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam? Type4096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type4097 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam? Type4097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type4098 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParamType? Type4098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type4099 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParamType? Type4099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type4100 { get; set; } + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParamType? Type4100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type4101 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceCustomType? Type4101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam2? Type4102 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceMCPType? Type4102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type4103 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceFunctionType? Type4103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type4104 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceTypesType? Type4104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type4105 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedType? Type4105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningSummary? Type4106 { get; set; } + public global::tryAGI.OpenAI.BetaToolChoiceAllowedMode? Type4106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningContext? Type4107 { get; set; } + public global::tryAGI.OpenAI.BetaConversationParam2? Type4107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningGenerateSummary? Type4108 { get; set; } + public global::tryAGI.OpenAI.BetaPersonalityEnumEnum? Type4108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type4109 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnum? Type4109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type4110 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningEffortEnum? Type4110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaVerbosityEnum? Type4111 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningSummary? Type4111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatText? Type4112 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningContext? Type4112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type4113 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningGenerateSummary? Type4113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type4114 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum? Type4114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type4115 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatConfiguration? Type4115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type4116 { get; set; } + public global::tryAGI.OpenAI.BetaVerbosityEnum? Type4116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type4117 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatText? Type4117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type4118 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema? Type4118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionTool? Type4119 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObject? Type4119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchTool? Type4120 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonObjectType? Type4120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerTool? Type4121 { get; set; } + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchemaType? Type4121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type4122 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatJsonSchemaSchema? Type4122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchTool? Type4123 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFormatTextType? Type4123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPTool? Type4124 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionTool? Type4124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type4125 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchTool? Type4125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type4126 { get; set; } + public global::tryAGI.OpenAI.BetaComputerTool? Type4126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenTool? Type4127 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool? Type4127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type4128 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchTool? Type4128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type4129 { get; set; } + public global::tryAGI.OpenAI.BetaMCPTool? Type4129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam? Type4130 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterTool? Type4130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type4131 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam? Type4131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type4132 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenTool? Type4132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type4133 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParam? Type4133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type4134 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParam? Type4134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminator? Type4135 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParam? Type4135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type4136 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParam? Type4136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type4137 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParam? Type4137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4138 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool? Type4138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type4139 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParam? Type4139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type4140 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminator? Type4140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocation? Type4141 { get; set; } + public global::tryAGI.OpenAI.BetaToolDiscriminatorType? Type4141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContextSize? Type4142 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolParamType? Type4142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4143 { get; set; } + public global::System.Collections.Generic.IList? Type4143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSearchContentType? Type4144 { get; set; } + public global::tryAGI.OpenAI.BetaCallableToolAllowedCaller? Type4144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApproximateLocationType? Type4145 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchPreviewToolType? Type4145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type4146 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocation? Type4146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type4147 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContextSize? Type4147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEmptyModelParam? Type4148 { get; set; } + public global::System.Collections.Generic.IList? Type4148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type4149 { get; set; } + public global::tryAGI.OpenAI.BetaSearchContentType? Type4149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4150 { get; set; } + public global::tryAGI.OpenAI.BetaApproximateLocationType? Type4150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem16? Type4151 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchToolParamType? Type4151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParam? Type4152 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchExecutionType? Type4152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type4153 { get; set; } + public global::tryAGI.OpenAI.BetaEmptyModelParam? Type4153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type4154 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamType? Type4154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamType? Type4155 { get; set; } + public global::System.Collections.Generic.IList? Type4155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format3? Type4156 { get; set; } + public global::tryAGI.OpenAI.ToolsItem16? Type4156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type4157 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParam? Type4157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type4158 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminator? Type4158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type4159 { get; set; } + public global::tryAGI.OpenAI.BetaNamespaceToolParamToolDiscriminatorType? Type4159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type4160 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamType? Type4160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type4161 { get; set; } + public global::tryAGI.OpenAI.Format3? Type4161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type4162 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParam? Type4162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type4163 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam? Type4163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type4164 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminator? Type4164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type4165 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolParamFormatDiscriminatorType? Type4165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant14? Type4166 { get; set; } + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParamType? Type4166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParam? Type4167 { get; set; } + public global::tryAGI.OpenAI.BetaGrammarSyntax1? Type4167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type4168 { get; set; } + public global::tryAGI.OpenAI.BetaCustomTextFormatParamType? Type4168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type4169 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolParamType? Type4169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type4170 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamType? Type4170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type4171 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant14? Type4171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type4172 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParam? Type4172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type4173 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParam? Type4173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4174 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParam? Type4174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalSkillParam? Type4175 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1Discriminator? Type4175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type4176 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type4176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type4177 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceParamType? Type4177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy4? Type4178 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentParamType? Type4178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type4179 { get; set; } + public global::System.Collections.Generic.IList? Type4179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type4180 { get; set; } + public global::tryAGI.OpenAI.BetaLocalSkillParam? Type4180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type4181 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamType? Type4181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type4182 { get; set; } + public global::tryAGI.OpenAI.BetaContainerMemoryLimit? Type4182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4183 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy4? Type4183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem3? Type4184 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam? Type4184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type4185 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam? Type4185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParam? Type4186 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminator? Type4186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type4187 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamNetworkPolicyDiscriminatorType? Type4187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type4188 { get; set; } + public global::System.Collections.Generic.IList? Type4188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type4189 { get; set; } + public global::tryAGI.OpenAI.SkillsItem3? Type4189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type4190 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParam? Type4190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type4191 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParam? Type4191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type4192 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminator? Type4192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type4193 { get; set; } + public global::tryAGI.OpenAI.BetaContainerAutoParamSkillDiscriminatorType? Type4193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type4194 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillParamType? Type4194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4195 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParam? Type4195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type4196 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamType? Type4196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type4197 { get; set; } + public global::tryAGI.OpenAI.BetaInlineSkillSourceParamMediaType? Type4197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type4198 { get; set; } + public global::tryAGI.OpenAI.BetaSkillReferenceParamType? Type4198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolType? Type4199 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParamType? Type4199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4200 { get; set; } + public global::System.Collections.Generic.IList? Type4200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModel? Type4201 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDomainSecretParam? Type4201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type4202 { get; set; } + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParamType? Type4202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4203 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolParamType? Type4203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolSize? Type4204 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolType? Type4204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type4205 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type4206 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModel? Type4206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type4207 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolQuality? Type4207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFidelity? Type4208 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type4209 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolSize? Type4209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type4210 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolOutputFormat? Type4210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type4211 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolModeration? Type4211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type4212 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolBackground? Type4212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4213 { get; set; } + public global::tryAGI.OpenAI.BetaInputFidelity? Type4213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type4214 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolInputImageMask? Type4214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type4215 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenActionEnum? Type4215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy5? Type4216 { get; set; } + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParamType? Type4216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type4217 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolType? Type4217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type4218 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolType? Type4219 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParam? Type4219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type4220 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamType? Type4220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type4221 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy5? Type4221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolFilter? Type4222 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type4222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4223 { get; set; } + public global::tryAGI.OpenAI.BetaAutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type4223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type4224 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolType? Type4224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type4225 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolConnectorId? Type4225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolType? Type4226 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? Type4226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolFilters? Type4227 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolFilter? Type4227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type4228 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type4229 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum? Type4229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type4230 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolRequireApprovalVariant1Enum2? Type4230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type4231 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolType? Type4231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerEnvironment? Type4232 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolFilters? Type4232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolType? Type4233 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocation? Type4233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolType? Type4234 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolSearchContextSize? Type4234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankingOptions? Type4235 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchApproximateLocationWebSearchApproximateLocationType? Type4235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilters? Type4236 { get; set; } + public global::tryAGI.OpenAI.BetaComputerUsePreviewToolType? Type4236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilter? Type4237 { get; set; } + public global::tryAGI.OpenAI.BetaComputerEnvironment? Type4237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilter? Type4238 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolType? Type4238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterType? Type4239 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolType? Type4239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4240 { get; set; } + public global::tryAGI.OpenAI.BetaRankingOptions? Type4240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FiltersItem2? Type4241 { get; set; } + public global::tryAGI.OpenAI.BetaFilters? Type4241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type4242 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilter? Type4242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilterType? Type4243 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilter? Type4243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRankerVersionType? Type4244 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterType? Type4244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type4245 { get; set; } + public global::System.Collections.Generic.IList? Type4245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolType? Type4246 { get; set; } + public global::tryAGI.OpenAI.FiltersItem2? Type4246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessage? Type4247 { get; set; } + public global::tryAGI.OpenAI.BetaCompoundFilterFilterDiscriminator? Type4247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItem? Type4248 { get; set; } + public global::tryAGI.OpenAI.BetaComparisonFilterType? Type4248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type4249 { get; set; } + public global::tryAGI.OpenAI.BetaRankerVersionType? Type4249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParam? Type4250 { get; set; } + public global::tryAGI.OpenAI.BetaHybridSearchOptions? Type4250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParam? Type4251 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolType? Type4251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type4252 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessage? Type4252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type4253 { get; set; } + public global::tryAGI.OpenAI.BetaItem? Type4253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type4254 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam? Type4254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTagParam? Type4255 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParam? Type4255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type4256 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParam? Type4256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type4257 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParam? Type4257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParamType? Type4258 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminator? Type4258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParamType? Type4259 { get; set; } + public global::tryAGI.OpenAI.BetaInputItemDiscriminatorType? Type4259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type4260 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTagParam? Type4260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessage? Type4261 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemParamType? Type4261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage? Type4262 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputItemStatus? Type4262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type4263 { get; set; } + public global::tryAGI.OpenAI.BetaProgramItemParamType? Type4263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall? Type4264 { get; set; } + public global::tryAGI.OpenAI.BetaItemReferenceParamType? Type4264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type4265 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParamType? Type4265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type4266 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessage? Type4266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall? Type4267 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessage? Type4267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type4268 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCall? Type4268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type4269 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCall? Type4269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type4270 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam? Type4270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type4271 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCall? Type4271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type4272 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCall? Type4272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type4273 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam? Type4273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type4274 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParam? Type4274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam? Type4275 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam? Type4275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem? Type4276 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam? Type4276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type4277 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParam? Type4277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall? Type4278 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam? Type4278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type4279 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam? Type4279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type4280 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam? Type4280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type4281 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItem? Type4281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type4282 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam? Type4282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type4283 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCall? Type4283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type4284 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall? Type4284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type4285 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCall? Type4285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools? Type4286 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput? Type4286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type4287 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam? Type4287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type4288 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam? Type4288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall? Type4289 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam? Type4289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type4290 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam? Type4290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall? Type4291 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListTools? Type4291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminator? Type4292 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequest? Type4292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type4293 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponse? Type4293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentTag? Type4294 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCall? Type4294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallType? Type4295 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutput? Type4295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCaller? Type4296 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCall? Type4296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type4297 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminator? Type4297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type4298 { get; set; } + public global::tryAGI.OpenAI.BetaItemDiscriminatorType? Type4298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type4299 { get; set; } + public global::tryAGI.OpenAI.BetaAgentTag? Type4299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type4300 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallType? Type4300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type4301 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCaller? Type4301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type4302 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCaller? Type4302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type4303 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCaller? Type4303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type4304 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminator? Type4304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4305 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerDiscriminatorType? Type4305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4306 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerType? Type4306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type4307 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerType? Type4307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent? Type4308 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputType? Type4308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent? Type4309 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParam? Type4309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent? Type4310 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type4311 { get; set; } + public global::System.Collections.Generic.IList? Type4311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type4312 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutput? Type4312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentType? Type4313 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContent? Type4313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type4314 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContent? Type4314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileInputDetail? Type4315 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContent? Type4315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type4316 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminator? Type4316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentType? Type4317 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionAndCustomToolCallOutputDiscriminatorType? Type4317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageDetail? Type4318 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentType? Type4318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentType? Type4319 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfig? Type4319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type4320 { get; set; } + public global::tryAGI.OpenAI.BetaFileInputDetail? Type4320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type4321 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointConfigMode? Type4321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type4322 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentType? Type4322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type4323 { get; set; } + public global::tryAGI.OpenAI.BetaImageDetail? Type4323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type4324 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentType? Type4324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type4325 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam? Type4325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallType? Type4326 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam? Type4326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallError? Type4327 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminator? Type4327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type4328 { get; set; } + public global::tryAGI.OpenAI.BetaToolCallCallerParamDiscriminatorType? Type4328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolError? Type4329 { get; set; } + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParamType? Type4329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionError? Type4330 { get; set; } + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParamType? Type4330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHTTPError? Type4331 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallType? Type4331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminator? Type4332 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallError? Type4332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminatorType? Type4333 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallStatus? Type4333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaHTTPErrorType? Type4334 { get; set; } + public global::tryAGI.OpenAI.BetaMCPProtocolError? Type4334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionErrorType? Type4335 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolExecutionError? Type4335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolErrorType? Type4336 { get; set; } + public global::tryAGI.OpenAI.BetaHTTPError? Type4336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type4337 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminator? Type4337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type4338 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolCallErrorDiscriminatorType? Type4338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsType? Type4339 { get; set; } + public global::tryAGI.OpenAI.BetaHTTPErrorType? Type4339 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4340 { get; set; } + public global::tryAGI.OpenAI.BetaMCPToolExecutionErrorType? Type4340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type4341 { get; set; } + public global::tryAGI.OpenAI.BetaMCPProtocolErrorType? Type4341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type4342 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseType? Type4342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type4343 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalRequestType? Type4343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type4344 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsType? Type4344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type4345 { get; set; } + public global::System.Collections.Generic.IList? Type4345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type4346 { get; set; } + public global::tryAGI.OpenAI.BetaMCPListToolsTool? Type4346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type4347 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParamType? Type4347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type4348 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatusParam? Type4348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type4349 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParamType? Type4349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type4350 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatusParam? Type4350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type4351 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParam? Type4351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type4352 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam? Type4352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type4353 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam? Type4353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type4354 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam? Type4354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type4355 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminator? Type4355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4356 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchOperationParamDiscriminatorType? Type4356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type4357 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParamType? Type4357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type4358 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParamType? Type4358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type4359 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParamType? Type4359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type4360 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParamType? Type4360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type4361 { get; set; } + public global::System.Collections.Generic.IList? Type4361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type4362 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentParam? Type4362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type4363 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemStatus? Type4363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type4364 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParam? Type4364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type4365 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam? Type4365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type4366 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam? Type4366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type4367 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminator? Type4367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant15? Type4368 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputOutcomeParamDiscriminatorType? Type4368 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type4369 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParamType? Type4369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type4370 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParamType? Type4370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type4371 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamType? Type4371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus? Type4372 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellActionParam? Type4372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type4373 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant15? Type4373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type4374 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1Discriminator? Type4374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type4375 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type4375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type4376 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputType? Type4376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type4377 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutputStatus? Type4377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type4378 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallType? Type4378 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4379 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecAction? Type4379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsVariant1Item2? Type4380 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellToolCallStatus? Type4380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type4381 { get; set; } + public global::tryAGI.OpenAI.BetaLocalShellExecActionType? Type4381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type4382 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallType? Type4382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type4383 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallStatus? Type4383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type4384 { get; set; } + public global::System.Collections.Generic.IList? Type4384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type4385 { get; set; } + public global::tryAGI.OpenAI.OutputsVariant1Item2? Type4385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type4386 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs? Type4386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type4387 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage? Type4387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type4388 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type4388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type4389 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type4389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallSizeVariant1? Type4390 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImageType? Type4390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCallQuality? Type4391 { get; set; } + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogsType? Type4391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageBackground? Type4392 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallType? Type4392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaImageOutputFormat? Type4393 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallStatus? Type4393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type4394 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type4394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemType? Type4395 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallSizeVariant1? Type4395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4396 { get; set; } + public global::tryAGI.OpenAI.BetaImageGenToolCallQuality? Type4396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContent? Type4397 { get; set; } + public global::tryAGI.OpenAI.BetaImageBackground? Type4397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4398 { get; set; } + public global::tryAGI.OpenAI.BetaImageOutputFormat? Type4398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent? Type4399 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParamType? Type4399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type4400 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemType? Type4400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type4401 { get; set; } + public global::System.Collections.Generic.IList? Type4401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type4402 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContent? Type4402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamType? Type4403 { get; set; } + public global::System.Collections.Generic.IList? Type4403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamReasoning? Type4404 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContent? Type4404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type4405 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningItemStatus? Type4405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type4406 { get; set; } + public global::tryAGI.OpenAI.BetaReasoningTextContentType? Type4406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type4407 { get; set; } + public global::tryAGI.OpenAI.BetaSummaryTextContentType? Type4407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type4408 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamType? Type4408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type4409 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParamReasoning? Type4409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type4410 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamType? Type4410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type4411 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParamRole? Type4411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4412 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParamType? Type4412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type4413 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallItemStatus? Type4413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type4414 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallItemParamType? Type4414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4415 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParamType? Type4415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem4? Type4416 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction1? Type4416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParam? Type4417 { get; set; } + public global::System.Collections.Generic.IList? Type4417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParam? Type4418 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParam? Type4418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type4419 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamType? Type4419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type4420 { get; set; } + public global::System.Collections.Generic.IList? Type4420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type4421 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem4? Type4421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type4422 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParam? Type4422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type4423 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParam? Type4423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParamType? Type4424 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParam? Type4424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type4425 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminator? Type4425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type4426 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentParamAnnotationDiscriminatorType? Type4426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4427 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationParamType? Type4427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem6? Type4428 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationParamType? Type4428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam? Type4429 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationParamType? Type4429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type4430 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParamType? Type4430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type4431 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamType? Type4431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type4432 { get; set; } + public global::System.Collections.Generic.IList? Type4432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type4433 { get; set; } + public global::tryAGI.OpenAI.ContentItem6? Type4433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type4434 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParam? Type4434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type4435 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam? Type4435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDetailEnum? Type4436 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParam? Type4436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type4437 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminator? Type4437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type4438 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageItemParamContentItemDiscriminatorType? Type4438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type4439 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentParamType? Type4439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type4440 { get; set; } + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParamType? Type4440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4441 { get; set; } + public global::tryAGI.OpenAI.BetaDetailEnum? Type4441 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4442 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParam? Type4442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item2? Type4443 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheBreakpointParamMode? Type4443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParam? Type4444 { get; set; } + public global::tryAGI.OpenAI.BetaInputTextContentParamType? Type4444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type4445 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamType? Type4445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type4446 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type4447 { get; set; } + public global::System.Collections.Generic.IList? Type4447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileDetailEnum? Type4448 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item2? Type4448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type4449 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParam? Type4449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type4450 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type4450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type4451 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type4451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchCallStatus? Type4452 { get; set; } + public global::tryAGI.OpenAI.BetaInputFileContentParamType? Type4452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type4453 { get; set; } + public global::tryAGI.OpenAI.BetaFileDetailEnum? Type4453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type4454 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallType? Type4454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type4455 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallStatus? Type4455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type4456 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallType? Type4456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type4457 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchCallStatus? Type4457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type4458 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Type4458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type4459 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearch? Type4459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type4460 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage? Type4460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type4461 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFind? Type4461 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4462 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminator? Type4462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type4463 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallActionDiscriminatorType? Type4463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type4464 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionFindType? Type4464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type4465 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPageType? Type4465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type4466 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchType? Type4466 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4467 { get; set; } + public global::System.Collections.Generic.IList? Type4467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type4468 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSource? Type4468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type4469 { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchActionSearchSourceType? Type4469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallType? Type4470 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParamType? Type4470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerAction? Type4471 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImage? Type4471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4472 { get; set; } + public global::System.Collections.Generic.IList? Type4472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type4473 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallSafetyCheckParam? Type4473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParam? Type4474 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotImageType? Type4474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickAction? Type4475 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallType? Type4475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParam? Type4476 { get; set; } + public global::tryAGI.OpenAI.BetaComputerAction? Type4476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressAction? Type4477 { get; set; } + public global::System.Collections.Generic.IList? Type4477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParam? Type4478 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallStatus? Type4478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParam? Type4479 { get; set; } + public global::tryAGI.OpenAI.BetaClickParam? Type4479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParam? Type4480 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickAction? Type4480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParam? Type4481 { get; set; } + public global::tryAGI.OpenAI.BetaDragParam? Type4481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParam? Type4482 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressAction? Type4482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type4483 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParam? Type4483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type4484 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParam? Type4484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaWaitParamType? Type4485 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParam? Type4485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTypeParamType? Type4486 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParam? Type4486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScrollParamType? Type4487 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParam? Type4487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParamType? Type4488 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminator? Type4488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMoveParamType? Type4489 { get; set; } + public global::tryAGI.OpenAI.BetaComputerActionDiscriminatorType? Type4489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressActionType? Type4490 { get; set; } + public global::tryAGI.OpenAI.BetaWaitParamType? Type4490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDragParamType? Type4491 { get; set; } + public global::tryAGI.OpenAI.BetaTypeParamType? Type4491 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4492 { get; set; } + public global::tryAGI.OpenAI.BetaScrollParamType? Type4492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCoordParam? Type4493 { get; set; } + public global::tryAGI.OpenAI.BetaScreenshotParamType? Type4493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type4494 { get; set; } + public global::tryAGI.OpenAI.BetaMoveParamType? Type4494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickParamType? Type4495 { get; set; } + public global::tryAGI.OpenAI.BetaKeyPressActionType? Type4495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaClickButtonType? Type4496 { get; set; } + public global::tryAGI.OpenAI.BetaDragParamType? Type4496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type4497 { get; set; } + public global::System.Collections.Generic.IList? Type4497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type4498 { get; set; } + public global::tryAGI.OpenAI.BetaCoordParam? Type4498 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4499 { get; set; } + public global::tryAGI.OpenAI.BetaDoubleClickActionType? Type4499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type4500 { get; set; } + public global::tryAGI.OpenAI.BetaClickParamType? Type4500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageType? Type4501 { get; set; } + public global::tryAGI.OpenAI.BetaClickButtonType? Type4501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageRole? Type4502 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallType? Type4502 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4503 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallStatus? Type4503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContent? Type4504 { get; set; } + public global::System.Collections.Generic.IList? Type4504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase? Type4505 { get; set; } + public global::tryAGI.OpenAI.BetaFileSearchToolCallResultsVariant1Item? Type4505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type4506 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageType? Type4506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent? Type4507 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageRole? Type4507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent? Type4508 { get; set; } + public global::System.Collections.Generic.IList? Type4508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type4509 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContent? Type4509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type4510 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase? Type4510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContentType? Type4511 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageStatus? Type4511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContentType? Type4512 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContent? Type4512 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4513 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContent? Type4513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotation? Type4514 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminator? Type4514 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4515 { get; set; } + public global::tryAGI.OpenAI.BetaOutputMessageContentDiscriminatorType? Type4515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLogProb? Type4516 { get; set; } + public global::tryAGI.OpenAI.BetaRefusalContentType? Type4516 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4517 { get; set; } + public global::tryAGI.OpenAI.BetaOutputTextContentType? Type4517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTopLogProb? Type4518 { get; set; } + public global::System.Collections.Generic.IList? Type4518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBody? Type4519 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotation? Type4519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBody? Type4520 { get; set; } + public global::System.Collections.Generic.IList? Type4520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type4521 { get; set; } + public global::tryAGI.OpenAI.BetaLogProb? Type4521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePath? Type4522 { get; set; } + public global::System.Collections.Generic.IList? Type4522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type4523 { get; set; } + public global::tryAGI.OpenAI.BetaTopLogProb? Type4523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type4524 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBody? Type4524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFilePathType? Type4525 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBody? Type4525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type4526 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBody? Type4526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type4527 { get; set; } + public global::tryAGI.OpenAI.BetaFilePath? Type4527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type4528 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminator? Type4528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageType? Type4529 { get; set; } + public global::tryAGI.OpenAI.BetaAnnotationDiscriminatorType? Type4529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageRole? Type4530 { get; set; } + public global::tryAGI.OpenAI.BetaFilePathType? Type4530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageStatus? Type4531 { get; set; } + public global::tryAGI.OpenAI.BetaContainerFileCitationBodyType? Type4531 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4532 { get; set; } + public global::tryAGI.OpenAI.BetaUrlCitationBodyType? Type4532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContent? Type4533 { get; set; } + public global::tryAGI.OpenAI.BetaFileCitationBodyType? Type4533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type4534 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageType? Type4534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type4535 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageRole? Type4535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type4536 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageStatus? Type4536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type4537 { get; set; } + public global::System.Collections.Generic.IList? Type4537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type4538 { get; set; } + public global::tryAGI.OpenAI.BetaInputContent? Type4538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type4539 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminator? Type4539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type4540 { get; set; } + public global::tryAGI.OpenAI.BetaInputContentDiscriminatorType? Type4540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type4541 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageRole? Type4541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type4542 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type4542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierEnum? Type4543 { get; set; } + public global::tryAGI.OpenAI.BetaEasyInputMessageType? Type4543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type4544 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResponseMethodPublicBody? Type4544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type4545 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsCompaction? Type4545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponses? Type4546 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheRetentionEnum? Type4546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsShared? Type4547 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptionsParam? Type4547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type4548 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierEnum? Type4548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type4549 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheTTLEnum? Type4549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaErrorResponse? Type4550 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheModeEnum? Type4550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaError? Type4551 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponses? Type4551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource? Type4552 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsShared? Type4552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorType? Type4553 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum? Type4553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentSteer? Type4554 { get; set; } + public global::tryAGI.OpenAI.BetaModelIdsSharedEnum? Type4554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum? Type4555 { get; set; } + public global::tryAGI.OpenAI.BetaErrorResponse? Type4555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemList? Type4556 { get; set; } + public global::tryAGI.OpenAI.BetaError? Type4556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseItemListObject? Type4557 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorDetailsResource? Type4557 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4558 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorType? Type4558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResource? Type4559 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentSteer? Type4559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResource? Type4560 { get; set; } + public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum? Type4560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type4561 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemList? Type4561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type4562 { get; set; } + public global::tryAGI.OpenAI.BetaResponseItemListObject? Type4562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type4563 { get; set; } + public global::System.Collections.Generic.IList? Type4563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage? Type4564 { get; set; } + public global::tryAGI.OpenAI.BetaItemResource? Type4564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall? Type4565 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResource? Type4565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type4566 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource? Type4566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall? Type4567 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResource? Type4567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput? Type4568 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource? Type4568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools? Type4569 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessage? Type4569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate? Type4570 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCall? Type4570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgram? Type4571 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput? Type4571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput? Type4572 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCall? Type4572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody? Type4573 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutput? Type4573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall? Type4574 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalTools? Type4574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type4575 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate? Type4575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type4576 { get; set; } + public global::tryAGI.OpenAI.BetaProgram? Type4576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type4577 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutput? Type4577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type4578 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBody? Type4578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type4579 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCall? Type4579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type4580 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput? Type4580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type4581 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCall? Type4581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type4582 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput? Type4582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type4583 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource? Type4583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type4584 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResource? Type4584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type4585 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource? Type4585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type4586 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminator? Type4586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type4587 { get; set; } + public global::tryAGI.OpenAI.BetaItemResourceDiscriminatorType? Type4587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type4588 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2? Type4588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type4589 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallOutputStatusEnum? Type4589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type4590 { get; set; } + public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2? Type4590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type4591 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionCallStatus? Type4591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation2? Type4592 { get; set; } + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResourceType? Type4592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type4593 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputType? Type4593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type4594 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallOutputStatus? Type4594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type4595 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallType? Type4595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type4596 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCallStatus? Type4596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type4597 { get; set; } + public global::tryAGI.OpenAI.Operation2? Type4597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type4598 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation? Type4598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type4599 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation? Type4599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type4600 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation? Type4600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type4601 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminator? Type4601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type4602 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOperationDiscriminatorType? Type4602 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4603 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationType? Type4603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type4604 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationType? Type4604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome2? Type4605 { get; set; } + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationType? Type4605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type4606 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputType? Type4606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type4607 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputStatusEnum? Type4607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type4608 { get; set; } + public global::System.Collections.Generic.IList? Type4608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type4609 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContent? Type4609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type4610 { get; set; } + public global::tryAGI.OpenAI.Outcome2? Type4610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type4611 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome? Type4611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type4612 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome? Type4612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellAction? Type4613 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminator? Type4613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type4614 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputContentOutcomeDiscriminatorType? Type4614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant16? Type4615 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeType? Type4615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type4616 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeType? Type4616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type4617 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallType? Type4617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type4618 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellAction? Type4618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type4619 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallStatus? Type4619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type4620 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant16? Type4620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type4621 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResource? Type4621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBodyType? Type4622 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResource? Type4622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputType? Type4623 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1Discriminator? Type4623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type4624 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionShellCallEnvironmentVariant1DiscriminatorType? Type4624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaProgramType? Type4625 { get; set; } + public global::tryAGI.OpenAI.BetaContainerReferenceResourceType? Type4625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateType? Type4626 { get; set; } + public global::tryAGI.OpenAI.BetaLocalEnvironmentResourceType? Type4626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateReasoning? Type4627 { get; set; } + public global::tryAGI.OpenAI.BetaCompactionBodyType? Type4627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type4628 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputType? Type4628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageRole? Type4629 { get; set; } + public global::tryAGI.OpenAI.BetaProgramOutputStatus? Type4629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type4630 { get; set; } + public global::tryAGI.OpenAI.BetaProgramType? Type4630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallType? Type4631 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateType? Type4631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type4632 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateReasoning? Type4632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentAction? Type4633 { get; set; } + public global::tryAGI.OpenAI.BetaAdditionalToolsType? Type4633 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4634 { get; set; } + public global::tryAGI.OpenAI.BetaMessageRole? Type4634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type4635 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchOutputType? Type4635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageType? Type4636 { get; set; } + public global::tryAGI.OpenAI.BetaToolSearchCallType? Type4636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4637 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputType? Type4637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem7? Type4638 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentAction? Type4638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContent? Type4639 { get; set; } + public global::System.Collections.Generic.IList? Type4639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type4640 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentCallType? Type4640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContent? Type4641 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageType? Type4641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type4642 { get; set; } + public global::System.Collections.Generic.IList? Type4642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type4643 { get; set; } + public global::tryAGI.OpenAI.ContentItem7? Type4643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentType? Type4644 { get; set; } + public global::tryAGI.OpenAI.BetaTextContent? Type4644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type4645 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContent? Type4645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaTextContentType? Type4646 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContent? Type4646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type4647 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminator? Type4647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type4648 { get; set; } + public global::tryAGI.OpenAI.BetaAgentMessageContentItemDiscriminatorType? Type4648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type4649 { get; set; } + public global::tryAGI.OpenAI.BetaEncryptedContentType? Type4649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type4650 { get; set; } + public global::tryAGI.OpenAI.BetaComputerScreenshotContentType? Type4650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type4651 { get; set; } + public global::tryAGI.OpenAI.BetaTextContentType? Type4651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type4652 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutput? Type4652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type4653 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2? Type4653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type4654 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputType? Type4654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type4655 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputStatus? Type4655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type4656 { get; set; } + public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2? Type4656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type4657 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutput? Type4657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResource? Type4658 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2? Type4658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactResourceObject? Type4659 { get; set; } + public global::tryAGI.OpenAI.BetaComputerCallOutputStatus? Type4659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4660 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputType? Type4660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemField? Type4661 { get; set; } + public global::tryAGI.OpenAI.BetaComputerToolCallOutputStatus? Type4661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsage? Type4662 { get; set; } + public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2? Type4662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type4663 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResource? Type4663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type4664 { get; set; } + public global::tryAGI.OpenAI.BetaCompactResourceObject? Type4664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessage? Type4665 { get; set; } + public global::System.Collections.Generic.IList? Type4665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type4666 { get; set; } + public global::tryAGI.OpenAI.BetaItemField? Type4666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type4667 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsage? Type4667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageType? Type4668 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageInputTokensDetails? Type4668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageStatus? Type4669 { get; set; } + public global::tryAGI.OpenAI.BetaResponseUsageOutputTokensDetails? Type4669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4670 { get; set; } + public global::tryAGI.OpenAI.BetaMessage? Type4670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem8? Type4671 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminator? Type4671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type4672 { get; set; } + public global::tryAGI.OpenAI.BetaItemFieldDiscriminatorType? Type4672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type4673 { get; set; } + public global::tryAGI.OpenAI.BetaMessageType? Type4673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMessagePhase2? Type4674 { get; set; } + public global::tryAGI.OpenAI.BetaMessageStatus? Type4674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type4675 { get; set; } + public global::System.Collections.Generic.IList? Type4675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type4676 { get; set; } + public global::tryAGI.OpenAI.ContentItem8? Type4676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type4677 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminator? Type4677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type4678 { get; set; } + public global::tryAGI.OpenAI.BetaMessageContentItemDiscriminatorType? Type4678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type4679 { get; set; } + public global::tryAGI.OpenAI.BetaMessagePhase2? Type4679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type4680 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent? Type4680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponse? Type4681 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEventType? Type4681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponseProperties? Type4682 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent? Type4682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseProperties? Type4683 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEventType? Type4683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3? Type4684 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEvent? Type4684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaServiceTierResponsesEnum? Type4685 { get; set; } + public global::tryAGI.OpenAI.BetaResponseQueuedEventType? Type4685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Truncation? Type4686 { get; set; } + public global::tryAGI.OpenAI.BetaResponse? Type4686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type4687 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponseProperties? Type4687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type4688 { get; set; } + public global::tryAGI.OpenAI.BetaResponseProperties? Type4688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAccessProgramsBody? Type4689 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3? Type4689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type4690 { get; set; } + public global::tryAGI.OpenAI.BetaServiceTierResponsesEnum? Type4690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails? Type4691 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Truncation? Type4691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type4692 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Object? Type4692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4693 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3Status? Type4693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItem? Type4694 { get; set; } + public global::tryAGI.OpenAI.BetaAccessProgramsBody? Type4694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type4695 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorVariant1? Type4695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnostics? Type4696 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetails? Type4696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModeration? Type4697 { get; set; } + public global::tryAGI.OpenAI.BetaResponseVariant3IncompleteDetailsReason? Type4697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseConversation? Type4698 { get; set; } + public global::System.Collections.Generic.IList? Type4698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Input5? Type4699 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItem? Type4699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBody? Type4700 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheOptions? Type4700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBody? Type4701 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnostics? Type4701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type4702 { get; set; } + public global::tryAGI.OpenAI.BetaModeration? Type4702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type4703 { get; set; } + public global::tryAGI.OpenAI.BetaResponseConversation? Type4703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Output9? Type4704 { get; set; } + public global::tryAGI.OpenAI.Input5? Type4704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type4705 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBody? Type4705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type4706 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBody? Type4706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type4707 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminator? Type4707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type4708 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputDiscriminatorType? Type4708 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type4709 { get; set; } + public global::tryAGI.OpenAI.Output9? Type4709 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4710 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminator? Type4710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationInputType? Type4711 { get; set; } + public global::tryAGI.OpenAI.BetaModerationOutputDiscriminatorType? Type4711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody? Type4712 { get; set; } + public global::tryAGI.OpenAI.BetaModerationErrorBodyType? Type4712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody? Type4713 { get; set; } + public global::tryAGI.OpenAI.BetaModerationResultBodyType? Type4713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody? Type4714 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type4714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody? Type4715 { get; set; } + public global::System.Collections.Generic.IList? Type4715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminator? Type4716 { get; set; } + public global::tryAGI.OpenAI.BetaModerationInputType? Type4716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminatorType? Type4717 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody? Type4717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBodyType? Type4718 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody? Type4718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type4719 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody? Type4719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBodyType? Type4720 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody? Type4720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBodyType? Type4721 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminator? Type4721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCacheMissReasonTypeEnum? Type4722 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheDiagnosticsDiscriminatorType? Type4722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type4723 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBodyType? Type4723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type4724 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBodyType? Type4724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorCode? Type4725 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBodyType? Type4725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCyberAccessProgramEnum? Type4726 { get; set; } + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBodyType? Type4726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaPromptVariant1? Type4727 { get; set; } + public global::tryAGI.OpenAI.BetaCacheMissReasonTypeEnum? Type4727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type4728 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminator? Type4728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention? Type4729 { get; set; } + public global::tryAGI.OpenAI.BetaOutputItemDiscriminatorType? Type4729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type4730 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorCode? Type4730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type4731 { get; set; } + public global::tryAGI.OpenAI.BetaCyberAccessProgramEnum? Type4731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type4732 { get; set; } + public global::tryAGI.OpenAI.BetaPromptVariant1? Type4732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type4733 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type4733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type4734 { get; set; } + public global::tryAGI.OpenAI.BetaModelResponsePropertiesPromptCacheRetention? Type4734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type4735 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent? Type4735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type4736 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEventType? Type4736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type4737 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent? Type4737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type4738 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEventType? Type4738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type4739 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent? Type4739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type4740 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEventType? Type4740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type4741 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent? Type4741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type4742 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEventType? Type4742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type4743 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent? Type4743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type4744 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEventType? Type4744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type4745 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent? Type4745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type4746 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEventType? Type4746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type4747 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent? Type4747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type4748 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEventType? Type4748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type4749 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent? Type4749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type4750 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEventType? Type4750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type4751 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent? Type4751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type4752 { get; set; } + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEventType? Type4752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type4753 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent? Type4753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type4754 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEventType? Type4754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type4755 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent? Type4755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type4756 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEventType? Type4756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type4757 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent? Type4757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type4758 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEventType? Type4758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type4759 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent? Type4759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type4760 { get; set; } + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEventType? Type4760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type4761 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent? Type4761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type4762 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEventType? Type4762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type4763 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent? Type4763 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type4764 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEventType? Type4764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type4765 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent? Type4765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type4766 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEventType? Type4766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type4767 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent? Type4767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type4768 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEventType? Type4768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type4769 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent? Type4769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type4770 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventType? Type4770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type4771 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventStatus? Type4771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type4772 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPart? Type4772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type4773 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEventPartType? Type4773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type4774 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent? Type4774 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4775 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventType? Type4775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProb? Type4776 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPart? Type4776 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4777 { get; set; } + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEventPartType? Type4777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type4778 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEvent? Type4778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type4779 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDoneEventType? Type4779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type4780 { get; set; } + public global::System.Collections.Generic.IList? Type4780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type4781 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProb? Type4781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type4782 { get; set; } + public global::System.Collections.Generic.IList? Type4782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type4783 { get; set; } + public global::tryAGI.OpenAI.BetaResponseLogProbTopLogprob? Type4783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type4784 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent? Type4784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type4785 { get; set; } + public global::tryAGI.OpenAI.BetaResponseTextDeltaEventType? Type4785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type4786 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent? Type4786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type4787 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEventType? Type4787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type4788 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent? Type4788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type4789 { get; set; } + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEventType? Type4789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type4790 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent? Type4790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent? Type4791 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEventType? Type4791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType? Type4792 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent? Type4792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent? Type4793 { get; set; } + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEventType? Type4793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEventType? Type4794 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEvent? Type4794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaShellCallOutputDelta? Type4795 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInProgressEventType? Type4795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent? Type4796 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent? Type4796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEventType? Type4797 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEventType? Type4797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent? Type4798 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent? Type4798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEventType? Type4799 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEventType? Type4799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent? Type4800 { get; set; } + public global::tryAGI.OpenAI.BetaShellCallOutputDelta? Type4800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEventType? Type4801 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent? Type4801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type4802 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEventType? Type4802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type4803 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent? Type4803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type4804 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEventType? Type4804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type4805 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent? Type4805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type4806 { get; set; } + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEventType? Type4806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type4807 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent? Type4807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type4808 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEventType? Type4808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type4809 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent? Type4809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type4810 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEventType? Type4810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type4811 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent? Type4811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type4812 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEventType? Type4812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type4813 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent? Type4813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type4814 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEventType? Type4814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type4815 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent? Type4815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type4816 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEventType? Type4816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type4817 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEvent? Type4817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContent? Type4818 { get; set; } + public global::tryAGI.OpenAI.BetaResponseErrorEventType? Type4818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type4819 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEvent? Type4819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type4820 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCreatedEventType? Type4820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type4821 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent? Type4821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type4822 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEventType? Type4822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type4823 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContent? Type4823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type4824 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminator? Type4824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent? Type4825 { get; set; } + public global::tryAGI.OpenAI.BetaOutputContentDiscriminatorType? Type4825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEventType? Type4826 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent? Type4826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type4827 { get; set; } + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEventType? Type4827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type4828 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEvent? Type4828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type4829 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompletedEventType? Type4829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type4830 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent? Type4830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type4831 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEventType? Type4831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type4832 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent? Type4832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type4833 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEventType? Type4833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type4834 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent? Type4834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type4835 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEventType? Type4835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type4836 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent? Type4836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type4837 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEventType? Type4837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type4838 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent? Type4838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type4839 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEventType? Type4839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type4840 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent? Type4840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type4841 { get; set; } + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEventType? Type4841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type4842 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent? Type4842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type4843 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEventType? Type4843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type4844 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent? Type4844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type4845 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEventType? Type4845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type4846 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent? Type4846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type4847 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDoneEventType? Type4847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type4848 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent? Type4848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type4849 { get; set; } + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEventType? Type4849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type4850 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEvent? Type4850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type4851 { get; set; } + public global::tryAGI.OpenAI.BetaResponseIncompleteEventType? Type4851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type4852 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEvent? Type4852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type4853 { get; set; } + public global::tryAGI.OpenAI.BetaResponseFailedEventType? Type4853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type4854 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent? Type4854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent? Type4855 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEventType? Type4855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventType? Type4856 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent? Type4856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventSteer? Type4857 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEventType? Type4857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInput? Type4858 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent? Type4858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventError? Type4859 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEventType? Type4859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEventErrorType? Type4860 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent? Type4860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCode? Type4861 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventType? Type4861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum? Type4862 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventSteer? Type4862 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4863 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInput? Type4863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItem? Type4864 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventError? Type4864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParam? Type4865 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerFailedEventErrorType? Type4865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminator? Type4866 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerErrorCode? Type4866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType? Type4867 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum? Type4867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamType? Type4868 { get; set; } + public global::System.Collections.Generic.IList? Type4868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamRole? Type4869 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItem? Type4869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? Type4870 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParam? Type4870 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4871 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminator? Type4871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentVariant1Item2? Type4872 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerInputItemDiscriminatorType? Type4872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminator? Type4873 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamType? Type4873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminatorType? Type4874 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamRole? Type4874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent? Type4875 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? Type4875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEventType? Type4876 { get; set; } + public global::System.Collections.Generic.IList? Type4876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEventSteer? Type4877 { get; set; } + public global::tryAGI.OpenAI.ContentVariant1Item2? Type4877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReason? Type4878 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminator? Type4878 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type4879 { get; set; } + public global::tryAGI.OpenAI.BetaUserMessageItemParamContentVariant1ItemDiscriminatorType? Type4879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInput? Type4880 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent? Type4880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type4881 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEventType? Type4881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type4882 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingEventSteer? Type4882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput? Type4883 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingReason? Type4883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type4884 { get; set; } + public global::System.Collections.Generic.IList? Type4884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput? Type4885 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInput? Type4885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type4886 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput? Type4886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput? Type4887 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutputType? Type4887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutputType? Type4888 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput? Type4888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type4889 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutputType? Type4889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type4890 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput? Type4890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput? Type4891 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutputType? Type4891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputType? Type4892 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput? Type4892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type4893 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutputType? Type4893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse? Type4894 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput? Type4894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type4895 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutputType? Type4895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminator? Type4896 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput? Type4896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminatorType? Type4897 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputType? Type4897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum? Type4898 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutputExecution? Type4898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent? Type4899 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse? Type4899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventType? Type4900 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponseType? Type4900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventSteer? Type4901 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminator? Type4901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEvent? Type4902 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputDiscriminatorType? Type4902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEventType? Type4903 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum? Type4903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudio? Type4904 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent? Type4904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaOutputAudioType? Type4905 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventType? Type4905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudio? Type4906 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEventSteer? Type4906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioType? Type4907 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerEvent? Type4907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type4908 { get; set; } + public global::tryAGI.OpenAI.BetaResponseSteerEventType? Type4908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type4909 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudio? Type4909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaInputParam? Type4910 { get; set; } + public global::tryAGI.OpenAI.BetaOutputAudioType? Type4910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContent? Type4911 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudio? Type4911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaIncludeEnum? Type4912 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioType? Type4912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type4913 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudio? Type4913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4914 { get; set; } + public global::tryAGI.OpenAI.BetaInputAudioInputAudioFormat? Type4914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDelta2? Type4915 { get; set; } + public global::tryAGI.OpenAI.BetaInputParam? Type4915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4916 { get; set; } + public global::tryAGI.OpenAI.BetaContent? Type4916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDone2? Type4917 { get; set; } + public global::tryAGI.OpenAI.BetaIncludeEnum? Type4917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4918 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEvent? Type4918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDelta2? Type4919 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4920 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDelta2? Type4920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDone2? Type4921 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2? Type4922 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioWsDone2? Type4922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2? Type4923 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2? Type4924 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDelta2? Type4924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2? Type4925 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2? Type4926 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseAudioTranscriptWsDone2? Type4926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4927 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDelta2? Type4927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCompactionWsCompacting2? Type4928 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallCodeWsDone2? Type4928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4929 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsCompleted2? Type4929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCompleted2? Type4930 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallInWsProgress2? Type4930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4931 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCodeInterpreterCallWsInterpreting2? Type4931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsAdded2? Type4932 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4933 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCompactionWsCompacting2? Type4933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsDone2? Type4934 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4935 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCompleted2? Type4935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCreated2? Type4936 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4937 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsAdded2? Type4937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsCompleted2? Type4938 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4939 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseContentPartWsDone2? Type4939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallInWsProgress2? Type4940 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4941 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsCreated2? Type4941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsSearching2? Type4942 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2? Type4943 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsCompleted2? Type4943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4944 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDone2? Type4945 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallInWsProgress2? Type4945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4946 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsAdded2? Type4947 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFileSearchCallWsSearching2? Type4947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4948 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDelta2? Type4948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDelta2? Type4949 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4950 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseFunctionCallArgumentsWsDone2? Type4950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDone2? Type4951 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2? Type4952 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsAdded2? Type4952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2? Type4953 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4954 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDelta2? Type4954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseInWsProgress2? Type4955 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4956 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallCommandWsDone2? Type4956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsFailed2? Type4957 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDelta2? Type4957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4958 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseShellCallOutputContentWsDone2? Type4958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsIncomplete2? Type4959 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4960 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseInWsProgress2? Type4960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsAdded2? Type4961 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4962 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsFailed2? Type4962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsDone2? Type4963 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4964 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsIncomplete2? Type4964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsAdded2? Type4965 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4966 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsAdded2? Type4966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsDone2? Type4967 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4968 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputItemWsDone2? Type4968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDelta2? Type4969 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4970 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsAdded2? Type4970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDone2? Type4971 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4972 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryPartWsDone2? Type4972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDelta2? Type4973 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4974 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDelta2? Type4974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDone2? Type4975 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4976 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningSummaryTextWsDone2? Type4976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDelta2? Type4977 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4978 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDelta2? Type4978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDone2? Type4979 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4980 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseReasoningTextWsDone2? Type4980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDelta2? Type4981 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4982 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDelta2? Type4982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDone2? Type4983 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4984 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseRefusalWsDone2? Type4984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsCompleted2? Type4985 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4986 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDelta2? Type4986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallInWsProgress2? Type4987 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4988 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseTextWsDone2? Type4988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsSearching2? Type4989 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4990 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsCompleted2? Type4990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsCompleted2? Type4991 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4992 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallInWsProgress2? Type4992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsGenerating2? Type4993 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4994 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWebSearchCallWsSearching2? Type4994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallInWsProgress2? Type4995 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4996 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsCompleted2? Type4996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallPartialWsImage2? Type4997 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type4998 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallWsGenerating2? Type4998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDelta2? Type4999 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type4999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5000 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallInWsProgress2? Type5000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDone2? Type5001 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5002 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseImageGenCallPartialWsImage2? Type5002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsCompleted2? Type5003 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5004 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDelta2? Type5004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsFailed2? Type5005 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5006 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallArgumentsWsDone2? Type5006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallInWsProgress2? Type5007 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5008 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsCompleted2? Type5008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsCompleted2? Type5009 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5010 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallWsFailed2? Type5010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsFailed2? Type5011 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5012 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpCallInWsProgress2? Type5012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsInWsProgress2? Type5013 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5014 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsCompleted2? Type5014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputTextAnnotationWsAdded2? Type5015 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5016 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsWsFailed2? Type5016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsQueued2? Type5017 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5018 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseMcpListToolsInWsProgress2? Type5018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDelta2? Type5019 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type5020 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseOutputTextAnnotationWsAdded2? Type5020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDone2? Type5021 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsError? Type5022 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseWsQueued2? Type5022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type5023 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type5024 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDelta2? Type5024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type5025 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type5025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type5026 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventBetaResponseCustomToolCallInputWsDone2? Type5026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type5027 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWsError? Type5027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type5028 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent? Type5028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type5029 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent? Type5029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type5030 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminator? Type5030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsErrorType? Type5031 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesServerEventDiscriminatorType? Type5031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaErrorPayload? Type5032 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventType? Type5032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEvent? Type5033 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventError? Type5033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2? Type5034 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectFailedEventErrorCode? Type5034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type5035 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEventType? Type5035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type5036 { get; set; } + public global::tryAGI.OpenAI.BetaResponseWsErrorType? Type5036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type5037 { get; set; } + public global::tryAGI.OpenAI.BetaErrorPayload? Type5037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type5038 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEvent? Type5038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type5039 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2? Type5039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type5040 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEvent? Type5040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type5041 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate? Type5041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type5042 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEvent? Type5042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponse? Type5043 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminator? Type5043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type5044 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventDiscriminatorType? Type5044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type5045 { get; set; } + public global::tryAGI.OpenAI.BetaResponseInjectEventType? Type5045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaAccessProgramsParam? Type5046 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1? Type5046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam? Type5047 { get; set; } + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1Type? Type5047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation? Type5048 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponse? Type5048 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5049 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponseProperties? Type5049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationParam? Type5050 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3? Type5050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type5051 { get; set; } + public global::tryAGI.OpenAI.BetaAccessProgramsParam? Type5051 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5052 { get; set; } + public global::tryAGI.OpenAI.BetaResponsePromptCacheOptionsParam? Type5052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaContextManagementParam? Type5053 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseVariant3Truncation? Type5053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentParam? Type5054 { get; set; } + public global::System.Collections.Generic.IList? Type5054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type5055 { get; set; } + public global::tryAGI.OpenAI.BetaModerationParam? Type5055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationConfigParam? Type5056 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamOptionsVariant1? Type5056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaModerationMode? Type5057 { get; set; } + public global::System.Collections.Generic.IList? Type5057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type5058 { get; set; } + public global::tryAGI.OpenAI.BetaContextManagementParam? Type5058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type5059 { get; set; } + public global::tryAGI.OpenAI.BetaMultiAgentParam? Type5059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type5060 { get; set; } + public global::tryAGI.OpenAI.BetaModerationPolicyParam? Type5060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type5061 { get; set; } + public global::tryAGI.OpenAI.BetaModerationConfigParam? Type5061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type5062 { get; set; } + public global::tryAGI.OpenAI.BetaModerationMode? Type5062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type5063 { get; set; } + public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2? Type5063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type5064 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEvent? Type5064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type5065 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminator? Type5065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type5066 { get; set; } + public global::tryAGI.OpenAI.BetaResponseStreamEventDiscriminatorType? Type5066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type5067 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type5067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type5068 { get; set; } + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type5068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type5069 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type5069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type5070 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type5070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type5071 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type5071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type5072 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type5072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type5073 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type5073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type5074 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type5074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type5075 { get; set; } + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type5075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type5076 { get; set; } + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type5076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type5077 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrder? Type5077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type5078 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type5078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type5079 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type5079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type5080 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type5080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type5081 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type5081 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5082 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type5082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type5083 { get; set; } + public global::tryAGI.OpenAI.ListFilesOrder? Type5083 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5084 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type5084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type5085 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type5085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type5086 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type5086 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5087 { get; set; } + public global::System.Collections.Generic.IList? Type5087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type5088 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type5088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type5089 { get; set; } + public global::System.Collections.Generic.IList? Type5089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type5090 { get; set; } + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type5090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type5091 { get; set; } + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type5091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type5092 { get; set; } + public global::System.Collections.Generic.IList? Type5092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type5093 { get; set; } + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type5093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type5094 { get; set; } + public global::tryAGI.OpenAI.ListGroupsOrder? Type5094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type5095 { get; set; } + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type5095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type5096 { get; set; } + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type5096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRolesOrder? Type5097 { get; set; } + public global::tryAGI.OpenAI.ListProjectApiKeysOwnerProjectAccess? Type5097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type5098 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type5098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type5099 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type5099 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5100 { get; set; } + public global::tryAGI.OpenAI.RetrieveProjectGroupGroupType? Type5100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type5101 { get; set; } + public global::tryAGI.OpenAI.ListProjectSpendAlertsOrder? Type5101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type5102 { get; set; } + public global::tryAGI.OpenAI.ListRolesOrder? Type5102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5103 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationSpendAlertsOrder? Type5103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type5104 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type5104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type5105 { get; set; } + public global::System.Collections.Generic.IList? Type5105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5106 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type5106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type5107 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type5107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type5108 { get; set; } + public global::System.Collections.Generic.IList? Type5108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5109 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type5109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type5110 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type5110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type5111 { get; set; } + public global::System.Collections.Generic.IList? Type5111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5112 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type5112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type5113 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type5113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type5114 { get; set; } + public global::System.Collections.Generic.IList? Type5114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5115 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type5115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type5116 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type5116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type5117 { get; set; } + public global::System.Collections.Generic.IList? Type5117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5118 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type5118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type5119 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsBucketWidth? Type5119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5120 { get; set; } + public global::System.Collections.Generic.IList? Type5120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type5121 { get; set; } + public global::tryAGI.OpenAI.UsageFileSearchCallsGroupByItem? Type5121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5122 { get; set; } + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type5122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type5123 { get; set; } + public global::System.Collections.Generic.IList? Type5123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type5124 { get; set; } + public global::tryAGI.OpenAI.UsageImagesSource? Type5124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5125 { get; set; } + public global::System.Collections.Generic.IList? Type5125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type5126 { get; set; } + public global::tryAGI.OpenAI.UsageImagesSize? Type5126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type5127 { get; set; } + public global::System.Collections.Generic.IList? Type5127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5128 { get; set; } + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type5128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type5129 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type5129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type5130 { get; set; } + public global::System.Collections.Generic.IList? Type5130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5131 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type5131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type5132 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type5132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5133 { get; set; } + public global::System.Collections.Generic.IList? Type5133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type5134 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type5134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type5135 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsBucketWidth? Type5135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type5136 { get; set; } + public global::System.Collections.Generic.IList? Type5136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type5137 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsContextLevel? Type5137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type5138 { get; set; } + public global::System.Collections.Generic.IList? Type5138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type5139 { get; set; } + public global::tryAGI.OpenAI.UsageWebSearchCallsGroupByItem? Type5139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type5140 { get; set; } + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type5140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type5141 { get; set; } + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type5141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5142 { get; set; } + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type5142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type5143 { get; set; } + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type5143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type5144 { get; set; } + public global::tryAGI.OpenAI.ListInputItemsOrder? Type5144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5145 { get; set; } + public global::tryAGI.OpenAI.ListMessagesOrder? Type5145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type5146 { get; set; } + public global::tryAGI.OpenAI.ListRunsOrder? Type5146 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5147 { get; set; } + public global::System.Collections.Generic.IList? Type5147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type5148 { get; set; } + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type5148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type5149 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsOrder? Type5149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type5150 { get; set; } + public global::System.Collections.Generic.IList? Type5150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type5151 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type5151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type5152 { get; set; } + public global::System.Collections.Generic.IList? Type5152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type5153 { get; set; } + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type5153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5154 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type5154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type5155 { get; set; } + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type5155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5156 { get; set; } + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type5156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type5157 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type5157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5158 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type5158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type5159 { get; set; } + public global::System.Collections.Generic.IList? Type5159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5160 { get; set; } + public global::tryAGI.OpenAI.BetaCreateResponseOpenaiBetaItem? Type5160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type5161 { get; set; } + public global::System.Collections.Generic.IList? Type5161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5162 { get; set; } + public global::tryAGI.OpenAI.BetaGetResponseOpenaiBetaItem? Type5162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type5163 { get; set; } + public global::System.Collections.Generic.IList? Type5163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type5164 { get; set; } + public global::tryAGI.OpenAI.BetaDeleteResponseOpenaiBetaItem? Type5164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5165 { get; set; } + public global::System.Collections.Generic.IList? Type5165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type5166 { get; set; } + public global::tryAGI.OpenAI.BetaCancelResponseOpenaiBetaItem? Type5166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5167 { get; set; } + public global::System.Collections.Generic.IList? Type5167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type5168 { get; set; } + public global::tryAGI.OpenAI.BetaCompactconversationOpenaiBetaItem? Type5168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type5169 { get; set; } + public global::tryAGI.OpenAI.BetaListInputItemsOrder? Type5169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type5170 { get; set; } + public global::System.Collections.Generic.IList? Type5170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type5171 { get; set; } + public global::tryAGI.OpenAI.BetaListInputItemsOpenaiBetaItem? Type5171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type5172 { get; set; } + public global::System.Collections.Generic.IList? Type5172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type5173 { get; set; } + public global::tryAGI.OpenAI.BetaGetinputtokencountsOpenaiBetaItem? Type5173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse? Type5174 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type5174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject? Type5175 { get; set; } + public global::tryAGI.OpenAI.DeleteContainerResponse? Type5175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5176 { get; set; } + public global::tryAGI.OpenAI.DeleteContainerResponseObject? Type5176 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteContainerFileResponse? Type5177 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteContainerFileResponseObject? Type5178 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type5179 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type5180 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type5181 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type5182 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteResponseResponse? Type5183 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteResponseResponseObject? Type5184 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponse? Type5185 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListAgentSessionSubagentsResponseObject? Type5186 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type5187 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaDeleteResponseResponse? Type5188 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.BetaDeleteResponseResponseObject? Type5189 { get; set; } /// /// @@ -20786,11 +20838,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List>? ListType11 { 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? ListType12 { get; set; } /// /// /// @@ -21146,1058 +21198,1062 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::tryAGI.OpenAI.AnyOf, string>? ListType101 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType102 { 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? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType104 { 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? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType106 { 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? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType108 { 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? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType110 { 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? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType112 { 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? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType114 { 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? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType116 { 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? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType118 { 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? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType120 { 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? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType122 { 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? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType124 { 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? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType126 { 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? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType128 { 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? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType130 { 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? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType135 { 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? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType137 { 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? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType139 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? ListType140 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? ListType141 { 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>? ListType142 { get; set; } + public global::System.Collections.Generic.List>? ListType143 { 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? ListType144 { get; set; } + public global::System.Collections.Generic.List? ListType145 { 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? ListType146 { get; set; } + public global::System.Collections.Generic.List? ListType147 { 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? ListType148 { get; set; } + public global::System.Collections.Generic.List? ListType149 { 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? ListType150 { get; set; } + public global::System.Collections.Generic.List? ListType151 { 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? ListType152 { get; set; } + public global::System.Collections.Generic.List? ListType153 { 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? ListType154 { get; set; } + public global::System.Collections.Generic.List? ListType155 { 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? ListType156 { get; set; } + public global::System.Collections.Generic.List? ListType157 { 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? ListType158 { get; set; } + public global::System.Collections.Generic.List? ListType159 { 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? ListType160 { get; set; } + public global::System.Collections.Generic.List? ListType161 { 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? ListType162 { get; set; } + public global::System.Collections.Generic.List? ListType163 { 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? ListType164 { get; set; } + public global::System.Collections.Generic.List? ListType165 { 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>? ListType166 { get; set; } + public global::System.Collections.Generic.List>? ListType167 { 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? ListType168 { get; set; } + public global::System.Collections.Generic.List? ListType169 { 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? ListType170 { get; set; } + public global::System.Collections.Generic.List? ListType171 { 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? ListType172 { get; set; } + public global::System.Collections.Generic.List? ListType173 { 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? ListType174 { get; set; } + public global::System.Collections.Generic.List? ListType175 { 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? ListType176 { get; set; } + public global::System.Collections.Generic.List? ListType177 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType177 { get; set; } + public global::System.Collections.Generic.List? ListType178 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType178 { get; set; } + public global::System.Collections.Generic.List? ListType179 { 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? ListType180 { get; set; } + public global::System.Collections.Generic.List? ListType181 { 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? ListType182 { get; set; } + public global::System.Collections.Generic.List? ListType183 { 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? ListType184 { get; set; } + public global::System.Collections.Generic.List? ListType185 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType185 { get; set; } + public global::System.Collections.Generic.List? ListType186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType186 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType187 { 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? ListType188 { get; set; } + public global::System.Collections.Generic.List? ListType189 { 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? ListType190 { get; set; } + public global::System.Collections.Generic.List? ListType191 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType191 { get; set; } + public global::System.Collections.Generic.List? ListType192 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType192 { get; set; } + public global::System.Collections.Generic.List? ListType193 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType193 { get; set; } + public global::System.Collections.Generic.List? ListType194 { 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? ListType195 { get; set; } + public global::System.Collections.Generic.List? ListType196 { 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? ListType197 { get; set; } + public global::System.Collections.Generic.List? ListType198 { 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? ListType199 { get; set; } + public global::System.Collections.Generic.List? ListType200 { 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? ListType201 { get; set; } + public global::System.Collections.Generic.List? ListType202 { 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? ListType203 { get; set; } + public global::System.Collections.Generic.List? ListType204 { 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? ListType205 { get; set; } + public global::System.Collections.Generic.List? ListType206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType206 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType207 { 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? ListType208 { get; set; } + public global::System.Collections.Generic.List? ListType209 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType209 { get; set; } + public global::System.Collections.Generic.List? ListType210 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType210 { get; set; } + public global::System.Collections.Generic.List? ListType211 { 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? ListType212 { get; set; } + public global::System.Collections.Generic.List? ListType213 { 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.Dictionary>? ListType214 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType215 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType215 { get; set; } + public global::System.Collections.Generic.List? ListType216 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType216 { get; set; } + public global::System.Collections.Generic.List? ListType217 { 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? ListType218 { get; set; } + public global::System.Collections.Generic.List? ListType219 { 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? ListType220 { get; set; } + public global::System.Collections.Generic.List? ListType221 { 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? ListType222 { get; set; } + public global::System.Collections.Generic.List? ListType223 { 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? ListType224 { get; set; } + public global::System.Collections.Generic.List? ListType225 { 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? ListType226 { get; set; } + public global::System.Collections.Generic.List? ListType227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType227 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType228 { 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? ListType229 { get; set; } + public global::System.Collections.Generic.List? ListType230 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType230 { get; set; } + public global::System.Collections.Generic.List? ListType231 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType231 { get; set; } + public global::System.Collections.Generic.List? ListType232 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType232 { get; set; } + public global::System.Collections.Generic.List? ListType233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType233 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType234 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType235 { 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? ListType236 { get; set; } + public global::System.Collections.Generic.List? ListType237 { 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? ListType238 { get; set; } + public global::System.Collections.Generic.List? ListType239 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType239 { get; set; } + public global::System.Collections.Generic.List? ListType240 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType240 { get; set; } + public global::System.Collections.Generic.List? ListType241 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType241 { get; set; } + public global::System.Collections.Generic.List? ListType242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? ListType242 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? ListType243 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType243 { get; set; } + public global::System.Collections.Generic.List? ListType244 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType244 { get; set; } + public global::System.Collections.Generic.List? ListType245 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType245 { get; set; } + public global::System.Collections.Generic.List? ListType246 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType246 { get; set; } + public global::System.Collections.Generic.List? ListType247 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType247 { get; set; } + public global::System.Collections.Generic.List? ListType248 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType248 { get; set; } + public global::System.Collections.Generic.List? ListType249 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType249 { get; set; } + public global::System.Collections.Generic.List? ListType250 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType250 { get; set; } + public global::System.Collections.Generic.List? ListType251 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType251 { get; set; } + public global::System.Collections.Generic.List? ListType252 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType252 { get; set; } + public global::System.Collections.Generic.List? ListType253 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType253 { get; set; } + public global::System.Collections.Generic.List? ListType254 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType254 { get; set; } + public global::System.Collections.Generic.List? ListType255 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType255 { get; set; } + public global::System.Collections.Generic.List? ListType256 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType256 { get; set; } + public global::System.Collections.Generic.List? ListType257 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType257 { get; set; } + public global::System.Collections.Generic.List? ListType258 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType258 { get; set; } + public global::System.Collections.Generic.List? ListType259 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType259 { get; set; } + public global::System.Collections.Generic.List? ListType260 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType260 { get; set; } + public global::System.Collections.Generic.List? ListType261 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType261 { get; set; } + public global::System.Collections.Generic.List? ListType262 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType262 { get; set; } + public global::System.Collections.Generic.List? ListType263 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType263 { get; set; } + public global::System.Collections.Generic.List? ListType264 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType264 { get; set; } + public global::System.Collections.Generic.List? ListType265 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType265 { get; set; } + public global::System.Collections.Generic.List? ListType266 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType266 { get; set; } + public global::System.Collections.Generic.List? ListType267 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType267 { get; set; } + public global::System.Collections.Generic.List? ListType268 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType268 { get; set; } + public global::System.Collections.Generic.List? ListType269 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType269 { get; set; } + public global::System.Collections.Generic.List? ListType270 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType270 { get; set; } + public global::System.Collections.Generic.List? ListType271 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType271 { get; set; } + public global::System.Collections.Generic.List? ListType272 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType272 { get; set; } + public global::System.Collections.Generic.List? ListType273 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType273 { get; set; } + public global::System.Collections.Generic.List? ListType274 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType274 { get; set; } + public global::System.Collections.Generic.List? ListType275 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType275 { get; set; } + public global::System.Collections.Generic.List? ListType276 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType276 { get; set; } + public global::System.Collections.Generic.List? ListType277 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType277 { get; set; } + public global::System.Collections.Generic.List? ListType278 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType278 { get; set; } + public global::System.Collections.Generic.List? ListType279 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType279 { get; set; } + public global::System.Collections.Generic.List? ListType280 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType280 { get; set; } + public global::System.Collections.Generic.List? ListType281 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType281 { get; set; } + public global::System.Collections.Generic.List? ListType282 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType282 { get; set; } + public global::System.Collections.Generic.List? ListType283 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType283 { get; set; } + public global::System.Collections.Generic.List? ListType284 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType284 { get; set; } + public global::System.Collections.Generic.List? ListType285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? ListType285 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? ListType286 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType286 { get; set; } + public global::System.Collections.Generic.List? ListType287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType287 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType288 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType288 { get; set; } + public global::System.Collections.Generic.List? ListType289 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType289 { get; set; } + public global::System.Collections.Generic.List? ListType290 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType290 { get; set; } + public global::System.Collections.Generic.List? ListType291 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType291 { get; set; } + public global::System.Collections.Generic.List? ListType292 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType292 { get; set; } + public global::System.Collections.Generic.List? ListType293 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType293 { get; set; } + public global::System.Collections.Generic.List? ListType294 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType294 { get; set; } + public global::System.Collections.Generic.List? ListType295 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType295 { get; set; } + public global::System.Collections.Generic.List? ListType296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? ListType296 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.BetaMCPToolFilter>? ListType297 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType297 { get; set; } + public global::System.Collections.Generic.List? ListType298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType298 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType299 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType299 { get; set; } + public global::System.Collections.Generic.List? ListType300 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType300 { get; set; } + public global::System.Collections.Generic.List? ListType301 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType301 { get; set; } + public global::System.Collections.Generic.List? ListType302 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType302 { get; set; } + public global::System.Collections.Generic.List? ListType303 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType303 { get; set; } + public global::System.Collections.Generic.List? ListType304 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType304 { get; set; } + public global::System.Collections.Generic.List? ListType305 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType305 { get; set; } + public global::System.Collections.Generic.List? ListType306 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType306 { get; set; } + public global::System.Collections.Generic.List? ListType307 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType307 { get; set; } + public global::System.Collections.Generic.List? ListType308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType308 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType309 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType309 { get; set; } + public global::System.Collections.Generic.List? ListType310 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType310 { get; set; } + public global::System.Collections.Generic.List? ListType311 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType311 { get; set; } + public global::System.Collections.Generic.List? ListType312 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType312 { get; set; } + public global::System.Collections.Generic.List? ListType313 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType313 { get; set; } + public global::System.Collections.Generic.List? ListType314 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType314 { get; set; } + public global::System.Collections.Generic.List? ListType315 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType315 { get; set; } + public global::System.Collections.Generic.List? ListType316 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType316 { get; set; } + public global::System.Collections.Generic.List? ListType317 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType317 { get; set; } + public global::System.Collections.Generic.List? ListType318 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType318 { get; set; } + public global::System.Collections.Generic.List? ListType319 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType319 { get; set; } + public global::System.Collections.Generic.List? ListType320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? ListType320 { get; set; } + public global::tryAGI.OpenAI.OneOf>? ListType321 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType321 { get; set; } + public global::System.Collections.Generic.List? ListType322 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType322 { get; set; } + public global::System.Collections.Generic.List? ListType323 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType323 { get; set; } + public global::System.Collections.Generic.List? ListType324 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType324 { get; set; } + public global::System.Collections.Generic.List? ListType325 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType325 { get; set; } + public global::System.Collections.Generic.List? ListType326 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType326 { get; set; } + public global::System.Collections.Generic.List? ListType327 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType327 { get; set; } + public global::System.Collections.Generic.List? ListType328 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType328 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType329 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType329 { get; set; } + public global::System.Collections.Generic.List? ListType330 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType330 { get; set; } + public global::System.Collections.Generic.List? ListType331 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType331 { get; set; } + public global::System.Collections.Generic.List? ListType332 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType332 { get; set; } + public global::System.Collections.Generic.List? ListType333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, string>? ListType333 { get; set; } + public global::tryAGI.OpenAI.OneOf, string>? ListType334 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType334 { get; set; } + public global::System.Collections.Generic.List? ListType335 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType335 { get; set; } + public global::System.Collections.Generic.List? ListType336 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType336 { get; set; } + public global::System.Collections.Generic.List? ListType337 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType337 { get; set; } + public global::System.Collections.Generic.List? ListType338 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType338 { get; set; } + public global::System.Collections.Generic.List? ListType339 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType339 { get; set; } + public global::System.Collections.Generic.List? ListType340 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType340 { get; set; } + public global::System.Collections.Generic.List? ListType341 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType341 { get; set; } + public global::System.Collections.Generic.List? ListType342 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType342 { get; set; } + public global::System.Collections.Generic.List? ListType343 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType343 { get; set; } + public global::System.Collections.Generic.List? ListType344 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType344 { get; set; } + public global::System.Collections.Generic.List? ListType345 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType345 { get; set; } + public global::System.Collections.Generic.List? ListType346 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType346 { get; set; } + public global::System.Collections.Generic.List? ListType347 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType347 { get; set; } + public global::System.Collections.Generic.List? ListType348 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType348 { get; set; } + public global::System.Collections.Generic.List? ListType349 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType349 { get; set; } + public global::System.Collections.Generic.List? ListType350 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType350 { get; set; } + public global::System.Collections.Generic.List? ListType351 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType351 { get; set; } + public global::System.Collections.Generic.List? ListType352 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType352 { get; set; } + public global::System.Collections.Generic.List? ListType353 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType353 { get; set; } + public global::System.Collections.Generic.List? ListType354 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType354 { get; set; } + public global::System.Collections.Generic.List? ListType355 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType355 { get; set; } + public global::System.Collections.Generic.List? ListType356 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType356 { get; set; } + public global::System.Collections.Generic.List? ListType357 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType357 { get; set; } + public global::System.Collections.Generic.List? ListType358 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType358 { get; set; } + public global::System.Collections.Generic.List? ListType359 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType359 { get; set; } + public global::System.Collections.Generic.List? ListType360 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType360 { get; set; } + public global::System.Collections.Generic.List? ListType361 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType361 { get; set; } + public global::System.Collections.Generic.List? ListType362 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType362 { get; set; } + public global::System.Collections.Generic.List? ListType363 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType363 { get; set; } + public global::System.Collections.Generic.List? ListType364 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType364 { get; set; } + public global::System.Collections.Generic.List? ListType365 { get; set; } } } \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs index fd0075daa..5280b37f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Live.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs index 8097d1f3e..350ed0a5d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.AcceptLiveSession.g.cs @@ -159,7 +159,7 @@ await AcceptLiveSessionAsResponseAsync( PrepareAcceptLiveSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, request: request); return __httpRequest; @@ -182,7 +182,7 @@ await AcceptLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ await AcceptLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ await AcceptLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await AcceptLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ await AcceptLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs index 760d8759c..94ef343dc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.CreateLive.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateLiveResponseContent( pathTemplate: "\"/live/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateLiveResponseContent( pathTemplate: "\"/live/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateLiveResponseContent( pathTemplate: "\"/live/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateLiveResponseContent( pathTemplate: "\"/live/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateLiveResponseContent( pathTemplate: "\"/live/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs index 028e0d267..75d05194d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.DownloadLiveRecording.g.cs @@ -151,7 +151,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( PrepareDownloadLiveRecordingRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -653,7 +653,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( PrepareDownloadLiveRecordingRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -675,7 +675,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -709,7 +709,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -750,7 +750,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -798,7 +798,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -820,7 +820,7 @@ partial void ProcessDownloadLiveRecordingResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs index 31b06fdc7..a073de757 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ForkLiveSession.g.cs @@ -166,7 +166,7 @@ partial void ProcessForkLiveSessionResponseContent( PrepareForkLiveSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessForkLiveSessionResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/fork\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessForkLiveSessionResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/fork\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessForkLiveSessionResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/fork\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessForkLiveSessionResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/fork\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessForkLiveSessionResponseContent( pathTemplate: "$\"/live/sessions/{sessionId}/fork\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs index 1e3736d28..b412d0f4f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.HangupLiveSession.g.cs @@ -140,7 +140,7 @@ await HangupLiveSessionAsResponseAsync( PrepareHangupLiveSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -162,7 +162,7 @@ await HangupLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ await HangupLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ await HangupLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ await HangupLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ await HangupLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs index 3adf298bb..2129fe2d1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.ReferLiveSession.g.cs @@ -159,7 +159,7 @@ await ReferLiveSessionAsResponseAsync( PrepareReferLiveSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, request: request); return __httpRequest; @@ -182,7 +182,7 @@ await ReferLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ await ReferLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ await ReferLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await ReferLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ await ReferLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs index 040ab0ad8..0bf610a3f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.LiveClient.RejectLiveSession.g.cs @@ -159,7 +159,7 @@ await RejectLiveSessionAsResponseAsync( PrepareRejectLiveSessionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!, + sessionId: sessionId, request: request); return __httpRequest; @@ -182,7 +182,7 @@ await RejectLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ await RejectLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ await RejectLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await RejectLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ await RejectLiveSessionAsResponseAsync( pathTemplate: "$\"/live/sessions/{sessionId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs index fa3fa349c..781e014ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AdminApiKeyCreateResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickAdminApiKey( /// /// /// - public global::tryAGI.OpenAI.AdminApiKey PickAdminApiKey() => IsAdminApiKey - ? AdminApiKey! + public global::tryAGI.OpenAI.AdminApiKey PickAdminApiKey() => AdminApiKey is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdminApiKey' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickAdminApiKeyCreateResponseVariant2( /// /// /// - public global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2 PickAdminApiKeyCreateResponseVariant2() => IsAdminApiKeyCreateResponseVariant2 - ? AdminApiKeyCreateResponseVariant2! + public global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2 PickAdminApiKeyCreateResponseVariant2() => AdminApiKeyCreateResponseVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdminApiKeyCreateResponseVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsAdminApiKey && adminApiKey != null) + if (AdminApiKey is { } __value0 && adminApiKey != null) { - return adminApiKey(AdminApiKey!); + return adminApiKey(__value0); } - else if (IsAdminApiKeyCreateResponseVariant2 && adminApiKeyCreateResponseVariant2 != null) + else if (AdminApiKeyCreateResponseVariant2 is { } __value1 && adminApiKeyCreateResponseVariant2 != null) { - return adminApiKeyCreateResponseVariant2(AdminApiKeyCreateResponseVariant2!); + return adminApiKeyCreateResponseVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsAdminApiKey) + if (AdminApiKey is { } __value0) { - adminApiKey?.Invoke(AdminApiKey!); + adminApiKey?.Invoke(__value0); } - else if (IsAdminApiKeyCreateResponseVariant2) + else if (AdminApiKeyCreateResponseVariant2 is { } __value1) { - adminApiKeyCreateResponseVariant2?.Invoke(AdminApiKeyCreateResponseVariant2!); + adminApiKeyCreateResponseVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsAdminApiKey) + if (AdminApiKey is { } __value0) { - adminApiKey?.Invoke(AdminApiKey!); + adminApiKey?.Invoke(__value0); } - else if (IsAdminApiKeyCreateResponseVariant2) + else if (AdminApiKeyCreateResponseVariant2 is { } __value1) { - adminApiKeyCreateResponseVariant2?.Invoke(AdminApiKeyCreateResponseVariant2!); + adminApiKeyCreateResponseVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentContentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentContentResource.g.cs index f085efb86..bfd66d119 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentContentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentContentResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.OutputTextResource PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.OutputTextResource PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickEncryptedContent( /// /// /// - public global::tryAGI.OpenAI.EncryptedContentResource PickEncryptedContent() => IsEncryptedContent - ? EncryptedContent! + public global::tryAGI.OpenAI.EncryptedContentResource PickEncryptedContent() => EncryptedContent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EncryptedContent' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsOutputText && outputText != null) + if (OutputText is { } __value0 && outputText != null) { - return outputText(OutputText!); + return outputText(__value0); } - else if (IsEncryptedContent && encryptedContent != null) + else if (EncryptedContent is { } __value1 && encryptedContent != null) { - return encryptedContent(EncryptedContent!); + return encryptedContent(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value1) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value1) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentOutputItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentOutputItemResource.g.cs index 10a61bc12..b02799894 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentOutputItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentOutputItemResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemResource PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.AssistantMessageItemResource PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResource PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItemResource PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResource PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.FunctionCallItemResource PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.McpCallItemResource PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.McpCallItemResource PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResource PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchCallItemResource PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickCommandExecution( /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResource PickCommandExecution() => IsCommandExecution - ? CommandExecution! + public global::tryAGI.OpenAI.CommandExecutionItemResource PickCommandExecution() => CommandExecution is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CommandExecution' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickCreateSubagentCall( /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResource PickCreateSubagentCall() => IsCreateSubagentCall - ? CreateSubagentCall! + public global::tryAGI.OpenAI.CreateSubagentCallItemResource PickCreateSubagentCall() => CreateSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateSubagentCall' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickSendSubagentInputCall( /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResource PickSendSubagentInputCall() => IsSendSubagentInputCall - ? SendSubagentInputCall! + public global::tryAGI.OpenAI.SendSubagentInputCallItemResource PickSendSubagentInputCall() => SendSubagentInputCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SendSubagentInputCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickResumeSubagentCall( /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResource PickResumeSubagentCall() => IsResumeSubagentCall - ? ResumeSubagentCall! + public global::tryAGI.OpenAI.ResumeSubagentCallItemResource PickResumeSubagentCall() => ResumeSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResumeSubagentCall' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickWaitForSubagentsCall( /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource PickWaitForSubagentsCall() => IsWaitForSubagentsCall - ? WaitForSubagentsCall! + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource PickWaitForSubagentsCall() => WaitForSubagentsCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WaitForSubagentsCall' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickInterruptSubagentCall( /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResource PickInterruptSubagentCall() => IsInterruptSubagentCall - ? InterruptSubagentCall! + public global::tryAGI.OpenAI.InterruptSubagentCallItemResource PickInterruptSubagentCall() => InterruptSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InterruptSubagentCall' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickCloseSubagentCall( /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResource PickCloseSubagentCall() => IsCloseSubagentCall - ? CloseSubagentCall! + public global::tryAGI.OpenAI.CloseSubagentCallItemResource PickCloseSubagentCall() => CloseSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CloseSubagentCall' but the value was {ToString()}."); /// /// @@ -835,53 +835,53 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value1 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value1); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value2 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value2); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value3 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value3); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value4 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value4); } - else if (IsCommandExecution && commandExecution != null) + else if (CommandExecution is { } __value5 && commandExecution != null) { - return commandExecution(CommandExecution!); + return commandExecution(__value5); } - else if (IsCreateSubagentCall && createSubagentCall != null) + else if (CreateSubagentCall is { } __value6 && createSubagentCall != null) { - return createSubagentCall(CreateSubagentCall!); + return createSubagentCall(__value6); } - else if (IsSendSubagentInputCall && sendSubagentInputCall != null) + else if (SendSubagentInputCall is { } __value7 && sendSubagentInputCall != null) { - return sendSubagentInputCall(SendSubagentInputCall!); + return sendSubagentInputCall(__value7); } - else if (IsResumeSubagentCall && resumeSubagentCall != null) + else if (ResumeSubagentCall is { } __value8 && resumeSubagentCall != null) { - return resumeSubagentCall(ResumeSubagentCall!); + return resumeSubagentCall(__value8); } - else if (IsWaitForSubagentsCall && waitForSubagentsCall != null) + else if (WaitForSubagentsCall is { } __value9 && waitForSubagentsCall != null) { - return waitForSubagentsCall(WaitForSubagentsCall!); + return waitForSubagentsCall(__value9); } - else if (IsInterruptSubagentCall && interruptSubagentCall != null) + else if (InterruptSubagentCall is { } __value10 && interruptSubagentCall != null) { - return interruptSubagentCall(InterruptSubagentCall!); + return interruptSubagentCall(__value10); } - else if (IsCloseSubagentCall && closeSubagentCall != null) + else if (CloseSubagentCall is { } __value11 && closeSubagentCall != null) { - return closeSubagentCall(CloseSubagentCall!); + return closeSubagentCall(__value11); } return default(TResult); @@ -921,53 +921,53 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsReasoning) + else if (Reasoning is { } __value1) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsMcpCall) + else if (McpCall is { } __value3) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value3); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value4) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value4); } - else if (IsCommandExecution) + else if (CommandExecution is { } __value5) { - commandExecution?.Invoke(CommandExecution!); + commandExecution?.Invoke(__value5); } - else if (IsCreateSubagentCall) + else if (CreateSubagentCall is { } __value6) { - createSubagentCall?.Invoke(CreateSubagentCall!); + createSubagentCall?.Invoke(__value6); } - else if (IsSendSubagentInputCall) + else if (SendSubagentInputCall is { } __value7) { - sendSubagentInputCall?.Invoke(SendSubagentInputCall!); + sendSubagentInputCall?.Invoke(__value7); } - else if (IsResumeSubagentCall) + else if (ResumeSubagentCall is { } __value8) { - resumeSubagentCall?.Invoke(ResumeSubagentCall!); + resumeSubagentCall?.Invoke(__value8); } - else if (IsWaitForSubagentsCall) + else if (WaitForSubagentsCall is { } __value9) { - waitForSubagentsCall?.Invoke(WaitForSubagentsCall!); + waitForSubagentsCall?.Invoke(__value9); } - else if (IsInterruptSubagentCall) + else if (InterruptSubagentCall is { } __value10) { - interruptSubagentCall?.Invoke(InterruptSubagentCall!); + interruptSubagentCall?.Invoke(__value10); } - else if (IsCloseSubagentCall) + else if (CloseSubagentCall is { } __value11) { - closeSubagentCall?.Invoke(CloseSubagentCall!); + closeSubagentCall?.Invoke(__value11); } } @@ -994,53 +994,53 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsReasoning) + else if (Reasoning is { } __value1) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsMcpCall) + else if (McpCall is { } __value3) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value3); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value4) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value4); } - else if (IsCommandExecution) + else if (CommandExecution is { } __value5) { - commandExecution?.Invoke(CommandExecution!); + commandExecution?.Invoke(__value5); } - else if (IsCreateSubagentCall) + else if (CreateSubagentCall is { } __value6) { - createSubagentCall?.Invoke(CreateSubagentCall!); + createSubagentCall?.Invoke(__value6); } - else if (IsSendSubagentInputCall) + else if (SendSubagentInputCall is { } __value7) { - sendSubagentInputCall?.Invoke(SendSubagentInputCall!); + sendSubagentInputCall?.Invoke(__value7); } - else if (IsResumeSubagentCall) + else if (ResumeSubagentCall is { } __value8) { - resumeSubagentCall?.Invoke(ResumeSubagentCall!); + resumeSubagentCall?.Invoke(__value8); } - else if (IsWaitForSubagentsCall) + else if (WaitForSubagentsCall is { } __value9) { - waitForSubagentsCall?.Invoke(WaitForSubagentsCall!); + waitForSubagentsCall?.Invoke(__value9); } - else if (IsInterruptSubagentCall) + else if (InterruptSubagentCall is { } __value10) { - interruptSubagentCall?.Invoke(InterruptSubagentCall!); + interruptSubagentCall?.Invoke(__value10); } - else if (IsCloseSubagentCall) + else if (CloseSubagentCall is { } __value11) { - closeSubagentCall?.Invoke(CloseSubagentCall!); + closeSubagentCall?.Invoke(__value11); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolConfigParam.g.cs index 2420cdafc..21f221bad 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolConfigParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamFunction PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.AgentToolConfigParamFunction PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickToolSearch( /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch PickToolSearch() => IsToolSearch - ? ToolSearch! + public global::tryAGI.OpenAI.AgentToolConfigParamToolSearch PickToolSearch() => ToolSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickProgrammaticToolCalling( /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling PickProgrammaticToolCalling() => IsProgrammaticToolCalling - ? ProgrammaticToolCalling! + public global::tryAGI.OpenAI.AgentToolConfigParamProgrammaticToolCalling PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickMcp( /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamMcp PickMcp() => IsMcp - ? Mcp! + public global::tryAGI.OpenAI.AgentToolConfigParamMcp PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.AgentToolConfigParamWebSearch PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsToolSearch && toolSearch != null) + else if (ToolSearch is { } __value1 && toolSearch != null) { - return toolSearch(ToolSearch!); + return toolSearch(__value1); } - else if (IsProgrammaticToolCalling && programmaticToolCalling != null) + else if (ProgrammaticToolCalling is { } __value2 && programmaticToolCalling != null) { - return programmaticToolCalling(ProgrammaticToolCalling!); + return programmaticToolCalling(__value2); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value3 && mcp != null) { - return mcp(Mcp!); + return mcp(__value3); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value4 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsToolSearch) + else if (ToolSearch is { } __value1) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value1); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value2) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value2); } - else if (IsMcp) + else if (Mcp is { } __value3) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsToolSearch) + else if (ToolSearch is { } __value1) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value1); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value2) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value2); } - else if (IsMcp) + else if (Mcp is { } __value3) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolResource.g.cs index 8b41883af..d20055ba7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AgentToolResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceFunction PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.AgentToolResourceFunction PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickProgrammaticToolCalling( /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling PickProgrammaticToolCalling() => IsProgrammaticToolCalling - ? ProgrammaticToolCalling! + public global::tryAGI.OpenAI.AgentToolResourceProgrammaticToolCalling PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickMcp( /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceMcp PickMcp() => IsMcp - ? Mcp! + public global::tryAGI.OpenAI.AgentToolResourceMcp PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.AgentToolResourceWebSearch PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.AgentToolResourceWebSearch PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsProgrammaticToolCalling && programmaticToolCalling != null) + else if (ProgrammaticToolCalling is { } __value1 && programmaticToolCalling != null) { - return programmaticToolCalling(ProgrammaticToolCalling!); + return programmaticToolCalling(__value1); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value2 && mcp != null) { - return mcp(Mcp!); + return mcp(__value2); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value3 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value1) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value1); } - else if (IsMcp) + else if (Mcp is { } __value2) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value2); } - else if (IsWebSearch) + else if (WebSearch is { } __value3) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value1) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value1); } - else if (IsMcp) + else if (Mcp is { } __value2) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value2); } - else if (IsWebSearch) + else if (WebSearch is { } __value3) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs index 8d9c850a7..ee505a714 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs @@ -47,8 +47,8 @@ public bool TryPickFileCitation( /// /// /// - public global::tryAGI.OpenAI.FileCitationBody PickFileCitation() => IsFileCitation - ? FileCitation! + public global::tryAGI.OpenAI.FileCitationBody PickFileCitation() => FileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileCitation' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickUrlCitation( /// /// /// - public global::tryAGI.OpenAI.UrlCitationBody PickUrlCitation() => IsUrlCitation - ? UrlCitation! + public global::tryAGI.OpenAI.UrlCitationBody PickUrlCitation() => UrlCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UrlCitation' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickContainerFileCitation( /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBody PickContainerFileCitation() => IsContainerFileCitation - ? ContainerFileCitation! + public global::tryAGI.OpenAI.ContainerFileCitationBody PickContainerFileCitation() => ContainerFileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerFileCitation' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFilePath( /// /// /// - public global::tryAGI.OpenAI.FilePath PickFilePath() => IsFilePath - ? FilePath! + public global::tryAGI.OpenAI.FilePath PickFilePath() => FilePath is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FilePath' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsFileCitation && fileCitation != null) + if (FileCitation is { } __value0 && fileCitation != null) { - return fileCitation(FileCitation!); + return fileCitation(__value0); } - else if (IsUrlCitation && urlCitation != null) + else if (UrlCitation is { } __value1 && urlCitation != null) { - return urlCitation(UrlCitation!); + return urlCitation(__value1); } - else if (IsContainerFileCitation && containerFileCitation != null) + else if (ContainerFileCitation is { } __value2 && containerFileCitation != null) { - return containerFileCitation(ContainerFileCitation!); + return containerFileCitation(__value2); } - else if (IsFilePath && filePath != null) + else if (FilePath is { } __value3 && filePath != null) { - return filePath(FilePath!); + return filePath(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsUrlCitation) + else if (UrlCitation is { } __value1) { - urlCitation?.Invoke(UrlCitation!); + urlCitation?.Invoke(__value1); } - else if (IsContainerFileCitation) + else if (ContainerFileCitation is { } __value2) { - containerFileCitation?.Invoke(ContainerFileCitation!); + containerFileCitation?.Invoke(__value2); } - else if (IsFilePath) + else if (FilePath is { } __value3) { - filePath?.Invoke(FilePath!); + filePath?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsUrlCitation) + else if (UrlCitation is { } __value1) { - urlCitation?.Invoke(UrlCitation!); + urlCitation?.Invoke(__value1); } - else if (IsContainerFileCitation) + else if (ContainerFileCitation is { } __value2) { - containerFileCitation?.Invoke(ContainerFileCitation!); + containerFileCitation?.Invoke(__value2); } - else if (IsFilePath) + else if (FilePath is { } __value3) { - filePath?.Invoke(FilePath!); + filePath?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs index 00e642f06..38de673b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs @@ -47,8 +47,8 @@ public bool TryPickFile( /// /// /// - public global::tryAGI.OpenAI.FileAnnotation PickFile() => IsFile - ? File! + public global::tryAGI.OpenAI.FileAnnotation PickFile() => File is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'File' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickUrl( /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation PickUrl() => IsUrl - ? Url! + public global::tryAGI.OpenAI.UrlAnnotation PickUrl() => Url is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Url' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFile && file != null) + if (File is { } __value0 && file != null) { - return file(File!); + return file(__value0); } - else if (IsUrl && url != null) + else if (Url is { } __value1 && url != null) { - return url(Url!); + return url(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFile) + if (File is { } __value0) { - file?.Invoke(File!); + file?.Invoke(__value0); } - else if (IsUrl) + else if (Url is { } __value1) { - url?.Invoke(Url!); + url?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFile) + if (File is { } __value0) { - file?.Invoke(File!); + file?.Invoke(__value0); } - else if (IsUrl) + else if (Url is { } __value1) { - url?.Invoke(Url!); + url?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem4.g.cs index 15e4eb896..9b9201fbb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem4.g.cs @@ -47,8 +47,8 @@ public bool TryPickFileCitation( /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationParam PickFileCitation() => IsFileCitation - ? FileCitation! + public global::tryAGI.OpenAI.BetaFileCitationParam PickFileCitation() => FileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileCitation' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickUrlCitation( /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationParam PickUrlCitation() => IsUrlCitation - ? UrlCitation! + public global::tryAGI.OpenAI.BetaUrlCitationParam PickUrlCitation() => UrlCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UrlCitation' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickContainerFileCitation( /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationParam PickContainerFileCitation() => IsContainerFileCitation - ? ContainerFileCitation! + public global::tryAGI.OpenAI.BetaContainerFileCitationParam PickContainerFileCitation() => ContainerFileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerFileCitation' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsFileCitation && fileCitation != null) + if (FileCitation is { } __value0 && fileCitation != null) { - return fileCitation(FileCitation!); + return fileCitation(__value0); } - else if (IsUrlCitation && urlCitation != null) + else if (UrlCitation is { } __value1 && urlCitation != null) { - return urlCitation(UrlCitation!); + return urlCitation(__value1); } - else if (IsContainerFileCitation && containerFileCitation != null) + else if (ContainerFileCitation is { } __value2 && containerFileCitation != null) { - return containerFileCitation(ContainerFileCitation!); + return containerFileCitation(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsUrlCitation) + else if (UrlCitation is { } __value1) { - urlCitation?.Invoke(UrlCitation!); + urlCitation?.Invoke(__value1); } - else if (IsContainerFileCitation) + else if (ContainerFileCitation is { } __value2) { - containerFileCitation?.Invoke(ContainerFileCitation!); + containerFileCitation?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsUrlCitation) + else if (UrlCitation is { } __value1) { - urlCitation?.Invoke(UrlCitation!); + urlCitation?.Invoke(__value1); } - else if (IsContainerFileCitation) + else if (ContainerFileCitation is { } __value2) { - containerFileCitation?.Invoke(ContainerFileCitation!); + containerFileCitation?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs index fea7f7d8b..92a84cf4a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickCreateFile( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam PickCreateFile() => IsCreateFile - ? CreateFile! + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam PickCreateFile() => CreateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateFile' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDeleteFile( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam PickDeleteFile() => IsDeleteFile - ? DeleteFile! + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam PickDeleteFile() => DeleteFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeleteFile' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickUpdateFile( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam PickUpdateFile() => IsUpdateFile - ? UpdateFile! + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam PickUpdateFile() => UpdateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsCreateFile && createFile != null) + if (CreateFile is { } __value0 && createFile != null) { - return createFile(CreateFile!); + return createFile(__value0); } - else if (IsDeleteFile && deleteFile != null) + else if (DeleteFile is { } __value1 && deleteFile != null) { - return deleteFile(DeleteFile!); + return deleteFile(__value1); } - else if (IsUpdateFile && updateFile != null) + else if (UpdateFile is { } __value2 && updateFile != null) { - return updateFile(UpdateFile!); + return updateFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs index 54fde020e..fd219dfda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantStreamEvent.g.cs @@ -56,8 +56,8 @@ public bool TryPickThread( /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEvent PickThread() => IsThread - ? Thread!.Value + public global::tryAGI.OpenAI.ThreadStreamEvent PickThread() => Thread is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Thread' but the value was {ToString()}."); /// @@ -93,8 +93,8 @@ public bool TryPickRun( /// /// /// - public global::tryAGI.OpenAI.RunStreamEvent PickRun() => IsRun - ? Run!.Value + public global::tryAGI.OpenAI.RunStreamEvent PickRun() => Run is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Run' but the value was {ToString()}."); /// @@ -130,8 +130,8 @@ public bool TryPickRunStep( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEvent PickRunStep() => IsRunStep - ? RunStep!.Value + public global::tryAGI.OpenAI.RunStepStreamEvent PickRunStep() => RunStep is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStep' but the value was {ToString()}."); /// @@ -167,8 +167,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.MessageStreamEvent PickMessage() => IsMessage - ? Message!.Value + public global::tryAGI.OpenAI.MessageStreamEvent PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -204,8 +204,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ErrorEvent PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ErrorEvent PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -241,8 +241,8 @@ public bool TryPickDone( /// /// /// - public global::tryAGI.OpenAI.DoneEvent PickDone() => IsDone - ? Done! + public global::tryAGI.OpenAI.DoneEvent PickDone() => Done is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Done' but the value was {ToString()}."); /// /// @@ -451,29 +451,29 @@ public bool Validate() Validate(); } - if (IsThread && thread != null) + if (Thread is { } __value0 && thread != null) { - return thread(Thread!); + return thread(__value0); } - else if (IsRun && run != null) + else if (Run is { } __value1 && run != null) { - return run(Run!); + return run(__value1); } - else if (IsRunStep && runStep != null) + else if (RunStep is { } __value2 && runStep != null) { - return runStep(RunStep!); + return runStep(__value2); } - else if (IsMessage && message != null) + else if (Message is { } __value3 && message != null) { - return message(Message!); + return message(__value3); } - else if (IsError && error != null) + else if (Error is { } __value4 && error != null) { - return error(Error!); + return error(__value4); } - else if (IsDone && done != null) + else if (Done is { } __value5 && done != null) { - return done(Done!); + return done(__value5); } return default(TResult); @@ -501,29 +501,29 @@ public void Match( Validate(); } - if (IsThread) + if (Thread is { } __value0) { - thread?.Invoke(Thread!); + thread?.Invoke(__value0); } - else if (IsRun) + else if (Run is { } __value1) { - run?.Invoke(Run!); + run?.Invoke(__value1); } - else if (IsRunStep) + else if (RunStep is { } __value2) { - runStep?.Invoke(RunStep!); + runStep?.Invoke(__value2); } - else if (IsMessage) + else if (Message is { } __value3) { - message?.Invoke(Message!); + message?.Invoke(__value3); } - else if (IsError) + else if (Error is { } __value4) { - error?.Invoke(Error!); + error?.Invoke(__value4); } - else if (IsDone) + else if (Done is { } __value5) { - done?.Invoke(Done!); + done?.Invoke(__value5); } } @@ -544,29 +544,29 @@ public void Switch( Validate(); } - if (IsThread) + if (Thread is { } __value0) { - thread?.Invoke(Thread!); + thread?.Invoke(__value0); } - else if (IsRun) + else if (Run is { } __value1) { - run?.Invoke(Run!); + run?.Invoke(__value1); } - else if (IsRunStep) + else if (RunStep is { } __value2) { - runStep?.Invoke(RunStep!); + runStep?.Invoke(__value2); } - else if (IsMessage) + else if (Message is { } __value3) { - message?.Invoke(Message!); + message?.Invoke(__value3); } - else if (IsError) + else if (Error is { } __value4) { - error?.Invoke(Error!); + error?.Invoke(__value4); } - else if (IsDone) + else if (Done is { } __value5) { - done?.Invoke(Done!); + done?.Invoke(__value5); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs index 6df99610c..44d43f7da 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs @@ -45,8 +45,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.ResponseFormatText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -122,8 +122,8 @@ public bool TryPickJsonObject( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObject PickJsonObject() => IsJsonObject - ? JsonObject! + public global::tryAGI.OpenAI.ResponseFormatJsonObject PickJsonObject() => JsonObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonObject' but the value was {ToString()}."); /// @@ -160,8 +160,8 @@ public bool TryPickJsonSchema( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchema PickJsonSchema() => IsJsonSchema - ? JsonSchema! + public global::tryAGI.OpenAI.ResponseFormatJsonSchema PickJsonSchema() => JsonSchema is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonSchema' but the value was {ToString()}."); /// /// @@ -314,21 +314,21 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } - else if (IsJsonObject && jsonObject != null) + else if (JsonObject is { } __value2 && jsonObject != null) { - return jsonObject(JsonObject!); + return jsonObject(__value2); } - else if (IsJsonSchema && jsonSchema != null) + else if (JsonSchema is { } __value3 && jsonSchema != null) { - return jsonSchema(JsonSchema!); + return jsonSchema(__value3); } return default(TResult); @@ -352,21 +352,21 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value3) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value3); } } @@ -385,21 +385,21 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value3) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs index 7ebda10f0..f320b606a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs @@ -46,8 +46,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -83,8 +83,8 @@ public bool TryPickNamed( /// /// /// - public global::tryAGI.OpenAI.AssistantsNamedToolChoice PickNamed() => IsNamed - ? Named! + public global::tryAGI.OpenAI.AssistantsNamedToolChoice PickNamed() => Named is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Named' but the value was {ToString()}."); /// /// @@ -181,13 +181,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsNamed && named != null) + else if (Named is { } __value1 && named != null) { - return named(Named!); + return named(__value1); } return default(TResult); @@ -207,13 +207,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsNamed) + else if (Named is { } __value1) { - named?.Invoke(Named!); + named?.Invoke(__value1); } } @@ -230,13 +230,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsNamed) + else if (Named is { } __value1) { - named?.Invoke(Named!); + named?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaAnnotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaAnnotation.g.cs index 0c6755c4b..470bf6979 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaAnnotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaAnnotation.g.cs @@ -47,8 +47,8 @@ public bool TryPickFileCitation( /// /// /// - public global::tryAGI.OpenAI.BetaFileCitationBody PickFileCitation() => IsFileCitation - ? FileCitation! + public global::tryAGI.OpenAI.BetaFileCitationBody PickFileCitation() => FileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileCitation' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickUrlCitation( /// /// /// - public global::tryAGI.OpenAI.BetaUrlCitationBody PickUrlCitation() => IsUrlCitation - ? UrlCitation! + public global::tryAGI.OpenAI.BetaUrlCitationBody PickUrlCitation() => UrlCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UrlCitation' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickContainerFileCitation( /// /// /// - public global::tryAGI.OpenAI.BetaContainerFileCitationBody PickContainerFileCitation() => IsContainerFileCitation - ? ContainerFileCitation! + public global::tryAGI.OpenAI.BetaContainerFileCitationBody PickContainerFileCitation() => ContainerFileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerFileCitation' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFilePath( /// /// /// - public global::tryAGI.OpenAI.BetaFilePath PickFilePath() => IsFilePath - ? FilePath! + public global::tryAGI.OpenAI.BetaFilePath PickFilePath() => FilePath is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FilePath' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsFileCitation && fileCitation != null) + if (FileCitation is { } __value0 && fileCitation != null) { - return fileCitation(FileCitation!); + return fileCitation(__value0); } - else if (IsUrlCitation && urlCitation != null) + else if (UrlCitation is { } __value1 && urlCitation != null) { - return urlCitation(UrlCitation!); + return urlCitation(__value1); } - else if (IsContainerFileCitation && containerFileCitation != null) + else if (ContainerFileCitation is { } __value2 && containerFileCitation != null) { - return containerFileCitation(ContainerFileCitation!); + return containerFileCitation(__value2); } - else if (IsFilePath && filePath != null) + else if (FilePath is { } __value3 && filePath != null) { - return filePath(FilePath!); + return filePath(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsUrlCitation) + else if (UrlCitation is { } __value1) { - urlCitation?.Invoke(UrlCitation!); + urlCitation?.Invoke(__value1); } - else if (IsContainerFileCitation) + else if (ContainerFileCitation is { } __value2) { - containerFileCitation?.Invoke(ContainerFileCitation!); + containerFileCitation?.Invoke(__value2); } - else if (IsFilePath) + else if (FilePath is { } __value3) { - filePath?.Invoke(FilePath!); + filePath?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsUrlCitation) + else if (UrlCitation is { } __value1) { - urlCitation?.Invoke(UrlCitation!); + urlCitation?.Invoke(__value1); } - else if (IsContainerFileCitation) + else if (ContainerFileCitation is { } __value2) { - containerFileCitation?.Invoke(ContainerFileCitation!); + containerFileCitation?.Invoke(__value2); } - else if (IsFilePath) + else if (FilePath is { } __value3) { - filePath?.Invoke(FilePath!); + filePath?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaApplyPatchOperationParam.g.cs index bff86a770..434adef59 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaApplyPatchOperationParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickCreateFile( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam PickCreateFile() => IsCreateFile - ? CreateFile! + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperationParam PickCreateFile() => CreateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateFile' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDeleteFile( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam PickDeleteFile() => IsDeleteFile - ? DeleteFile! + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperationParam PickDeleteFile() => DeleteFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeleteFile' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickUpdateFile( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam PickUpdateFile() => IsUpdateFile - ? UpdateFile! + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperationParam PickUpdateFile() => UpdateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsCreateFile && createFile != null) + if (CreateFile is { } __value0 && createFile != null) { - return createFile(CreateFile!); + return createFile(__value0); } - else if (IsDeleteFile && deleteFile != null) + else if (DeleteFile is { } __value1 && deleteFile != null) { - return deleteFile(DeleteFile!); + return deleteFile(__value1); } - else if (IsUpdateFile && updateFile != null) + else if (UpdateFile is { } __value2 && updateFile != null) { - return updateFile(UpdateFile!); + return updateFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.g.cs deleted file mode 100644 index 76e2fecd6..000000000 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace tryAGI.OpenAI -{ - /// - /// - /// - public sealed partial class BetaCompoundFilterFilterVariant2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerAction.g.cs index 830457b5b..6b56c7d6e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerAction.g.cs @@ -47,8 +47,8 @@ public bool TryPickClick( /// /// /// - public global::tryAGI.OpenAI.BetaClickParam PickClick() => IsClick - ? Click! + public global::tryAGI.OpenAI.BetaClickParam PickClick() => Click is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Click' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDoubleClick( /// /// /// - public global::tryAGI.OpenAI.BetaDoubleClickAction PickDoubleClick() => IsDoubleClick - ? DoubleClick! + public global::tryAGI.OpenAI.BetaDoubleClickAction PickDoubleClick() => DoubleClick is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DoubleClick' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDrag( /// /// /// - public global::tryAGI.OpenAI.BetaDragParam PickDrag() => IsDrag - ? Drag! + public global::tryAGI.OpenAI.BetaDragParam PickDrag() => Drag is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Drag' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickKeypress( /// /// /// - public global::tryAGI.OpenAI.BetaKeyPressAction PickKeypress() => IsKeypress - ? Keypress! + public global::tryAGI.OpenAI.BetaKeyPressAction PickKeypress() => Keypress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Keypress' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickMove( /// /// /// - public global::tryAGI.OpenAI.BetaMoveParam PickMove() => IsMove - ? Move! + public global::tryAGI.OpenAI.BetaMoveParam PickMove() => Move is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Move' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickScreenshot( /// /// /// - public global::tryAGI.OpenAI.BetaScreenshotParam PickScreenshot() => IsScreenshot - ? Screenshot! + public global::tryAGI.OpenAI.BetaScreenshotParam PickScreenshot() => Screenshot is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Screenshot' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickScroll( /// /// /// - public global::tryAGI.OpenAI.BetaScrollParam PickScroll() => IsScroll - ? Scroll! + public global::tryAGI.OpenAI.BetaScrollParam PickScroll() => Scroll is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Scroll' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTypeValue( /// /// /// - public global::tryAGI.OpenAI.BetaTypeParam PickTypeValue() => IsTypeValue - ? TypeValue! + public global::tryAGI.OpenAI.BetaTypeParam PickTypeValue() => TypeValue is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TypeValue' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickWait( /// /// /// - public global::tryAGI.OpenAI.BetaWaitParam PickWait() => IsWait - ? Wait! + public global::tryAGI.OpenAI.BetaWaitParam PickWait() => Wait is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wait' but the value was {ToString()}."); /// /// @@ -640,41 +640,41 @@ public bool Validate() Validate(); } - if (IsClick && click != null) + if (Click is { } __value0 && click != null) { - return click(Click!); + return click(__value0); } - else if (IsDoubleClick && doubleClick != null) + else if (DoubleClick is { } __value1 && doubleClick != null) { - return doubleClick(DoubleClick!); + return doubleClick(__value1); } - else if (IsDrag && drag != null) + else if (Drag is { } __value2 && drag != null) { - return drag(Drag!); + return drag(__value2); } - else if (IsKeypress && keypress != null) + else if (Keypress is { } __value3 && keypress != null) { - return keypress(Keypress!); + return keypress(__value3); } - else if (IsMove && move != null) + else if (Move is { } __value4 && move != null) { - return move(Move!); + return move(__value4); } - else if (IsScreenshot && screenshot != null) + else if (Screenshot is { } __value5 && screenshot != null) { - return screenshot(Screenshot!); + return screenshot(__value5); } - else if (IsScroll && scroll != null) + else if (Scroll is { } __value6 && scroll != null) { - return scroll(Scroll!); + return scroll(__value6); } - else if (IsTypeValue && typeValue != null) + else if (TypeValue is { } __value7 && typeValue != null) { - return typeValue(TypeValue!); + return typeValue(__value7); } - else if (IsWait && wait != null) + else if (Wait is { } __value8 && wait != null) { - return wait(Wait!); + return wait(__value8); } return default(TResult); @@ -708,41 +708,41 @@ public void Match( Validate(); } - if (IsClick) + if (Click is { } __value0) { - click?.Invoke(Click!); + click?.Invoke(__value0); } - else if (IsDoubleClick) + else if (DoubleClick is { } __value1) { - doubleClick?.Invoke(DoubleClick!); + doubleClick?.Invoke(__value1); } - else if (IsDrag) + else if (Drag is { } __value2) { - drag?.Invoke(Drag!); + drag?.Invoke(__value2); } - else if (IsKeypress) + else if (Keypress is { } __value3) { - keypress?.Invoke(Keypress!); + keypress?.Invoke(__value3); } - else if (IsMove) + else if (Move is { } __value4) { - move?.Invoke(Move!); + move?.Invoke(__value4); } - else if (IsScreenshot) + else if (Screenshot is { } __value5) { - screenshot?.Invoke(Screenshot!); + screenshot?.Invoke(__value5); } - else if (IsScroll) + else if (Scroll is { } __value6) { - scroll?.Invoke(Scroll!); + scroll?.Invoke(__value6); } - else if (IsTypeValue) + else if (TypeValue is { } __value7) { - typeValue?.Invoke(TypeValue!); + typeValue?.Invoke(__value7); } - else if (IsWait) + else if (Wait is { } __value8) { - wait?.Invoke(Wait!); + wait?.Invoke(__value8); } } @@ -766,41 +766,41 @@ public void Switch( Validate(); } - if (IsClick) + if (Click is { } __value0) { - click?.Invoke(Click!); + click?.Invoke(__value0); } - else if (IsDoubleClick) + else if (DoubleClick is { } __value1) { - doubleClick?.Invoke(DoubleClick!); + doubleClick?.Invoke(__value1); } - else if (IsDrag) + else if (Drag is { } __value2) { - drag?.Invoke(Drag!); + drag?.Invoke(__value2); } - else if (IsKeypress) + else if (Keypress is { } __value3) { - keypress?.Invoke(Keypress!); + keypress?.Invoke(__value3); } - else if (IsMove) + else if (Move is { } __value4) { - move?.Invoke(Move!); + move?.Invoke(__value4); } - else if (IsScreenshot) + else if (Screenshot is { } __value5) { - screenshot?.Invoke(Screenshot!); + screenshot?.Invoke(__value5); } - else if (IsScroll) + else if (Scroll is { } __value6) { - scroll?.Invoke(Scroll!); + scroll?.Invoke(__value6); } - else if (IsTypeValue) + else if (TypeValue is { } __value7) { - typeValue?.Invoke(TypeValue!); + typeValue?.Invoke(__value7); } - else if (IsWait) + else if (Wait is { } __value8) { - wait?.Invoke(Wait!); + wait?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerToolCallOutputResource.g.cs index 4c8335570..aa27e1c01 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaComputerToolCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickComputerToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutput PickComputerToolCallOutput() => IsComputerToolCallOutput - ? ComputerToolCallOutput! + public global::tryAGI.OpenAI.BetaComputerToolCallOutput PickComputerToolCallOutput() => ComputerToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaComputerToolCallOutputResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2 PickBetaComputerToolCallOutputResourceVariant2() => IsBetaComputerToolCallOutputResourceVariant2 - ? BetaComputerToolCallOutputResourceVariant2! + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResourceVariant2 PickBetaComputerToolCallOutputResourceVariant2() => BetaComputerToolCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaComputerToolCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsComputerToolCallOutput && computerToolCallOutput != null) + if (ComputerToolCallOutput is { } __value0 && computerToolCallOutput != null) { - return computerToolCallOutput(ComputerToolCallOutput!); + return computerToolCallOutput(__value0); } - else if (IsBetaComputerToolCallOutputResourceVariant2 && betaComputerToolCallOutputResourceVariant2 != null) + else if (BetaComputerToolCallOutputResourceVariant2 is { } __value1 && betaComputerToolCallOutputResourceVariant2 != null) { - return betaComputerToolCallOutputResourceVariant2(BetaComputerToolCallOutputResourceVariant2!); + return betaComputerToolCallOutputResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsComputerToolCallOutput) + if (ComputerToolCallOutput is { } __value0) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value0); } - else if (IsBetaComputerToolCallOutputResourceVariant2) + else if (BetaComputerToolCallOutputResourceVariant2 is { } __value1) { - betaComputerToolCallOutputResourceVariant2?.Invoke(BetaComputerToolCallOutputResourceVariant2!); + betaComputerToolCallOutputResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsComputerToolCallOutput) + if (ComputerToolCallOutput is { } __value0) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value0); } - else if (IsBetaComputerToolCallOutputResourceVariant2) + else if (BetaComputerToolCallOutputResourceVariant2 is { } __value1) { - betaComputerToolCallOutputResourceVariant2?.Invoke(BetaComputerToolCallOutputResourceVariant2!); + betaComputerToolCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaContent.g.cs index 682be897d..e439fc936 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaContent.g.cs @@ -42,8 +42,8 @@ public bool TryPickInputContentTypes( /// /// /// - public global::tryAGI.OpenAI.BetaInputContent PickInputContentTypes() => IsInputContentTypes - ? InputContentTypes!.Value + public global::tryAGI.OpenAI.BetaInputContent PickInputContentTypes() => InputContentTypes is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputContentTypes' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickOutputContentTypes( /// /// /// - public global::tryAGI.OpenAI.BetaOutputContent PickOutputContentTypes() => IsOutputContentTypes - ? OutputContentTypes!.Value + public global::tryAGI.OpenAI.BetaOutputContent PickOutputContentTypes() => OutputContentTypes is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputContentTypes' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsInputContentTypes && inputContentTypes != null) + if (InputContentTypes is { } __value0 && inputContentTypes != null) { - return inputContentTypes(InputContentTypes!); + return inputContentTypes(__value0); } - else if (IsOutputContentTypes && outputContentTypes != null) + else if (OutputContentTypes is { } __value1 && outputContentTypes != null) { - return outputContentTypes(OutputContentTypes!); + return outputContentTypes(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsInputContentTypes) + if (InputContentTypes is { } __value0) { - inputContentTypes?.Invoke(InputContentTypes!); + inputContentTypes?.Invoke(__value0); } - else if (IsOutputContentTypes) + else if (OutputContentTypes is { } __value1) { - outputContentTypes?.Invoke(OutputContentTypes!); + outputContentTypes?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsInputContentTypes) + if (InputContentTypes is { } __value0) { - inputContentTypes?.Invoke(InputContentTypes!); + inputContentTypes?.Invoke(__value0); } - else if (IsOutputContentTypes) + else if (OutputContentTypes is { } __value1) { - outputContentTypes?.Invoke(OutputContentTypes!); + outputContentTypes?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaConversationParam.g.cs index a466b8d63..1cb01fa56 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaConversationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaConversationParam.g.cs @@ -44,8 +44,8 @@ public bool TryPickConversationId( /// /// /// - public string PickConversationId() => IsConversationId - ? ConversationId! + public string PickConversationId() => ConversationId is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationId' but the value was {ToString()}."); /// @@ -81,8 +81,8 @@ public bool TryPickConversationObject( /// /// /// - public global::tryAGI.OpenAI.BetaConversationParam2 PickConversationObject() => IsConversationObject - ? ConversationObject! + public global::tryAGI.OpenAI.BetaConversationParam2 PickConversationObject() => ConversationObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationObject' but the value was {ToString()}."); /// /// @@ -179,13 +179,13 @@ public bool Validate() Validate(); } - if (IsConversationId && conversationId != null) + if (ConversationId is { } __value0 && conversationId != null) { - return conversationId(ConversationId!); + return conversationId(__value0); } - else if (IsConversationObject && conversationObject != null) + else if (ConversationObject is { } __value1 && conversationObject != null) { - return conversationObject(ConversationObject!); + return conversationObject(__value1); } return default(TResult); @@ -205,13 +205,13 @@ public void Match( Validate(); } - if (IsConversationId) + if (ConversationId is { } __value0) { - conversationId?.Invoke(ConversationId!); + conversationId?.Invoke(__value0); } - else if (IsConversationObject) + else if (ConversationObject is { } __value1) { - conversationObject?.Invoke(ConversationObject!); + conversationObject?.Invoke(__value1); } } @@ -228,13 +228,13 @@ public void Switch( Validate(); } - if (IsConversationId) + if (ConversationId is { } __value0) { - conversationId?.Invoke(ConversationId!); + conversationId?.Invoke(__value0); } - else if (IsConversationObject) + else if (ConversationObject is { } __value1) { - conversationObject?.Invoke(ConversationObject!); + conversationObject?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateModelResponseProperties.g.cs index b00df148a..8064b11b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateModelResponseProperties.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaModelResponseProperties( /// /// /// - public global::tryAGI.OpenAI.BetaModelResponseProperties PickBetaModelResponseProperties() => IsBetaModelResponseProperties - ? BetaModelResponseProperties! + public global::tryAGI.OpenAI.BetaModelResponseProperties PickBetaModelResponseProperties() => BetaModelResponseProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaModelResponseProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaCreateModelResponsePropertiesVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2 PickBetaCreateModelResponsePropertiesVariant2() => IsBetaCreateModelResponsePropertiesVariant2 - ? BetaCreateModelResponsePropertiesVariant2! + public global::tryAGI.OpenAI.BetaCreateModelResponsePropertiesVariant2 PickBetaCreateModelResponsePropertiesVariant2() => BetaCreateModelResponsePropertiesVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaCreateModelResponsePropertiesVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsBetaModelResponseProperties && betaModelResponseProperties != null) + if (BetaModelResponseProperties is { } __value0 && betaModelResponseProperties != null) { - return betaModelResponseProperties(BetaModelResponseProperties!); + return betaModelResponseProperties(__value0); } - else if (IsBetaCreateModelResponsePropertiesVariant2 && betaCreateModelResponsePropertiesVariant2 != null) + else if (BetaCreateModelResponsePropertiesVariant2 is { } __value1 && betaCreateModelResponsePropertiesVariant2 != null) { - return betaCreateModelResponsePropertiesVariant2(BetaCreateModelResponsePropertiesVariant2!); + return betaCreateModelResponsePropertiesVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsBetaModelResponseProperties) + if (BetaModelResponseProperties is { } __value0) { - betaModelResponseProperties?.Invoke(BetaModelResponseProperties!); + betaModelResponseProperties?.Invoke(__value0); } - else if (IsBetaCreateModelResponsePropertiesVariant2) + else if (BetaCreateModelResponsePropertiesVariant2 is { } __value1) { - betaCreateModelResponsePropertiesVariant2?.Invoke(BetaCreateModelResponsePropertiesVariant2!); + betaCreateModelResponsePropertiesVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsBetaModelResponseProperties) + if (BetaModelResponseProperties is { } __value0) { - betaModelResponseProperties?.Invoke(BetaModelResponseProperties!); + betaModelResponseProperties?.Invoke(__value0); } - else if (IsBetaCreateModelResponsePropertiesVariant2) + else if (BetaCreateModelResponsePropertiesVariant2 is { } __value1) { - betaCreateModelResponsePropertiesVariant2?.Invoke(BetaCreateModelResponsePropertiesVariant2!); + betaCreateModelResponsePropertiesVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateResponse.g.cs index 22b36d216..d8ddd9e1c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCreateResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickModelProperties( /// /// /// - public global::tryAGI.OpenAI.BetaCreateModelResponseProperties PickModelProperties() => IsModelProperties - ? ModelProperties!.Value + public global::tryAGI.OpenAI.BetaCreateModelResponseProperties PickModelProperties() => ModelProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickProperties( /// /// /// - public global::tryAGI.OpenAI.BetaResponseProperties PickProperties() => IsProperties - ? Properties! + public global::tryAGI.OpenAI.BetaResponseProperties PickProperties() => Properties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Properties' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickBetaCreateResponseVariant3( /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponseVariant3 PickBetaCreateResponseVariant3() => IsBetaCreateResponseVariant3 - ? BetaCreateResponseVariant3! + public global::tryAGI.OpenAI.BetaCreateResponseVariant3 PickBetaCreateResponseVariant3() => BetaCreateResponseVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaCreateResponseVariant3' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsModelProperties && modelProperties != null) + if (ModelProperties is { } __value0 && modelProperties != null) { - return modelProperties(ModelProperties!); + return modelProperties(__value0); } - else if (IsProperties && properties != null) + else if (Properties is { } __value1 && properties != null) { - return properties(Properties!); + return properties(__value1); } - else if (IsBetaCreateResponseVariant3 && betaCreateResponseVariant3 != null) + else if (BetaCreateResponseVariant3 is { } __value2 && betaCreateResponseVariant3 != null) { - return betaCreateResponseVariant3(BetaCreateResponseVariant3!); + return betaCreateResponseVariant3(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsBetaCreateResponseVariant3) + else if (BetaCreateResponseVariant3 is { } __value2) { - betaCreateResponseVariant3?.Invoke(BetaCreateResponseVariant3!); + betaCreateResponseVariant3?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsBetaCreateResponseVariant3) + else if (BetaCreateResponseVariant3 is { } __value2) { - betaCreateResponseVariant3?.Invoke(BetaCreateResponseVariant3!); + betaCreateResponseVariant3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallOutputResource.g.cs index a43ef24fc..4b379c4b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.BetaCustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaCustomToolCallOutputResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2 PickBetaCustomToolCallOutputResourceVariant2() => IsBetaCustomToolCallOutputResourceVariant2 - ? BetaCustomToolCallOutputResourceVariant2! + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResourceVariant2 PickBetaCustomToolCallOutputResourceVariant2() => BetaCustomToolCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaCustomToolCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsCustomToolCallOutput && customToolCallOutput != null) + if (CustomToolCallOutput is { } __value0 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value0); } - else if (IsBetaCustomToolCallOutputResourceVariant2 && betaCustomToolCallOutputResourceVariant2 != null) + else if (BetaCustomToolCallOutputResourceVariant2 is { } __value1 && betaCustomToolCallOutputResourceVariant2 != null) { - return betaCustomToolCallOutputResourceVariant2(BetaCustomToolCallOutputResourceVariant2!); + return betaCustomToolCallOutputResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsCustomToolCallOutput) + if (CustomToolCallOutput is { } __value0) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value0); } - else if (IsBetaCustomToolCallOutputResourceVariant2) + else if (BetaCustomToolCallOutputResourceVariant2 is { } __value1) { - betaCustomToolCallOutputResourceVariant2?.Invoke(BetaCustomToolCallOutputResourceVariant2!); + betaCustomToolCallOutputResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsCustomToolCallOutput) + if (CustomToolCallOutput is { } __value0) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value0); } - else if (IsBetaCustomToolCallOutputResourceVariant2) + else if (BetaCustomToolCallOutputResourceVariant2 is { } __value1) { - betaCustomToolCallOutputResourceVariant2?.Invoke(BetaCustomToolCallOutputResourceVariant2!); + betaCustomToolCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallResource.g.cs index 4b511ce72..9c6a107e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCustomToolCallResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaCustomToolCallResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2 PickBetaCustomToolCallResourceVariant2() => IsBetaCustomToolCallResourceVariant2 - ? BetaCustomToolCallResourceVariant2! + public global::tryAGI.OpenAI.BetaCustomToolCallResourceVariant2 PickBetaCustomToolCallResourceVariant2() => BetaCustomToolCallResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaCustomToolCallResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsCustomToolCall && customToolCall != null) + if (CustomToolCall is { } __value0 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value0); } - else if (IsBetaCustomToolCallResourceVariant2 && betaCustomToolCallResourceVariant2 != null) + else if (BetaCustomToolCallResourceVariant2 is { } __value1 && betaCustomToolCallResourceVariant2 != null) { - return betaCustomToolCallResourceVariant2(BetaCustomToolCallResourceVariant2!); + return betaCustomToolCallResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsCustomToolCall) + if (CustomToolCall is { } __value0) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value0); } - else if (IsBetaCustomToolCallResourceVariant2) + else if (BetaCustomToolCallResourceVariant2 is { } __value1) { - betaCustomToolCallResourceVariant2?.Invoke(BetaCustomToolCallResourceVariant2!); + betaCustomToolCallResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsCustomToolCall) + if (CustomToolCall is { } __value0) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value0); } - else if (IsBetaCustomToolCallResourceVariant2) + else if (BetaCustomToolCallResourceVariant2 is { } __value1) { - betaCustomToolCallResourceVariant2?.Invoke(BetaCustomToolCallResourceVariant2!); + betaCustomToolCallResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.Json.g.cs similarity index 87% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.Json.g.cs index 5f7bff07f..a66850764 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class CompoundFilterFilterVariant2 + public sealed partial class BetaDeleteResponseResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.CompoundFilterFilterVariant2? FromJson( + public static global::tryAGI.OpenAI.BetaDeleteResponseResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.CompoundFilterFilterVariant2), - jsonSerializerContext) as global::tryAGI.OpenAI.CompoundFilterFilterVariant2; + typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.BetaDeleteResponseResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::tryAGI.OpenAI.CompoundFilterFilterVariant2? FromJson( + public static global::tryAGI.OpenAI.BetaDeleteResponseResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::tryAGI.OpenAI.CompoundFilterFilterVariant2? FromJson( + public static global::tryAGI.OpenAI.BetaDeleteResponseResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::tryAGI.OpenAI.CompoundFilterFilterVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.CompoundFilterFilterVariant2; + typeof(global::tryAGI.OpenAI.BetaDeleteResponseResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaDeleteResponseResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.g.cs new file mode 100644 index 000000000..f33511c8b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponse.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class BetaDeleteResponseResponse + { + /// + /// Default Value: response.deleted + /// + /// global::tryAGI.OpenAI.BetaDeleteResponseResponseObject.ResponseDeleted + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaDeleteResponseResponseObjectJsonConverter))] + public global::tryAGI.OpenAI.BetaDeleteResponseResponseObject Object { get; set; } = global::tryAGI.OpenAI.BetaDeleteResponseResponseObject.ResponseDeleted; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Default Value: response.deleted + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BetaDeleteResponseResponse( + bool deleted, + string id, + global::tryAGI.OpenAI.BetaDeleteResponseResponseObject @object = global::tryAGI.OpenAI.BetaDeleteResponseResponseObject.ResponseDeleted) + { + this.Object = @object; + this.Deleted = deleted; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public BetaDeleteResponseResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponseObject.g.cs new file mode 100644 index 000000000..2c3a65d1f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaDeleteResponseResponseObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: response.deleted + /// + public enum BetaDeleteResponseResponseObject + { + /// + /// + /// + ResponseDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class BetaDeleteResponseResponseObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this BetaDeleteResponseResponseObject value) + { + return value switch + { + BetaDeleteResponseResponseObject.ResponseDeleted => "response.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static BetaDeleteResponseResponseObject? ToEnum(string value) + { + return value switch + { + "response.deleted" => BetaDeleteResponseResponseObject.ResponseDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFileCitationBody.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFileCitationBody.g.cs index 6bea57aaa..8f6e53862 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFileCitationBody.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFileCitationBody.g.cs @@ -25,7 +25,7 @@ public sealed partial class BetaFileCitationBody public required string FileId { get; set; } /// - /// The index of the file in the list of files. + /// The index in the output text at which to insert the file citation. /// [global::System.Text.Json.Serialization.JsonPropertyName("index")] [global::System.Text.Json.Serialization.JsonRequired] @@ -51,7 +51,7 @@ public sealed partial class BetaFileCitationBody /// The ID of the file. /// /// - /// The index of the file in the list of files. + /// The index in the output text at which to insert the file citation. /// /// /// The filename of the file cited. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFilters.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFilters.g.cs index e23d8fb5b..1098dfe3d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFilters.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFilters.g.cs @@ -42,8 +42,8 @@ public bool TryPickComparisonFilter( /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilter PickComparisonFilter() => IsComparisonFilter - ? ComparisonFilter! + public global::tryAGI.OpenAI.BetaComparisonFilter PickComparisonFilter() => ComparisonFilter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComparisonFilter' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCompoundFilter( /// /// /// - public global::tryAGI.OpenAI.BetaCompoundFilter PickCompoundFilter() => IsCompoundFilter - ? CompoundFilter! + public global::tryAGI.OpenAI.BetaCompoundFilter PickCompoundFilter() => CompoundFilter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CompoundFilter' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsComparisonFilter && comparisonFilter != null) + if (ComparisonFilter is { } __value0 && comparisonFilter != null) { - return comparisonFilter(ComparisonFilter!); + return comparisonFilter(__value0); } - else if (IsCompoundFilter && compoundFilter != null) + else if (CompoundFilter is { } __value1 && compoundFilter != null) { - return compoundFilter(CompoundFilter!); + return compoundFilter(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsCompoundFilter) + else if (CompoundFilter is { } __value1) { - compoundFilter?.Invoke(CompoundFilter!); + compoundFilter?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsCompoundFilter) + else if (CompoundFilter is { } __value1) { - compoundFilter?.Invoke(CompoundFilter!); + compoundFilter?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionAndCustomToolCallOutput.g.cs index abc4c572e..9407f4cdc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionAndCustomToolCallOutput.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionShellCallOutputOutcomeParam.g.cs index bc803edeb..ed0851533 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionShellCallOutputOutcomeParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickTimeout( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam PickTimeout() => IsTimeout - ? Timeout! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcomeParam PickTimeout() => Timeout is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Timeout' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickExit( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam PickExit() => IsExit - ? Exit! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcomeParam PickExit() => Exit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Exit' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsTimeout && timeout != null) + if (Timeout is { } __value0 && timeout != null) { - return timeout(Timeout!); + return timeout(__value0); } - else if (IsExit && exit != null) + else if (Exit is { } __value1 && exit != null) { - return exit(Exit!); + return exit(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallOutputResource.g.cs index 1933810b3..436c9f4f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickFunctionToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutput PickFunctionToolCallOutput() => IsFunctionToolCallOutput - ? FunctionToolCallOutput! + public global::tryAGI.OpenAI.BetaFunctionToolCallOutput PickFunctionToolCallOutput() => FunctionToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallOutput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaFunctionToolCallOutputResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2 PickBetaFunctionToolCallOutputResourceVariant2() => IsBetaFunctionToolCallOutputResourceVariant2 - ? BetaFunctionToolCallOutputResourceVariant2! + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResourceVariant2 PickBetaFunctionToolCallOutputResourceVariant2() => BetaFunctionToolCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaFunctionToolCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsFunctionToolCallOutput && functionToolCallOutput != null) + if (FunctionToolCallOutput is { } __value0 && functionToolCallOutput != null) { - return functionToolCallOutput(FunctionToolCallOutput!); + return functionToolCallOutput(__value0); } - else if (IsBetaFunctionToolCallOutputResourceVariant2 && betaFunctionToolCallOutputResourceVariant2 != null) + else if (BetaFunctionToolCallOutputResourceVariant2 is { } __value1 && betaFunctionToolCallOutputResourceVariant2 != null) { - return betaFunctionToolCallOutputResourceVariant2(BetaFunctionToolCallOutputResourceVariant2!); + return betaFunctionToolCallOutputResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsFunctionToolCallOutput) + if (FunctionToolCallOutput is { } __value0) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value0); } - else if (IsBetaFunctionToolCallOutputResourceVariant2) + else if (BetaFunctionToolCallOutputResourceVariant2 is { } __value1) { - betaFunctionToolCallOutputResourceVariant2?.Invoke(BetaFunctionToolCallOutputResourceVariant2!); + betaFunctionToolCallOutputResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsFunctionToolCallOutput) + if (FunctionToolCallOutput is { } __value0) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value0); } - else if (IsBetaFunctionToolCallOutputResourceVariant2) + else if (BetaFunctionToolCallOutputResourceVariant2 is { } __value1) { - betaFunctionToolCallOutputResourceVariant2?.Invoke(BetaFunctionToolCallOutputResourceVariant2!); + betaFunctionToolCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallResource.g.cs index f297c4681..808ad65f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaFunctionToolCallResource.g.cs @@ -43,8 +43,8 @@ public bool TryPickFunctionToolCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionToolCall() => IsFunctionToolCall - ? FunctionToolCall! + public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionToolCall() => FunctionToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCall' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickBetaFunctionToolCallResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2 PickBetaFunctionToolCallResourceVariant2() => IsBetaFunctionToolCallResourceVariant2 - ? BetaFunctionToolCallResourceVariant2! + public global::tryAGI.OpenAI.BetaFunctionToolCallResourceVariant2 PickBetaFunctionToolCallResourceVariant2() => BetaFunctionToolCallResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaFunctionToolCallResourceVariant2' but the value was {ToString()}."); /// /// @@ -178,13 +178,13 @@ public bool Validate() Validate(); } - if (IsFunctionToolCall && functionToolCall != null) + if (FunctionToolCall is { } __value0 && functionToolCall != null) { - return functionToolCall(FunctionToolCall!); + return functionToolCall(__value0); } - else if (IsBetaFunctionToolCallResourceVariant2 && betaFunctionToolCallResourceVariant2 != null) + else if (BetaFunctionToolCallResourceVariant2 is { } __value1 && betaFunctionToolCallResourceVariant2 != null) { - return betaFunctionToolCallResourceVariant2(BetaFunctionToolCallResourceVariant2!); + return betaFunctionToolCallResourceVariant2(__value1); } return default(TResult); @@ -204,13 +204,13 @@ public void Match( Validate(); } - if (IsFunctionToolCall) + if (FunctionToolCall is { } __value0) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value0); } - else if (IsBetaFunctionToolCallResourceVariant2) + else if (BetaFunctionToolCallResourceVariant2 is { } __value1) { - betaFunctionToolCallResourceVariant2?.Invoke(BetaFunctionToolCallResourceVariant2!); + betaFunctionToolCallResourceVariant2?.Invoke(__value1); } } @@ -227,13 +227,13 @@ public void Switch( Validate(); } - if (IsFunctionToolCall) + if (FunctionToolCall is { } __value0) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value0); } - else if (IsBetaFunctionToolCallResourceVariant2) + else if (BetaFunctionToolCallResourceVariant2 is { } __value1) { - betaFunctionToolCallResourceVariant2?.Invoke(BetaFunctionToolCallResourceVariant2!); + betaFunctionToolCallResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputContent.g.cs index 643cebd45..fce329251 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputContent.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputItem.g.cs index 4fa4530ba..c138af7fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputItem.g.cs @@ -46,8 +46,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.BetaEasyInputMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.BetaEasyInputMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickItem( /// /// /// - public global::tryAGI.OpenAI.BetaItem PickItem() => IsItem - ? Item!.Value + public global::tryAGI.OpenAI.BetaItem PickItem() => Item is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Item' but the value was {ToString()}."); /// @@ -122,8 +122,8 @@ public bool TryPickCompactionTrigger( /// /// /// - public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam PickCompactionTrigger() => IsCompactionTrigger - ? CompactionTrigger! + public global::tryAGI.OpenAI.BetaCompactionTriggerItemParam PickCompactionTrigger() => CompactionTrigger is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CompactionTrigger' but the value was {ToString()}."); /// @@ -159,8 +159,8 @@ public bool TryPickItemReference( /// /// /// - public global::tryAGI.OpenAI.BetaItemReferenceParam PickItemReference() => IsItemReference - ? ItemReference! + public global::tryAGI.OpenAI.BetaItemReferenceParam PickItemReference() => ItemReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ItemReference' but the value was {ToString()}."); /// @@ -196,8 +196,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.BetaProgramItemParam PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.BetaProgramItemParam PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -233,8 +233,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutputItemParam PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.BetaProgramOutputItemParam PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// /// @@ -443,29 +443,29 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsItem && item != null) + else if (Item is { } __value1 && item != null) { - return item(Item!); + return item(__value1); } - else if (IsCompactionTrigger && compactionTrigger != null) + else if (CompactionTrigger is { } __value2 && compactionTrigger != null) { - return compactionTrigger(CompactionTrigger!); + return compactionTrigger(__value2); } - else if (IsItemReference && itemReference != null) + else if (ItemReference is { } __value3 && itemReference != null) { - return itemReference(ItemReference!); + return itemReference(__value3); } - else if (IsProgram && program != null) + else if (Program is { } __value4 && program != null) { - return program(Program!); + return program(__value4); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value5 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value5); } return default(TResult); @@ -493,29 +493,29 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsItem) + else if (Item is { } __value1) { - item?.Invoke(Item!); + item?.Invoke(__value1); } - else if (IsCompactionTrigger) + else if (CompactionTrigger is { } __value2) { - compactionTrigger?.Invoke(CompactionTrigger!); + compactionTrigger?.Invoke(__value2); } - else if (IsItemReference) + else if (ItemReference is { } __value3) { - itemReference?.Invoke(ItemReference!); + itemReference?.Invoke(__value3); } - else if (IsProgram) + else if (Program is { } __value4) { - program?.Invoke(Program!); + program?.Invoke(__value4); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value5) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value5); } } @@ -536,29 +536,29 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsItem) + else if (Item is { } __value1) { - item?.Invoke(Item!); + item?.Invoke(__value1); } - else if (IsCompactionTrigger) + else if (CompactionTrigger is { } __value2) { - compactionTrigger?.Invoke(CompactionTrigger!); + compactionTrigger?.Invoke(__value2); } - else if (IsItemReference) + else if (ItemReference is { } __value3) { - itemReference?.Invoke(ItemReference!); + itemReference?.Invoke(__value3); } - else if (IsProgram) + else if (Program is { } __value4) { - program?.Invoke(Program!); + program?.Invoke(__value4); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value5) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value5); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputMessageResource.g.cs index d8cc929ca..4a89543f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputMessageResource.g.cs @@ -44,8 +44,8 @@ public bool TryPickInputMessage( /// /// /// - public global::tryAGI.OpenAI.BetaInputMessage PickInputMessage() => IsInputMessage - ? InputMessage! + public global::tryAGI.OpenAI.BetaInputMessage PickInputMessage() => InputMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputMessage' but the value was {ToString()}."); /// @@ -81,8 +81,8 @@ public bool TryPickBetaInputMessageResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2 PickBetaInputMessageResourceVariant2() => IsBetaInputMessageResourceVariant2 - ? BetaInputMessageResourceVariant2! + public global::tryAGI.OpenAI.BetaInputMessageResourceVariant2 PickBetaInputMessageResourceVariant2() => BetaInputMessageResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaInputMessageResourceVariant2' but the value was {ToString()}."); /// /// @@ -179,13 +179,13 @@ public bool Validate() Validate(); } - if (IsInputMessage && inputMessage != null) + if (InputMessage is { } __value0 && inputMessage != null) { - return inputMessage(InputMessage!); + return inputMessage(__value0); } - else if (IsBetaInputMessageResourceVariant2 && betaInputMessageResourceVariant2 != null) + else if (BetaInputMessageResourceVariant2 is { } __value1 && betaInputMessageResourceVariant2 != null) { - return betaInputMessageResourceVariant2(BetaInputMessageResourceVariant2!); + return betaInputMessageResourceVariant2(__value1); } return default(TResult); @@ -205,13 +205,13 @@ public void Match( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsBetaInputMessageResourceVariant2) + else if (BetaInputMessageResourceVariant2 is { } __value1) { - betaInputMessageResourceVariant2?.Invoke(BetaInputMessageResourceVariant2!); + betaInputMessageResourceVariant2?.Invoke(__value1); } } @@ -228,13 +228,13 @@ public void Switch( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsBetaInputMessageResourceVariant2) + else if (BetaInputMessageResourceVariant2 is { } __value1) { - betaInputMessageResourceVariant2?.Invoke(BetaInputMessageResourceVariant2!); + betaInputMessageResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputParam.g.cs index d869001bf..762b6c7f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaInputParam.g.cs @@ -49,8 +49,8 @@ public bool TryPickTextInput( /// /// /// - public string PickTextInput() => IsTextInput - ? TextInput! + public string PickTextInput() => TextInput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextInput' but the value was {ToString()}."); /// @@ -87,8 +87,8 @@ public bool TryPickInputItemList( /// /// /// - public global::System.Collections.Generic.IList PickInputItemList() => IsInputItemList - ? InputItemList! + public global::System.Collections.Generic.IList PickInputItemList() => InputItemList is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputItemList' but the value was {ToString()}."); /// /// @@ -162,13 +162,13 @@ public bool Validate() Validate(); } - if (IsTextInput && textInput != null) + if (TextInput is { } __value0 && textInput != null) { - return textInput(TextInput!); + return textInput(__value0); } - else if (IsInputItemList && inputItemList != null) + else if (InputItemList is { } __value1 && inputItemList != null) { - return inputItemList(InputItemList!); + return inputItemList(__value1); } return default(TResult); @@ -188,13 +188,13 @@ public void Match( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsInputItemList) + else if (InputItemList is { } __value1) { - inputItemList?.Invoke(InputItemList!); + inputItemList?.Invoke(__value1); } } @@ -211,13 +211,13 @@ public void Switch( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsInputItemList) + else if (InputItemList is { } __value1) { - inputItemList?.Invoke(InputItemList!); + inputItemList?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItem.g.cs index 8e9f1bcfd..3b78dbbfe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItem.g.cs @@ -49,8 +49,8 @@ public bool TryPickMessage1( /// /// /// - public global::tryAGI.OpenAI.BetaInputMessage PickMessage1() => IsMessage1 - ? Message1! + public global::tryAGI.OpenAI.BetaInputMessage PickMessage1() => Message1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message1' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickMessage2( /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage PickMessage2() => IsMessage2 - ? Message2! + public global::tryAGI.OpenAI.BetaOutputMessage PickMessage2() => Message2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message2' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -199,8 +199,8 @@ public bool TryPickComputerCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam PickComputerCallOutput() => IsComputerCallOutput - ? ComputerCallOutput! + public global::tryAGI.OpenAI.BetaComputerCallOutputItemParam PickComputerCallOutput() => ComputerCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCallOutput' but the value was {ToString()}."); /// @@ -237,8 +237,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -275,8 +275,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -312,8 +312,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -349,8 +349,8 @@ public bool TryPickAgentMessage( /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessageItemParam PickAgentMessage() => IsAgentMessage - ? AgentMessage! + public global::tryAGI.OpenAI.BetaAgentMessageItemParam PickAgentMessage() => AgentMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessage' but the value was {ToString()}."); /// @@ -386,8 +386,8 @@ public bool TryPickMultiAgentCall( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam PickMultiAgentCall() => IsMultiAgentCall - ? MultiAgentCall! + public global::tryAGI.OpenAI.BetaMultiAgentCallItemParam PickMultiAgentCall() => MultiAgentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCall' but the value was {ToString()}."); /// @@ -423,8 +423,8 @@ public bool TryPickMultiAgentCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam PickMultiAgentCallOutput() => IsMultiAgentCallOutput - ? MultiAgentCallOutput! + public global::tryAGI.OpenAI.BetaMultiAgentCallOutputItemParam PickMultiAgentCallOutput() => MultiAgentCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCallOutput' but the value was {ToString()}."); /// @@ -460,8 +460,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCallItemParam PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.BetaToolSearchCallItemParam PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -497,8 +497,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.BetaToolSearchOutputItemParam PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -534,8 +534,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.BetaAdditionalToolsItemParam PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -573,8 +573,8 @@ public bool TryPickConfigurationUpdate( /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam PickConfigurationUpdate() => IsConfigurationUpdate - ? ConfigurationUpdate! + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdateItemParam PickConfigurationUpdate() => ConfigurationUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConfigurationUpdate' but the value was {ToString()}."); /// @@ -613,8 +613,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -650,8 +650,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.BetaCompactionSummaryItemParam PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -687,8 +687,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -724,8 +724,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -761,8 +761,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -798,8 +798,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -835,8 +835,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.BetaFunctionShellCallItemParam PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -872,8 +872,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputItemParam PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -909,8 +909,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.BetaApplyPatchToolCallItemParam PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -946,8 +946,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutputItemParam PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -983,8 +983,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -1020,8 +1020,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -1057,8 +1057,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponse PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.BetaMCPApprovalResponse PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1094,8 +1094,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1131,8 +1131,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.BetaCustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// @@ -1168,8 +1168,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// /// @@ -2081,129 +2081,129 @@ public bool Validate() Validate(); } - if (IsMessage1 && message1 != null) + if (Message1 is { } __value0 && message1 != null) { - return message1(Message1!); + return message1(__value0); } - else if (IsMessage2 && message2 != null) + else if (Message2 is { } __value1 && message2 != null) { - return message2(Message2!); + return message2(__value1); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value2 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value2); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value3 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value3); } - else if (IsComputerCallOutput && computerCallOutput != null) + else if (ComputerCallOutput is { } __value4 && computerCallOutput != null) { - return computerCallOutput(ComputerCallOutput!); + return computerCallOutput(__value4); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value5 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value5); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value6 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value6); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value7 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value7); } - else if (IsAgentMessage && agentMessage != null) + else if (AgentMessage is { } __value8 && agentMessage != null) { - return agentMessage(AgentMessage!); + return agentMessage(__value8); } - else if (IsMultiAgentCall && multiAgentCall != null) + else if (MultiAgentCall is { } __value9 && multiAgentCall != null) { - return multiAgentCall(MultiAgentCall!); + return multiAgentCall(__value9); } - else if (IsMultiAgentCallOutput && multiAgentCallOutput != null) + else if (MultiAgentCallOutput is { } __value10 && multiAgentCallOutput != null) { - return multiAgentCallOutput(MultiAgentCallOutput!); + return multiAgentCallOutput(__value10); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value11 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value11); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value12 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value12); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value13 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value13); } - else if (IsConfigurationUpdate && configurationUpdate != null) + else if (ConfigurationUpdate is { } __value14 && configurationUpdate != null) { - return configurationUpdate(ConfigurationUpdate!); + return configurationUpdate(__value14); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value15 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value15); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value16 && compaction != null) { - return compaction(Compaction!); + return compaction(__value16); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value17 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value17); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value18 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value18); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value19 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value19); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value20 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value20); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value21 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value21); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value22 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value22); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value23 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value23); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value24 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value24); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value25 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value25); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value26 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value26); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value27 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value27); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value28 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value28); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value29 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value29); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value30 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value30); } return default(TResult); @@ -2281,129 +2281,129 @@ public void Match( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value4) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value6) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value6); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value7) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value7); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value8) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value8); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value9) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value9); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value10) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value10); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value11) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value11); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value12) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value12); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value13) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value13); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value14) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value14); } - else if (IsReasoning) + else if (Reasoning is { } __value15) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value15); } - else if (IsCompaction) + else if (Compaction is { } __value16) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value16); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value17) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value17); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value18) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value18); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value19) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value19); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value20) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value20); } - else if (IsShellCall) + else if (ShellCall is { } __value21) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value21); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value22) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value22); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value23) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value23); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value24) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value24); } - else if (IsMcpListTools) + else if (McpListTools is { } __value25) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value25); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value26) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value26); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value27) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value27); } - else if (IsMcpCall) + else if (McpCall is { } __value28) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value28); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value29) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value29); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value30) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value30); } } @@ -2449,129 +2449,129 @@ public void Switch( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value4) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value6) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value6); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value7) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value7); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value8) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value8); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value9) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value9); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value10) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value10); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value11) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value11); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value12) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value12); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value13) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value13); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value14) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value14); } - else if (IsReasoning) + else if (Reasoning is { } __value15) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value15); } - else if (IsCompaction) + else if (Compaction is { } __value16) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value16); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value17) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value17); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value18) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value18); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value19) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value19); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value20) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value20); } - else if (IsShellCall) + else if (ShellCall is { } __value21) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value21); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value22) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value22); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value23) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value23); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value24) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value24); } - else if (IsMcpListTools) + else if (McpListTools is { } __value25) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value25); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value26) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value26); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value27) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value27); } - else if (IsMcpCall) + else if (McpCall is { } __value28) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value28); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value29) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value29); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value30) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value30); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemField.g.cs index 8efd98e49..8266442e9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemField.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemField.g.cs @@ -42,8 +42,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.BetaMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.BetaMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.BetaProgram PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.BetaProgram PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.BetaProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -154,8 +154,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -191,8 +191,8 @@ public bool TryPickMultiAgentCall( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall PickMultiAgentCall() => IsMultiAgentCall - ? MultiAgentCall! + public global::tryAGI.OpenAI.BetaMultiAgentCall PickMultiAgentCall() => MultiAgentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCall' but the value was {ToString()}."); /// @@ -228,8 +228,8 @@ public bool TryPickMultiAgentCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput PickMultiAgentCallOutput() => IsMultiAgentCallOutput - ? MultiAgentCallOutput! + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput PickMultiAgentCallOutput() => MultiAgentCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCallOutput' but the value was {ToString()}."); /// @@ -265,8 +265,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.BetaToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -302,8 +302,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.BetaToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -339,8 +339,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.BetaAdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -376,8 +376,8 @@ public bool TryPickAgentMessage( /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage PickAgentMessage() => IsAgentMessage - ? AgentMessage! + public global::tryAGI.OpenAI.BetaAgentMessage PickAgentMessage() => AgentMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessage' but the value was {ToString()}."); /// @@ -413,8 +413,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutput PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.BetaFunctionToolCallOutput PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -451,8 +451,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -489,8 +489,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -526,8 +526,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -564,8 +564,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -601,8 +601,8 @@ public bool TryPickComputerToolCallOutputResource( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource PickComputerToolCallOutputResource() => IsComputerToolCallOutputResource - ? ComputerToolCallOutputResource!.Value + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource PickComputerToolCallOutputResource() => ComputerToolCallOutputResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutputResource' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.BetaCompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.BetaFunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.BetaApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1085,8 +1085,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1122,8 +1122,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -1159,8 +1159,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.BetaCustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// /// @@ -2069,129 +2069,129 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsProgram && program != null) + else if (Program is { } __value1 && program != null) { - return program(Program!); + return program(__value1); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value2 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value2); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value3 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value3); } - else if (IsMultiAgentCall && multiAgentCall != null) + else if (MultiAgentCall is { } __value4 && multiAgentCall != null) { - return multiAgentCall(MultiAgentCall!); + return multiAgentCall(__value4); } - else if (IsMultiAgentCallOutput && multiAgentCallOutput != null) + else if (MultiAgentCallOutput is { } __value5 && multiAgentCallOutput != null) { - return multiAgentCallOutput(MultiAgentCallOutput!); + return multiAgentCallOutput(__value5); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value6 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value6); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value7 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value7); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value8 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value8); } - else if (IsAgentMessage && agentMessage != null) + else if (AgentMessage is { } __value9 && agentMessage != null) { - return agentMessage(AgentMessage!); + return agentMessage(__value9); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value10 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value10); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value11 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value11); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value12 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value12); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value13 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value13); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value14 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value14); } - else if (IsComputerToolCallOutputResource && computerToolCallOutputResource != null) + else if (ComputerToolCallOutputResource is { } __value15 && computerToolCallOutputResource != null) { - return computerToolCallOutputResource(ComputerToolCallOutputResource!); + return computerToolCallOutputResource(__value15); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value16 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value16); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value17 && compaction != null) { - return compaction(Compaction!); + return compaction(__value17); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value18 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value18); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value19 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value19); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value20 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value20); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value21 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value21); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value22 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value22); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value23 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value23); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value24 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value24); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value25 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value25); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value26 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value26); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value27 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value27); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value28 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value28); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value29 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value29); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value30 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value30); } return default(TResult); @@ -2269,129 +2269,129 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value2) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value4) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value4); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value5) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value5); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value6) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value6); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value7) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value7); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value8) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value8); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value9) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value9); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value10) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value10); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value11) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value11); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value12) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value12); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value13) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value13); } - else if (IsComputerCall) + else if (ComputerCall is { } __value14) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value14); } - else if (IsComputerToolCallOutputResource) + else if (ComputerToolCallOutputResource is { } __value15) { - computerToolCallOutputResource?.Invoke(ComputerToolCallOutputResource!); + computerToolCallOutputResource?.Invoke(__value15); } - else if (IsReasoning) + else if (Reasoning is { } __value16) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value16); } - else if (IsCompaction) + else if (Compaction is { } __value17) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value17); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value18) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value18); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value19) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value19); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value20) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value20); } - else if (IsShellCall) + else if (ShellCall is { } __value21) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value21); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value22) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value22); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value23) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value23); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value24) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value24); } - else if (IsMcpListTools) + else if (McpListTools is { } __value25) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value25); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value26) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value26); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value27) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value27); } - else if (IsMcpCall) + else if (McpCall is { } __value28) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value28); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value29) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value29); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value30) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value30); } } @@ -2437,129 +2437,129 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value2) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value4) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value4); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value5) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value5); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value6) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value6); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value7) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value7); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value8) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value8); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value9) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value9); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value10) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value10); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value11) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value11); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value12) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value12); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value13) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value13); } - else if (IsComputerCall) + else if (ComputerCall is { } __value14) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value14); } - else if (IsComputerToolCallOutputResource) + else if (ComputerToolCallOutputResource is { } __value15) { - computerToolCallOutputResource?.Invoke(ComputerToolCallOutputResource!); + computerToolCallOutputResource?.Invoke(__value15); } - else if (IsReasoning) + else if (Reasoning is { } __value16) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value16); } - else if (IsCompaction) + else if (Compaction is { } __value17) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value17); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value18) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value18); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value19) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value19); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value20) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value20); } - else if (IsShellCall) + else if (ShellCall is { } __value21) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value21); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value22) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value22); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value23) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value23); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value24) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value24); } - else if (IsMcpListTools) + else if (McpListTools is { } __value25) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value25); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value26) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value26); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value27) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value27); } - else if (IsMcpCall) + else if (McpCall is { } __value28) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value28); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value29) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value29); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value30) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value30); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemResource.g.cs index 738ed3712..a930f5099 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaItemResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickInputMessage( /// /// /// - public global::tryAGI.OpenAI.BetaInputMessageResource PickInputMessage() => IsInputMessage - ? InputMessage!.Value + public global::tryAGI.OpenAI.BetaInputMessageResource PickInputMessage() => InputMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputMessage' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.BetaOutputMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -117,8 +117,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -155,8 +155,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -192,8 +192,8 @@ public bool TryPickComputerToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource PickComputerToolCallOutput() => IsComputerToolCallOutput - ? ComputerToolCallOutput!.Value + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource PickComputerToolCallOutput() => ComputerToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutput' but the value was {ToString()}."); /// @@ -230,8 +230,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -267,8 +267,8 @@ public bool TryPickFunctionToolCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallResource PickFunctionToolCall() => IsFunctionToolCall - ? FunctionToolCall!.Value + public global::tryAGI.OpenAI.BetaFunctionToolCallResource PickFunctionToolCall() => FunctionToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCall' but the value was {ToString()}."); /// @@ -304,8 +304,8 @@ public bool TryPickFunctionToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource PickFunctionToolCallOutput() => IsFunctionToolCallOutput - ? FunctionToolCallOutput!.Value + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource PickFunctionToolCallOutput() => FunctionToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallOutput' but the value was {ToString()}."); /// @@ -341,8 +341,8 @@ public bool TryPickAgentMessage( /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage PickAgentMessage() => IsAgentMessage - ? AgentMessage! + public global::tryAGI.OpenAI.BetaAgentMessage PickAgentMessage() => AgentMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessage' but the value was {ToString()}."); /// @@ -378,8 +378,8 @@ public bool TryPickMultiAgentCall( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall PickMultiAgentCall() => IsMultiAgentCall - ? MultiAgentCall! + public global::tryAGI.OpenAI.BetaMultiAgentCall PickMultiAgentCall() => MultiAgentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCall' but the value was {ToString()}."); /// @@ -415,8 +415,8 @@ public bool TryPickMultiAgentCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput PickMultiAgentCallOutput() => IsMultiAgentCallOutput - ? MultiAgentCallOutput! + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput PickMultiAgentCallOutput() => MultiAgentCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCallOutput' but the value was {ToString()}."); /// @@ -452,8 +452,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.BetaToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -489,8 +489,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.BetaToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -526,8 +526,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.BetaAdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -564,8 +564,8 @@ public bool TryPickConfigurationUpdate( /// /// /// - public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate PickConfigurationUpdate() => IsConfigurationUpdate - ? ConfigurationUpdate! + public global::tryAGI.OpenAI.BetaResponseConfigurationUpdate PickConfigurationUpdate() => ConfigurationUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConfigurationUpdate' but the value was {ToString()}."); /// @@ -604,8 +604,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.BetaProgram PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.BetaProgram PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.BetaProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.BetaCompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.BetaFunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.BetaApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -1085,8 +1085,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -1122,8 +1122,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1159,8 +1159,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1196,8 +1196,8 @@ public bool TryPickResponseCustomToolCallItem( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallResource PickResponseCustomToolCallItem() => IsResponseCustomToolCallItem - ? ResponseCustomToolCallItem!.Value + public global::tryAGI.OpenAI.BetaCustomToolCallResource PickResponseCustomToolCallItem() => ResponseCustomToolCallItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallItem' but the value was {ToString()}."); /// @@ -1233,8 +1233,8 @@ public bool TryPickResponseCustomToolCallOutputItem( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => IsResponseCustomToolCallOutputItem - ? ResponseCustomToolCallOutputItem!.Value + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => ResponseCustomToolCallOutputItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallOutputItem' but the value was {ToString()}."); /// /// @@ -2199,137 +2199,137 @@ public bool Validate() Validate(); } - if (IsInputMessage && inputMessage != null) + if (InputMessage is { } __value0 && inputMessage != null) { - return inputMessage(InputMessage!); + return inputMessage(__value0); } - else if (IsMessage && message != null) + else if (Message is { } __value1 && message != null) { - return message(Message!); + return message(__value1); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value2 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value2); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value3 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value3); } - else if (IsComputerToolCallOutput && computerToolCallOutput != null) + else if (ComputerToolCallOutput is { } __value4 && computerToolCallOutput != null) { - return computerToolCallOutput(ComputerToolCallOutput!); + return computerToolCallOutput(__value4); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value5 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value5); } - else if (IsFunctionToolCall && functionToolCall != null) + else if (FunctionToolCall is { } __value6 && functionToolCall != null) { - return functionToolCall(FunctionToolCall!); + return functionToolCall(__value6); } - else if (IsFunctionToolCallOutput && functionToolCallOutput != null) + else if (FunctionToolCallOutput is { } __value7 && functionToolCallOutput != null) { - return functionToolCallOutput(FunctionToolCallOutput!); + return functionToolCallOutput(__value7); } - else if (IsAgentMessage && agentMessage != null) + else if (AgentMessage is { } __value8 && agentMessage != null) { - return agentMessage(AgentMessage!); + return agentMessage(__value8); } - else if (IsMultiAgentCall && multiAgentCall != null) + else if (MultiAgentCall is { } __value9 && multiAgentCall != null) { - return multiAgentCall(MultiAgentCall!); + return multiAgentCall(__value9); } - else if (IsMultiAgentCallOutput && multiAgentCallOutput != null) + else if (MultiAgentCallOutput is { } __value10 && multiAgentCallOutput != null) { - return multiAgentCallOutput(MultiAgentCallOutput!); + return multiAgentCallOutput(__value10); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value11 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value11); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value12 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value12); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value13 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value13); } - else if (IsConfigurationUpdate && configurationUpdate != null) + else if (ConfigurationUpdate is { } __value14 && configurationUpdate != null) { - return configurationUpdate(ConfigurationUpdate!); + return configurationUpdate(__value14); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value15 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value15); } - else if (IsProgram && program != null) + else if (Program is { } __value16 && program != null) { - return program(Program!); + return program(__value16); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value17 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value17); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value18 && compaction != null) { - return compaction(Compaction!); + return compaction(__value18); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value19 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value19); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value20 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value20); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value21 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value21); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value22 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value22); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value23 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value23); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value24 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value24); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value25 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value25); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value26 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value26); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value27 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value27); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value28 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value28); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value29 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value29); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value30 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value30); } - else if (IsResponseCustomToolCallItem && responseCustomToolCallItem != null) + else if (ResponseCustomToolCallItem is { } __value31 && responseCustomToolCallItem != null) { - return responseCustomToolCallItem(ResponseCustomToolCallItem!); + return responseCustomToolCallItem(__value31); } - else if (IsResponseCustomToolCallOutputItem && responseCustomToolCallOutputItem != null) + else if (ResponseCustomToolCallOutputItem is { } __value32 && responseCustomToolCallOutputItem != null) { - return responseCustomToolCallOutputItem(ResponseCustomToolCallOutputItem!); + return responseCustomToolCallOutputItem(__value32); } return default(TResult); @@ -2411,137 +2411,137 @@ public void Match( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsMessage) + else if (Message is { } __value1) { - message?.Invoke(Message!); + message?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerToolCallOutput) + else if (ComputerToolCallOutput is { } __value4) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionToolCall) + else if (FunctionToolCall is { } __value6) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value6); } - else if (IsFunctionToolCallOutput) + else if (FunctionToolCallOutput is { } __value7) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value7); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value8) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value8); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value9) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value9); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value10) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value10); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value11) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value11); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value12) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value12); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value13) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value13); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value14) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value14); } - else if (IsReasoning) + else if (Reasoning is { } __value15) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value15); } - else if (IsProgram) + else if (Program is { } __value16) { - program?.Invoke(Program!); + program?.Invoke(__value16); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value17) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value17); } - else if (IsCompaction) + else if (Compaction is { } __value18) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value18); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value19) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value19); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value20) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value20); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value21) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value21); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value22) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value22); } - else if (IsShellCall) + else if (ShellCall is { } __value23) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value23); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value24) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value24); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value25) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value25); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value26) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value26); } - else if (IsMcpListTools) + else if (McpListTools is { } __value27) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value27); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value28) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value28); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value29) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value29); } - else if (IsMcpCall) + else if (McpCall is { } __value30) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value30); } - else if (IsResponseCustomToolCallItem) + else if (ResponseCustomToolCallItem is { } __value31) { - responseCustomToolCallItem?.Invoke(ResponseCustomToolCallItem!); + responseCustomToolCallItem?.Invoke(__value31); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value32) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value32); } } @@ -2589,137 +2589,137 @@ public void Switch( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsMessage) + else if (Message is { } __value1) { - message?.Invoke(Message!); + message?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerToolCallOutput) + else if (ComputerToolCallOutput is { } __value4) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionToolCall) + else if (FunctionToolCall is { } __value6) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value6); } - else if (IsFunctionToolCallOutput) + else if (FunctionToolCallOutput is { } __value7) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value7); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value8) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value8); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value9) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value9); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value10) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value10); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value11) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value11); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value12) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value12); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value13) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value13); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value14) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value14); } - else if (IsReasoning) + else if (Reasoning is { } __value15) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value15); } - else if (IsProgram) + else if (Program is { } __value16) { - program?.Invoke(Program!); + program?.Invoke(__value16); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value17) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value17); } - else if (IsCompaction) + else if (Compaction is { } __value18) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value18); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value19) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value19); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value20) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value20); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value21) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value21); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value22) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value22); } - else if (IsShellCall) + else if (ShellCall is { } __value23) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value23); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value24) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value24); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value25) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value25); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value26) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value26); } - else if (IsMcpListTools) + else if (McpListTools is { } __value27) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value27); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value28) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value28); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value29) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value29); } - else if (IsMcpCall) + else if (McpCall is { } __value30) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value30); } - else if (IsResponseCustomToolCallItem) + else if (ResponseCustomToolCallItem is { } __value31) { - responseCustomToolCallItem?.Invoke(ResponseCustomToolCallItem!); + responseCustomToolCallItem?.Invoke(__value31); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value32) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value32); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMCPToolCallError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMCPToolCallError.g.cs index 08bdd13c9..d9d6ede88 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMCPToolCallError.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMCPToolCallError.g.cs @@ -47,8 +47,8 @@ public bool TryPickMcpProtocolError( /// /// /// - public global::tryAGI.OpenAI.BetaMCPProtocolError PickMcpProtocolError() => IsMcpProtocolError - ? McpProtocolError! + public global::tryAGI.OpenAI.BetaMCPProtocolError PickMcpProtocolError() => McpProtocolError is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpProtocolError' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickMcpToolExecutionError( /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolExecutionError PickMcpToolExecutionError() => IsMcpToolExecutionError - ? McpToolExecutionError! + public global::tryAGI.OpenAI.BetaMCPToolExecutionError PickMcpToolExecutionError() => McpToolExecutionError is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpToolExecutionError' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickHttpError( /// /// /// - public global::tryAGI.OpenAI.BetaHTTPError PickHttpError() => IsHttpError - ? HttpError! + public global::tryAGI.OpenAI.BetaHTTPError PickHttpError() => HttpError is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'HttpError' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsMcpProtocolError && mcpProtocolError != null) + if (McpProtocolError is { } __value0 && mcpProtocolError != null) { - return mcpProtocolError(McpProtocolError!); + return mcpProtocolError(__value0); } - else if (IsMcpToolExecutionError && mcpToolExecutionError != null) + else if (McpToolExecutionError is { } __value1 && mcpToolExecutionError != null) { - return mcpToolExecutionError(McpToolExecutionError!); + return mcpToolExecutionError(__value1); } - else if (IsHttpError && httpError != null) + else if (HttpError is { } __value2 && httpError != null) { - return httpError(HttpError!); + return httpError(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsMcpProtocolError) + if (McpProtocolError is { } __value0) { - mcpProtocolError?.Invoke(McpProtocolError!); + mcpProtocolError?.Invoke(__value0); } - else if (IsMcpToolExecutionError) + else if (McpToolExecutionError is { } __value1) { - mcpToolExecutionError?.Invoke(McpToolExecutionError!); + mcpToolExecutionError?.Invoke(__value1); } - else if (IsHttpError) + else if (HttpError is { } __value2) { - httpError?.Invoke(HttpError!); + httpError?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsMcpProtocolError) + if (McpProtocolError is { } __value0) { - mcpProtocolError?.Invoke(McpProtocolError!); + mcpProtocolError?.Invoke(__value0); } - else if (IsMcpToolExecutionError) + else if (McpToolExecutionError is { } __value1) { - mcpToolExecutionError?.Invoke(McpToolExecutionError!); + mcpToolExecutionError?.Invoke(__value1); } - else if (IsHttpError) + else if (HttpError is { } __value2) { - httpError?.Invoke(HttpError!); + httpError?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMisalignmentErrorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMisalignmentErrorType.g.cs index 5d6a2f2fa..c69df9e1f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMisalignmentErrorType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaMisalignmentErrorType.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaMisalignmentErrorTypeVariant1( /// /// /// - public string PickBetaMisalignmentErrorTypeVariant1() => IsBetaMisalignmentErrorTypeVariant1 - ? BetaMisalignmentErrorTypeVariant1! + public string PickBetaMisalignmentErrorTypeVariant1() => BetaMisalignmentErrorTypeVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaMisalignmentErrorTypeVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.BetaMisalignmentErrorTypeEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsBetaMisalignmentErrorTypeVariant1 && betaMisalignmentErrorTypeVariant1 != null) + if (BetaMisalignmentErrorTypeVariant1 is { } __value0 && betaMisalignmentErrorTypeVariant1 != null) { - return betaMisalignmentErrorTypeVariant1(BetaMisalignmentErrorTypeVariant1!); + return betaMisalignmentErrorTypeVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsBetaMisalignmentErrorTypeVariant1) + if (BetaMisalignmentErrorTypeVariant1 is { } __value0) { - betaMisalignmentErrorTypeVariant1?.Invoke(BetaMisalignmentErrorTypeVariant1!); + betaMisalignmentErrorTypeVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsBetaMisalignmentErrorTypeVariant1) + if (BetaMisalignmentErrorTypeVariant1 is { } __value0) { - betaMisalignmentErrorTypeVariant1?.Invoke(BetaMisalignmentErrorTypeVariant1!); + betaMisalignmentErrorTypeVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsCompaction.g.cs index 20b745326..9ca28535f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsCompaction.g.cs @@ -42,8 +42,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponses PickResponses() => IsResponses - ? Responses!.Value + public global::tryAGI.OpenAI.BetaModelIdsResponses PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaModelIdsCompactionVariant2( /// /// /// - public string PickBetaModelIdsCompactionVariant2() => IsBetaModelIdsCompactionVariant2 - ? BetaModelIdsCompactionVariant2! + public string PickBetaModelIdsCompactionVariant2() => BetaModelIdsCompactionVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaModelIdsCompactionVariant2' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickBetaModelIdsCompactionVariant3( /// /// /// - public object PickBetaModelIdsCompactionVariant3() => IsBetaModelIdsCompactionVariant3 - ? BetaModelIdsCompactionVariant3! + public object PickBetaModelIdsCompactionVariant3() => BetaModelIdsCompactionVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaModelIdsCompactionVariant3' but the value was {ToString()}."); /// /// @@ -219,17 +219,17 @@ public bool Validate() Validate(); } - if (IsResponses && responses != null) + if (Responses is { } __value0 && responses != null) { - return responses(Responses!); + return responses(__value0); } - else if (IsBetaModelIdsCompactionVariant2 && betaModelIdsCompactionVariant2 != null) + else if (BetaModelIdsCompactionVariant2 is { } __value1 && betaModelIdsCompactionVariant2 != null) { - return betaModelIdsCompactionVariant2(BetaModelIdsCompactionVariant2!); + return betaModelIdsCompactionVariant2(__value1); } - else if (IsBetaModelIdsCompactionVariant3 && betaModelIdsCompactionVariant3 != null) + else if (BetaModelIdsCompactionVariant3 is { } __value2 && betaModelIdsCompactionVariant3 != null) { - return betaModelIdsCompactionVariant3(BetaModelIdsCompactionVariant3!); + return betaModelIdsCompactionVariant3(__value2); } return default(TResult); @@ -251,17 +251,17 @@ public void Match( Validate(); } - if (IsResponses) + if (Responses is { } __value0) { - responses?.Invoke(Responses!); + responses?.Invoke(__value0); } - else if (IsBetaModelIdsCompactionVariant2) + else if (BetaModelIdsCompactionVariant2 is { } __value1) { - betaModelIdsCompactionVariant2?.Invoke(BetaModelIdsCompactionVariant2!); + betaModelIdsCompactionVariant2?.Invoke(__value1); } - else if (IsBetaModelIdsCompactionVariant3) + else if (BetaModelIdsCompactionVariant3 is { } __value2) { - betaModelIdsCompactionVariant3?.Invoke(BetaModelIdsCompactionVariant3!); + betaModelIdsCompactionVariant3?.Invoke(__value2); } } @@ -279,17 +279,17 @@ public void Switch( Validate(); } - if (IsResponses) + if (Responses is { } __value0) { - responses?.Invoke(Responses!); + responses?.Invoke(__value0); } - else if (IsBetaModelIdsCompactionVariant2) + else if (BetaModelIdsCompactionVariant2 is { } __value1) { - betaModelIdsCompactionVariant2?.Invoke(BetaModelIdsCompactionVariant2!); + betaModelIdsCompactionVariant2?.Invoke(__value1); } - else if (IsBetaModelIdsCompactionVariant3) + else if (BetaModelIdsCompactionVariant3 is { } __value2) { - betaModelIdsCompactionVariant3?.Invoke(BetaModelIdsCompactionVariant3!); + betaModelIdsCompactionVariant3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsResponses.g.cs index cce10a573..54b2d614b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsResponses.g.cs @@ -42,8 +42,8 @@ public bool TryPickShared( /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsShared PickShared() => IsShared - ? Shared!.Value + public global::tryAGI.OpenAI.BetaModelIdsShared PickShared() => Shared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shared' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickResponsesOnlyModel( /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum PickResponsesOnlyModel() => IsResponsesOnlyModel - ? ResponsesOnlyModel!.Value + public global::tryAGI.OpenAI.BetaModelIdsResponsesEnum PickResponsesOnlyModel() => ResponsesOnlyModel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesOnlyModel' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsShared && shared != null) + if (Shared is { } __value0 && shared != null) { - return shared(Shared!); + return shared(__value0); } - else if (IsResponsesOnlyModel && responsesOnlyModel != null) + else if (ResponsesOnlyModel is { } __value1 && responsesOnlyModel != null) { - return responsesOnlyModel(ResponsesOnlyModel!); + return responsesOnlyModel(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsResponsesOnlyModel) + else if (ResponsesOnlyModel is { } __value1) { - responsesOnlyModel?.Invoke(ResponsesOnlyModel!); + responsesOnlyModel?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsResponsesOnlyModel) + else if (ResponsesOnlyModel is { } __value1) { - responsesOnlyModel?.Invoke(ResponsesOnlyModel!); + responsesOnlyModel?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsShared.g.cs index d6babb58e..5ffea0b1c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaModelIdsShared.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaModelIdsSharedVariant1( /// /// /// - public string PickBetaModelIdsSharedVariant1() => IsBetaModelIdsSharedVariant1 - ? BetaModelIdsSharedVariant1! + public string PickBetaModelIdsSharedVariant1() => BetaModelIdsSharedVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaModelIdsSharedVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.BetaModelIdsSharedEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.BetaModelIdsSharedEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsBetaModelIdsSharedVariant1 && betaModelIdsSharedVariant1 != null) + if (BetaModelIdsSharedVariant1 is { } __value0 && betaModelIdsSharedVariant1 != null) { - return betaModelIdsSharedVariant1(BetaModelIdsSharedVariant1!); + return betaModelIdsSharedVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsBetaModelIdsSharedVariant1) + if (BetaModelIdsSharedVariant1 is { } __value0) { - betaModelIdsSharedVariant1?.Invoke(BetaModelIdsSharedVariant1!); + betaModelIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsBetaModelIdsSharedVariant1) + if (BetaModelIdsSharedVariant1 is { } __value0) { - betaModelIdsSharedVariant1?.Invoke(BetaModelIdsSharedVariant1!); + betaModelIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputContent.g.cs index 758d30dcb..a9c11bce8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputContent.g.cs @@ -47,8 +47,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickReasoningText( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent PickReasoningText() => IsReasoningText - ? ReasoningText! + public global::tryAGI.OpenAI.BetaReasoningTextContent PickReasoningText() => ReasoningText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningText' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOutputText && outputText != null) + if (OutputText is { } __value0 && outputText != null) { - return outputText(OutputText!); + return outputText(__value0); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value1 && refusal != null) { - return refusal(Refusal!); + return refusal(__value1); } - else if (IsReasoningText && reasoningText != null) + else if (ReasoningText is { } __value2 && reasoningText != null) { - return reasoningText(ReasoningText!); + return reasoningText(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } - else if (IsReasoningText) + else if (ReasoningText is { } __value2) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } - else if (IsReasoningText) + else if (ReasoningText is { } __value2) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputItem.g.cs index 982fff65c..74961eb89 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputItem.g.cs @@ -42,8 +42,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.BetaOutputMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.BetaOutputMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.BetaFileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -118,8 +118,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.BetaFunctionToolCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -155,8 +155,8 @@ public bool TryPickFunctionToolCallResource( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource PickFunctionToolCallResource() => IsFunctionToolCallResource - ? FunctionToolCallResource!.Value + public global::tryAGI.OpenAI.BetaFunctionToolCallOutputResource PickFunctionToolCallResource() => FunctionToolCallResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallResource' but the value was {ToString()}."); /// @@ -192,8 +192,8 @@ public bool TryPickAgentMessage( /// /// /// - public global::tryAGI.OpenAI.BetaAgentMessage PickAgentMessage() => IsAgentMessage - ? AgentMessage! + public global::tryAGI.OpenAI.BetaAgentMessage PickAgentMessage() => AgentMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessage' but the value was {ToString()}."); /// @@ -229,8 +229,8 @@ public bool TryPickMultiAgentCall( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCall PickMultiAgentCall() => IsMultiAgentCall - ? MultiAgentCall! + public global::tryAGI.OpenAI.BetaMultiAgentCall PickMultiAgentCall() => MultiAgentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCall' but the value was {ToString()}."); /// @@ -266,8 +266,8 @@ public bool TryPickMultiAgentCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaMultiAgentCallOutput PickMultiAgentCallOutput() => IsMultiAgentCallOutput - ? MultiAgentCallOutput! + public global::tryAGI.OpenAI.BetaMultiAgentCallOutput PickMultiAgentCallOutput() => MultiAgentCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MultiAgentCallOutput' but the value was {ToString()}."); /// @@ -304,8 +304,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.BetaWebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -342,8 +342,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.BetaComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -379,8 +379,8 @@ public bool TryPickComputerToolCallResource( /// /// /// - public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource PickComputerToolCallResource() => IsComputerToolCallResource - ? ComputerToolCallResource!.Value + public global::tryAGI.OpenAI.BetaComputerToolCallOutputResource PickComputerToolCallResource() => ComputerToolCallResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallResource' but the value was {ToString()}."); /// @@ -419,8 +419,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.BetaReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -456,8 +456,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.BetaProgram PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.BetaProgram PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -493,8 +493,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.BetaProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.BetaProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -530,8 +530,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.BetaToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -567,8 +567,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.BetaToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -604,8 +604,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.BetaAdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.BetaAdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.BetaCompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.BetaCompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.BetaImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.BetaCodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.BetaLocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.BetaLocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.BetaFunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.BetaApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.BetaApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.BetaMCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.BetaMCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.BetaMCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -1085,8 +1085,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.BetaMCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1122,8 +1122,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.BetaCustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -1159,8 +1159,8 @@ public bool TryPickResponseCustomToolCallOutputItem( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => IsResponseCustomToolCallOutputItem - ? ResponseCustomToolCallOutputItem!.Value + public global::tryAGI.OpenAI.BetaCustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => ResponseCustomToolCallOutputItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallOutputItem' but the value was {ToString()}."); /// /// @@ -2069,129 +2069,129 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value1 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value1); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value2 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value2); } - else if (IsFunctionToolCallResource && functionToolCallResource != null) + else if (FunctionToolCallResource is { } __value3 && functionToolCallResource != null) { - return functionToolCallResource(FunctionToolCallResource!); + return functionToolCallResource(__value3); } - else if (IsAgentMessage && agentMessage != null) + else if (AgentMessage is { } __value4 && agentMessage != null) { - return agentMessage(AgentMessage!); + return agentMessage(__value4); } - else if (IsMultiAgentCall && multiAgentCall != null) + else if (MultiAgentCall is { } __value5 && multiAgentCall != null) { - return multiAgentCall(MultiAgentCall!); + return multiAgentCall(__value5); } - else if (IsMultiAgentCallOutput && multiAgentCallOutput != null) + else if (MultiAgentCallOutput is { } __value6 && multiAgentCallOutput != null) { - return multiAgentCallOutput(MultiAgentCallOutput!); + return multiAgentCallOutput(__value6); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value7 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value7); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value8 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value8); } - else if (IsComputerToolCallResource && computerToolCallResource != null) + else if (ComputerToolCallResource is { } __value9 && computerToolCallResource != null) { - return computerToolCallResource(ComputerToolCallResource!); + return computerToolCallResource(__value9); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value10 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value10); } - else if (IsProgram && program != null) + else if (Program is { } __value11 && program != null) { - return program(Program!); + return program(__value11); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value12 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value12); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value13 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value13); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value14 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value14); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value15 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value15); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value16 && compaction != null) { - return compaction(Compaction!); + return compaction(__value16); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value17 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value17); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value18 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value18); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value19 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value19); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value20 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value20); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value21 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value21); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value22 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value22); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value23 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value23); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value24 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value24); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value25 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value25); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value26 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value26); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value27 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value27); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value28 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value28); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value29 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value29); } - else if (IsResponseCustomToolCallOutputItem && responseCustomToolCallOutputItem != null) + else if (ResponseCustomToolCallOutputItem is { } __value30 && responseCustomToolCallOutputItem != null) { - return responseCustomToolCallOutputItem(ResponseCustomToolCallOutputItem!); + return responseCustomToolCallOutputItem(__value30); } return default(TResult); @@ -2269,129 +2269,129 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value1) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsFunctionToolCallResource) + else if (FunctionToolCallResource is { } __value3) { - functionToolCallResource?.Invoke(FunctionToolCallResource!); + functionToolCallResource?.Invoke(__value3); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value4) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value4); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value5) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value5); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value6) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value6); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value7) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value7); } - else if (IsComputerCall) + else if (ComputerCall is { } __value8) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value8); } - else if (IsComputerToolCallResource) + else if (ComputerToolCallResource is { } __value9) { - computerToolCallResource?.Invoke(ComputerToolCallResource!); + computerToolCallResource?.Invoke(__value9); } - else if (IsReasoning) + else if (Reasoning is { } __value10) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value10); } - else if (IsProgram) + else if (Program is { } __value11) { - program?.Invoke(Program!); + program?.Invoke(__value11); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value12) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value12); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value13) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value13); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value14) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value14); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value15) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value15); } - else if (IsCompaction) + else if (Compaction is { } __value16) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value16); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value17) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value17); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value18) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value18); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value19) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value19); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value20) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value20); } - else if (IsShellCall) + else if (ShellCall is { } __value21) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value21); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value22) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value22); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value23) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value23); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value24) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value24); } - else if (IsMcpCall) + else if (McpCall is { } __value25) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value25); } - else if (IsMcpListTools) + else if (McpListTools is { } __value26) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value26); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value27) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value27); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value28) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value28); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value29) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value29); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value30) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value30); } } @@ -2437,129 +2437,129 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value1) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsFunctionToolCallResource) + else if (FunctionToolCallResource is { } __value3) { - functionToolCallResource?.Invoke(FunctionToolCallResource!); + functionToolCallResource?.Invoke(__value3); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value4) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value4); } - else if (IsMultiAgentCall) + else if (MultiAgentCall is { } __value5) { - multiAgentCall?.Invoke(MultiAgentCall!); + multiAgentCall?.Invoke(__value5); } - else if (IsMultiAgentCallOutput) + else if (MultiAgentCallOutput is { } __value6) { - multiAgentCallOutput?.Invoke(MultiAgentCallOutput!); + multiAgentCallOutput?.Invoke(__value6); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value7) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value7); } - else if (IsComputerCall) + else if (ComputerCall is { } __value8) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value8); } - else if (IsComputerToolCallResource) + else if (ComputerToolCallResource is { } __value9) { - computerToolCallResource?.Invoke(ComputerToolCallResource!); + computerToolCallResource?.Invoke(__value9); } - else if (IsReasoning) + else if (Reasoning is { } __value10) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value10); } - else if (IsProgram) + else if (Program is { } __value11) { - program?.Invoke(Program!); + program?.Invoke(__value11); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value12) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value12); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value13) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value13); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value14) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value14); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value15) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value15); } - else if (IsCompaction) + else if (Compaction is { } __value16) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value16); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value17) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value17); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value18) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value18); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value19) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value19); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value20) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value20); } - else if (IsShellCall) + else if (ShellCall is { } __value21) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value21); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value22) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value22); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value23) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value23); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value24) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value24); } - else if (IsMcpCall) + else if (McpCall is { } __value25) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value25); } - else if (IsMcpListTools) + else if (McpListTools is { } __value26) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value26); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value27) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value27); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value28) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value28); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value29) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value29); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value30) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value30); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputMessageContent.g.cs index 70331ceff..30ead3541 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaOutputMessageContent.g.cs @@ -47,8 +47,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsOutputText && outputText != null) + if (OutputText is { } __value0 && outputText != null) { - return outputText(OutputText!); + return outputText(__value0); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value1 && refusal != null) { - return refusal(Refusal!); + return refusal(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPersonalityEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPersonalityEnum.g.cs index bc26666f6..f20622177 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPersonalityEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPersonalityEnum.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaPersonalityEnumVariant1( /// /// /// - public string PickBetaPersonalityEnumVariant1() => IsBetaPersonalityEnumVariant1 - ? BetaPersonalityEnumVariant1! + public string PickBetaPersonalityEnumVariant1() => BetaPersonalityEnumVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaPersonalityEnumVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaPersonalityEnumEnum( /// /// /// - public global::tryAGI.OpenAI.BetaPersonalityEnumEnum PickBetaPersonalityEnumEnum() => IsBetaPersonalityEnumEnum - ? BetaPersonalityEnumEnum!.Value + public global::tryAGI.OpenAI.BetaPersonalityEnumEnum PickBetaPersonalityEnumEnum() => BetaPersonalityEnumEnum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaPersonalityEnumEnum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsBetaPersonalityEnumVariant1 && betaPersonalityEnumVariant1 != null) + if (BetaPersonalityEnumVariant1 is { } __value0 && betaPersonalityEnumVariant1 != null) { - return betaPersonalityEnumVariant1(BetaPersonalityEnumVariant1!); + return betaPersonalityEnumVariant1(__value0); } - else if (IsBetaPersonalityEnumEnum && betaPersonalityEnumEnum != null) + else if (BetaPersonalityEnumEnum is { } __value1 && betaPersonalityEnumEnum != null) { - return betaPersonalityEnumEnum(BetaPersonalityEnumEnum!); + return betaPersonalityEnumEnum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsBetaPersonalityEnumVariant1) + if (BetaPersonalityEnumVariant1 is { } __value0) { - betaPersonalityEnumVariant1?.Invoke(BetaPersonalityEnumVariant1!); + betaPersonalityEnumVariant1?.Invoke(__value0); } - else if (IsBetaPersonalityEnumEnum) + else if (BetaPersonalityEnumEnum is { } __value1) { - betaPersonalityEnumEnum?.Invoke(BetaPersonalityEnumEnum!); + betaPersonalityEnumEnum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsBetaPersonalityEnumVariant1) + if (BetaPersonalityEnumVariant1 is { } __value0) { - betaPersonalityEnumVariant1?.Invoke(BetaPersonalityEnumVariant1!); + betaPersonalityEnumVariant1?.Invoke(__value0); } - else if (IsBetaPersonalityEnumEnum) + else if (BetaPersonalityEnumEnum is { } __value1) { - betaPersonalityEnumEnum?.Invoke(BetaPersonalityEnumEnum!); + betaPersonalityEnumEnum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPromptCacheDiagnostics.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPromptCacheDiagnostics.g.cs index dc60f00b2..fb314c12e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPromptCacheDiagnostics.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaPromptCacheDiagnostics.g.cs @@ -47,8 +47,8 @@ public bool TryPickCacheMiss( /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody PickCacheMiss() => IsCacheMiss - ? CacheMiss! + public global::tryAGI.OpenAI.BetaPromptCacheMissDiagnosticsBody PickCacheMiss() => CacheMiss is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CacheMiss' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCacheHit( /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody PickCacheHit() => IsCacheHit - ? CacheHit! + public global::tryAGI.OpenAI.BetaPromptCacheHitDiagnosticsBody PickCacheHit() => CacheHit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CacheHit' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickComparisonResponseNotFound( /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody PickComparisonResponseNotFound() => IsComparisonResponseNotFound - ? ComparisonResponseNotFound! + public global::tryAGI.OpenAI.BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody PickComparisonResponseNotFound() => ComparisonResponseNotFound is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComparisonResponseNotFound' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickUnavailable( /// /// /// - public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody PickUnavailable() => IsUnavailable - ? Unavailable! + public global::tryAGI.OpenAI.BetaPromptCacheUnavailableDiagnosticsBody PickUnavailable() => Unavailable is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Unavailable' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsCacheMiss && cacheMiss != null) + if (CacheMiss is { } __value0 && cacheMiss != null) { - return cacheMiss(CacheMiss!); + return cacheMiss(__value0); } - else if (IsCacheHit && cacheHit != null) + else if (CacheHit is { } __value1 && cacheHit != null) { - return cacheHit(CacheHit!); + return cacheHit(__value1); } - else if (IsComparisonResponseNotFound && comparisonResponseNotFound != null) + else if (ComparisonResponseNotFound is { } __value2 && comparisonResponseNotFound != null) { - return comparisonResponseNotFound(ComparisonResponseNotFound!); + return comparisonResponseNotFound(__value2); } - else if (IsUnavailable && unavailable != null) + else if (Unavailable is { } __value3 && unavailable != null) { - return unavailable(Unavailable!); + return unavailable(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsCacheMiss) + if (CacheMiss is { } __value0) { - cacheMiss?.Invoke(CacheMiss!); + cacheMiss?.Invoke(__value0); } - else if (IsCacheHit) + else if (CacheHit is { } __value1) { - cacheHit?.Invoke(CacheHit!); + cacheHit?.Invoke(__value1); } - else if (IsComparisonResponseNotFound) + else if (ComparisonResponseNotFound is { } __value2) { - comparisonResponseNotFound?.Invoke(ComparisonResponseNotFound!); + comparisonResponseNotFound?.Invoke(__value2); } - else if (IsUnavailable) + else if (Unavailable is { } __value3) { - unavailable?.Invoke(Unavailable!); + unavailable?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsCacheMiss) + if (CacheMiss is { } __value0) { - cacheMiss?.Invoke(CacheMiss!); + cacheMiss?.Invoke(__value0); } - else if (IsCacheHit) + else if (CacheHit is { } __value1) { - cacheHit?.Invoke(CacheHit!); + cacheHit?.Invoke(__value1); } - else if (IsComparisonResponseNotFound) + else if (ComparisonResponseNotFound is { } __value2) { - comparisonResponseNotFound?.Invoke(ComparisonResponseNotFound!); + comparisonResponseNotFound?.Invoke(__value2); } - else if (IsUnavailable) + else if (Unavailable is { } __value3) { - unavailable?.Invoke(Unavailable!); + unavailable?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaReasoningModeEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaReasoningModeEnum.g.cs index 034e5fc3d..1f23f98a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaReasoningModeEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaReasoningModeEnum.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaReasoningModeEnumVariant1( /// /// /// - public string PickBetaReasoningModeEnumVariant1() => IsBetaReasoningModeEnumVariant1 - ? BetaReasoningModeEnumVariant1! + public string PickBetaReasoningModeEnumVariant1() => BetaReasoningModeEnumVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaReasoningModeEnumVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaReasoningModeEnumEnum( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum PickBetaReasoningModeEnumEnum() => IsBetaReasoningModeEnumEnum - ? BetaReasoningModeEnumEnum!.Value + public global::tryAGI.OpenAI.BetaReasoningModeEnumEnum PickBetaReasoningModeEnumEnum() => BetaReasoningModeEnumEnum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaReasoningModeEnumEnum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsBetaReasoningModeEnumVariant1 && betaReasoningModeEnumVariant1 != null) + if (BetaReasoningModeEnumVariant1 is { } __value0 && betaReasoningModeEnumVariant1 != null) { - return betaReasoningModeEnumVariant1(BetaReasoningModeEnumVariant1!); + return betaReasoningModeEnumVariant1(__value0); } - else if (IsBetaReasoningModeEnumEnum && betaReasoningModeEnumEnum != null) + else if (BetaReasoningModeEnumEnum is { } __value1 && betaReasoningModeEnumEnum != null) { - return betaReasoningModeEnumEnum(BetaReasoningModeEnumEnum!); + return betaReasoningModeEnumEnum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsBetaReasoningModeEnumVariant1) + if (BetaReasoningModeEnumVariant1 is { } __value0) { - betaReasoningModeEnumVariant1?.Invoke(BetaReasoningModeEnumVariant1!); + betaReasoningModeEnumVariant1?.Invoke(__value0); } - else if (IsBetaReasoningModeEnumEnum) + else if (BetaReasoningModeEnumEnum is { } __value1) { - betaReasoningModeEnumEnum?.Invoke(BetaReasoningModeEnumEnum!); + betaReasoningModeEnumEnum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsBetaReasoningModeEnumVariant1) + if (BetaReasoningModeEnumVariant1 is { } __value0) { - betaReasoningModeEnumVariant1?.Invoke(BetaReasoningModeEnumVariant1!); + betaReasoningModeEnumVariant1?.Invoke(__value0); } - else if (IsBetaReasoningModeEnumEnum) + else if (BetaReasoningModeEnumEnum is { } __value1) { - betaReasoningModeEnumEnum?.Invoke(BetaReasoningModeEnumEnum!); + betaReasoningModeEnumEnum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponse.g.cs index e0da23204..c4e4ffd38 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponse.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// - /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// public readonly partial struct BetaResponse : global::System.IEquatable { @@ -42,8 +42,8 @@ public bool TryPickModelProperties( /// /// /// - public global::tryAGI.OpenAI.BetaModelResponseProperties PickModelProperties() => IsModelProperties - ? ModelProperties! + public global::tryAGI.OpenAI.BetaModelResponseProperties PickModelProperties() => ModelProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickProperties( /// /// /// - public global::tryAGI.OpenAI.BetaResponseProperties PickProperties() => IsProperties - ? Properties! + public global::tryAGI.OpenAI.BetaResponseProperties PickProperties() => Properties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Properties' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickBetaResponseVariant3( /// /// /// - public global::tryAGI.OpenAI.BetaResponseVariant3 PickBetaResponseVariant3() => IsBetaResponseVariant3 - ? BetaResponseVariant3! + public global::tryAGI.OpenAI.BetaResponseVariant3 PickBetaResponseVariant3() => BetaResponseVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseVariant3' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsModelProperties && modelProperties != null) + if (ModelProperties is { } __value0 && modelProperties != null) { - return modelProperties(ModelProperties!); + return modelProperties(__value0); } - else if (IsProperties && properties != null) + else if (Properties is { } __value1 && properties != null) { - return properties(Properties!); + return properties(__value1); } - else if (IsBetaResponseVariant3 && betaResponseVariant3 != null) + else if (BetaResponseVariant3 is { } __value2 && betaResponseVariant3 != null) { - return betaResponseVariant3(BetaResponseVariant3!); + return betaResponseVariant3(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsBetaResponseVariant3) + else if (BetaResponseVariant3 is { } __value2) { - betaResponseVariant3?.Invoke(BetaResponseVariant3!); + betaResponseVariant3?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsBetaResponseVariant3) + else if (BetaResponseVariant3 is { } __value2) { - betaResponseVariant3?.Invoke(BetaResponseVariant3!); + betaResponseVariant3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCompletedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCompletedEvent.g.cs index 5a25ee72a..f316d8425 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCompletedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCompletedEvent.g.cs @@ -23,9 +23,9 @@ public sealed partial class BetaResponseCompletedEvent /// /// Properties of the completed response.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -49,7 +49,7 @@ public sealed partial class BetaResponseCompletedEvent ///
/// /// Properties of the completed response.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number for this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCreatedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCreatedEvent.g.cs index 5f9b36051..7723ded71 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCreatedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseCreatedEvent.g.cs @@ -23,9 +23,9 @@ public sealed partial class BetaResponseCreatedEvent /// /// The response that was created.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -49,7 +49,7 @@ public sealed partial class BetaResponseCreatedEvent ///
/// /// The response that was created.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number for this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseFailedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseFailedEvent.g.cs index 92010f3ff..c7bc02481 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseFailedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseFailedEvent.g.cs @@ -30,9 +30,9 @@ public sealed partial class BetaResponseFailedEvent /// /// The response that failed.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -52,7 +52,7 @@ public sealed partial class BetaResponseFailedEvent /// /// /// The response that failed.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The agent that owns this multi-agent streaming event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseInProgressEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseInProgressEvent.g.cs index bdaf4a050..70225cb8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseInProgressEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseInProgressEvent.g.cs @@ -23,9 +23,9 @@ public sealed partial class BetaResponseInProgressEvent /// /// The response that is in progress.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -49,7 +49,7 @@ public sealed partial class BetaResponseInProgressEvent ///
/// /// The response that is in progress.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number of this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseIncompleteEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseIncompleteEvent.g.cs index 267585d6e..d9e025f87 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseIncompleteEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseIncompleteEvent.g.cs @@ -26,9 +26,9 @@ public sealed partial class BetaResponseIncompleteEvent /// /// The response that was incomplete.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -52,7 +52,7 @@ public sealed partial class BetaResponseIncompleteEvent ///
/// /// The response that was incomplete.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number of this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseQueuedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseQueuedEvent.g.cs index 3ca4dad97..7a3f54a4b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseQueuedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseQueuedEvent.g.cs @@ -23,9 +23,9 @@ public sealed partial class BetaResponseQueuedEvent /// /// The full response object that is queued.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -49,7 +49,7 @@ public sealed partial class BetaResponseQueuedEvent ///
/// /// The full response object that is queued.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number for this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerErrorCode.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerErrorCode.g.cs index 8b04cc43c..5e044a6c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerErrorCode.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerErrorCode.g.cs @@ -50,8 +50,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.BetaResponseSteerErrorCodeEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -87,8 +87,8 @@ public bool TryPickBetaResponseSteerErrorCodeVariant2( /// /// /// - public string PickBetaResponseSteerErrorCodeVariant2() => IsBetaResponseSteerErrorCodeVariant2 - ? BetaResponseSteerErrorCodeVariant2! + public string PickBetaResponseSteerErrorCodeVariant2() => BetaResponseSteerErrorCodeVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseSteerErrorCodeVariant2' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsBetaResponseSteerErrorCodeVariant2 && betaResponseSteerErrorCodeVariant2 != null) + else if (BetaResponseSteerErrorCodeVariant2 is { } __value1 && betaResponseSteerErrorCodeVariant2 != null) { - return betaResponseSteerErrorCodeVariant2(BetaResponseSteerErrorCodeVariant2!); + return betaResponseSteerErrorCodeVariant2(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsBetaResponseSteerErrorCodeVariant2) + else if (BetaResponseSteerErrorCodeVariant2 is { } __value1) { - betaResponseSteerErrorCodeVariant2?.Invoke(BetaResponseSteerErrorCodeVariant2!); + betaResponseSteerErrorCodeVariant2?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsBetaResponseSteerErrorCodeVariant2) + else if (BetaResponseSteerErrorCodeVariant2 is { } __value1) { - betaResponseSteerErrorCodeVariant2?.Invoke(BetaResponseSteerErrorCodeVariant2!); + betaResponseSteerErrorCodeVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInput.g.cs index 73b617180..a1245e08a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInput.g.cs @@ -49,8 +49,8 @@ public bool TryPickTextInput( /// /// /// - public string PickTextInput() => IsTextInput - ? TextInput! + public string PickTextInput() => TextInput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextInput' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickResponseSteerInputItemList( /// /// /// - public global::System.Collections.Generic.IList PickResponseSteerInputItemList() => IsResponseSteerInputItemList - ? ResponseSteerInputItemList! + public global::System.Collections.Generic.IList PickResponseSteerInputItemList() => ResponseSteerInputItemList is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerInputItemList' but the value was {ToString()}."); /// /// @@ -161,13 +161,13 @@ public bool Validate() Validate(); } - if (IsTextInput && textInput != null) + if (TextInput is { } __value0 && textInput != null) { - return textInput(TextInput!); + return textInput(__value0); } - else if (IsResponseSteerInputItemList && responseSteerInputItemList != null) + else if (ResponseSteerInputItemList is { } __value1 && responseSteerInputItemList != null) { - return responseSteerInputItemList(ResponseSteerInputItemList!); + return responseSteerInputItemList(__value1); } return default(TResult); @@ -187,13 +187,13 @@ public void Match( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsResponseSteerInputItemList) + else if (ResponseSteerInputItemList is { } __value1) { - responseSteerInputItemList?.Invoke(ResponseSteerInputItemList!); + responseSteerInputItemList?.Invoke(__value1); } } @@ -210,13 +210,13 @@ public void Switch( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsResponseSteerInputItemList) + else if (ResponseSteerInputItemList is { } __value1) { - responseSteerInputItemList?.Invoke(ResponseSteerInputItemList!); + responseSteerInputItemList?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInputItem.g.cs index c9d99a67e..c69534e59 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerInputItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.BetaUserMessageItemParam PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.BetaUserMessageItemParam PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.BetaFunctionCallOutputItemParam PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value1 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value1) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value1) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerPendingReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerPendingReason.g.cs index 3e9ded1de..b8d1ebeac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerPendingReason.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerPendingReason.g.cs @@ -45,8 +45,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.BetaResponseSteerPendingReasonEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickBetaResponseSteerPendingReasonVariant2( /// /// /// - public string PickBetaResponseSteerPendingReasonVariant2() => IsBetaResponseSteerPendingReasonVariant2 - ? BetaResponseSteerPendingReasonVariant2! + public string PickBetaResponseSteerPendingReasonVariant2() => BetaResponseSteerPendingReasonVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseSteerPendingReasonVariant2' but the value was {ToString()}."); /// /// @@ -180,13 +180,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsBetaResponseSteerPendingReasonVariant2 && betaResponseSteerPendingReasonVariant2 != null) + else if (BetaResponseSteerPendingReasonVariant2 is { } __value1 && betaResponseSteerPendingReasonVariant2 != null) { - return betaResponseSteerPendingReasonVariant2(BetaResponseSteerPendingReasonVariant2!); + return betaResponseSteerPendingReasonVariant2(__value1); } return default(TResult); @@ -206,13 +206,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsBetaResponseSteerPendingReasonVariant2) + else if (BetaResponseSteerPendingReasonVariant2 is { } __value1) { - betaResponseSteerPendingReasonVariant2?.Invoke(BetaResponseSteerPendingReasonVariant2!); + betaResponseSteerPendingReasonVariant2?.Invoke(__value1); } } @@ -229,13 +229,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsBetaResponseSteerPendingReasonVariant2) + else if (BetaResponseSteerPendingReasonVariant2 is { } __value1) { - betaResponseSteerPendingReasonVariant2?.Invoke(BetaResponseSteerPendingReasonVariant2!); + betaResponseSteerPendingReasonVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerRequiredInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerRequiredInput.g.cs index fccf823ae..dafa558f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerRequiredInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseSteerRequiredInput.g.cs @@ -51,8 +51,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredFunctionToolCallOutput PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -89,8 +89,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredCustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// @@ -127,8 +127,8 @@ public bool TryPickComputerCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput PickComputerCallOutput() => IsComputerCallOutput - ? ComputerCallOutput! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredComputerToolCallOutput PickComputerCallOutput() => ComputerCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCallOutput' but the value was {ToString()}."); /// @@ -165,8 +165,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredShellToolCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -203,8 +203,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -241,8 +241,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -280,8 +280,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.BetaResponseSteerRequiredInputRequiredMcpApprovalResponse PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// /// @@ -521,33 +521,33 @@ public bool Validate() Validate(); } - if (IsFunctionCallOutput && functionCallOutput != null) + if (FunctionCallOutput is { } __value0 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value0); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value1 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value1); } - else if (IsComputerCallOutput && computerCallOutput != null) + else if (ComputerCallOutput is { } __value2 && computerCallOutput != null) { - return computerCallOutput(ComputerCallOutput!); + return computerCallOutput(__value2); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value3 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value3); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value4 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value4); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value5 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value5); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value6 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value6); } return default(TResult); @@ -577,33 +577,33 @@ public void Match( Validate(); } - if (IsFunctionCallOutput) + if (FunctionCallOutput is { } __value0) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value0); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value1) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value1); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value2) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value2); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value3) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value3); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value4) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value4); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value5) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value5); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value6) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value6); } } @@ -625,33 +625,33 @@ public void Switch( Validate(); } - if (IsFunctionCallOutput) + if (FunctionCallOutput is { } __value0) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value0); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value1) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value1); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value2) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value2); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value3) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value3); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value4) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value4); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value5) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value5); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value6) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value6); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamEvent.g.cs index bf9ad0ef4..f334a5f31 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseStreamEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickResponseAudioDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent PickResponseAudioDelta() => IsResponseAudioDelta - ? ResponseAudioDelta! + public global::tryAGI.OpenAI.BetaResponseAudioDeltaEvent PickResponseAudioDelta() => ResponseAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioDelta' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickResponseAudioDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent PickResponseAudioDone() => IsResponseAudioDone - ? ResponseAudioDone! + public global::tryAGI.OpenAI.BetaResponseAudioDoneEvent PickResponseAudioDone() => ResponseAudioDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioDone' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickResponseAudioTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent PickResponseAudioTranscriptDelta() => IsResponseAudioTranscriptDelta - ? ResponseAudioTranscriptDelta! + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDeltaEvent PickResponseAudioTranscriptDelta() => ResponseAudioTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioTranscriptDelta' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickResponseAudioTranscriptDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent PickResponseAudioTranscriptDone() => IsResponseAudioTranscriptDone - ? ResponseAudioTranscriptDone! + public global::tryAGI.OpenAI.BetaResponseAudioTranscriptDoneEvent PickResponseAudioTranscriptDone() => ResponseAudioTranscriptDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioTranscriptDone' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickResponseCodeInterpreterCallCodeDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent PickResponseCodeInterpreterCallCodeDelta() => IsResponseCodeInterpreterCallCodeDelta - ? ResponseCodeInterpreterCallCodeDelta! + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDeltaEvent PickResponseCodeInterpreterCallCodeDelta() => ResponseCodeInterpreterCallCodeDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCodeDelta' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickResponseCodeInterpreterCallCodeDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent PickResponseCodeInterpreterCallCodeDone() => IsResponseCodeInterpreterCallCodeDone - ? ResponseCodeInterpreterCallCodeDone! + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCodeDoneEvent PickResponseCodeInterpreterCallCodeDone() => ResponseCodeInterpreterCallCodeDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCodeDone' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickResponseCodeInterpreterCallCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent PickResponseCodeInterpreterCallCompleted() => IsResponseCodeInterpreterCallCompleted - ? ResponseCodeInterpreterCallCompleted! + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallCompletedEvent PickResponseCodeInterpreterCallCompleted() => ResponseCodeInterpreterCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCompleted' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickResponseCodeInterpreterCallInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent PickResponseCodeInterpreterCallInProgress() => IsResponseCodeInterpreterCallInProgress - ? ResponseCodeInterpreterCallInProgress! + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInProgressEvent PickResponseCodeInterpreterCallInProgress() => ResponseCodeInterpreterCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallInProgress' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickResponseCodeInterpreterCallInterpreting( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent PickResponseCodeInterpreterCallInterpreting() => IsResponseCodeInterpreterCallInterpreting - ? ResponseCodeInterpreterCallInterpreting! + public global::tryAGI.OpenAI.BetaResponseCodeInterpreterCallInterpretingEvent PickResponseCodeInterpreterCallInterpreting() => ResponseCodeInterpreterCallInterpreting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallInterpreting' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickResponseCompactionCompacting( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent PickResponseCompactionCompacting() => IsResponseCompactionCompacting - ? ResponseCompactionCompacting! + public global::tryAGI.OpenAI.BetaResponseCompactionCompactingStreamingEvent PickResponseCompactionCompacting() => ResponseCompactionCompacting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCompactionCompacting' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickResponseCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCompletedEvent PickResponseCompleted() => IsResponseCompleted - ? ResponseCompleted! + public global::tryAGI.OpenAI.BetaResponseCompletedEvent PickResponseCompleted() => ResponseCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCompleted' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickResponseContentPartAdded( /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent PickResponseContentPartAdded() => IsResponseContentPartAdded - ? ResponseContentPartAdded! + public global::tryAGI.OpenAI.BetaResponseContentPartAddedEvent PickResponseContentPartAdded() => ResponseContentPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartAdded' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickResponseContentPartDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent PickResponseContentPartDone() => IsResponseContentPartDone - ? ResponseContentPartDone! + public global::tryAGI.OpenAI.BetaResponseContentPartDoneEvent PickResponseContentPartDone() => ResponseContentPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartDone' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickResponseCreated( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCreatedEvent PickResponseCreated() => IsResponseCreated - ? ResponseCreated! + public global::tryAGI.OpenAI.BetaResponseCreatedEvent PickResponseCreated() => ResponseCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreated' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.BetaResponseErrorEvent PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.BetaResponseErrorEvent PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickResponseFileSearchCallCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent PickResponseFileSearchCallCompleted() => IsResponseFileSearchCallCompleted - ? ResponseFileSearchCallCompleted! + public global::tryAGI.OpenAI.BetaResponseFileSearchCallCompletedEvent PickResponseFileSearchCallCompleted() => ResponseFileSearchCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallCompleted' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickResponseFileSearchCallInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent PickResponseFileSearchCallInProgress() => IsResponseFileSearchCallInProgress - ? ResponseFileSearchCallInProgress! + public global::tryAGI.OpenAI.BetaResponseFileSearchCallInProgressEvent PickResponseFileSearchCallInProgress() => ResponseFileSearchCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallInProgress' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickResponseFileSearchCallSearching( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent PickResponseFileSearchCallSearching() => IsResponseFileSearchCallSearching - ? ResponseFileSearchCallSearching! + public global::tryAGI.OpenAI.BetaResponseFileSearchCallSearchingEvent PickResponseFileSearchCallSearching() => ResponseFileSearchCallSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallSearching' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickResponseFunctionCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent PickResponseFunctionCallArgumentsDelta() => IsResponseFunctionCallArgumentsDelta - ? ResponseFunctionCallArgumentsDelta! + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDeltaEvent PickResponseFunctionCallArgumentsDelta() => ResponseFunctionCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDelta' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickResponseFunctionCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent PickResponseFunctionCallArgumentsDone() => IsResponseFunctionCallArgumentsDone - ? ResponseFunctionCallArgumentsDone! + public global::tryAGI.OpenAI.BetaResponseFunctionCallArgumentsDoneEvent PickResponseFunctionCallArgumentsDone() => ResponseFunctionCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDone' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickResponseShellCallCommandAdded( /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent PickResponseShellCallCommandAdded() => IsResponseShellCallCommandAdded - ? ResponseShellCallCommandAdded! + public global::tryAGI.OpenAI.BetaResponseShellCallCommandAddedStreamingEvent PickResponseShellCallCommandAdded() => ResponseShellCallCommandAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandAdded' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickResponseShellCallCommandDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent PickResponseShellCallCommandDelta() => IsResponseShellCallCommandDelta - ? ResponseShellCallCommandDelta! + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDeltaStreamingEvent PickResponseShellCallCommandDelta() => ResponseShellCallCommandDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandDelta' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickResponseShellCallCommandDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent PickResponseShellCallCommandDone() => IsResponseShellCallCommandDone - ? ResponseShellCallCommandDone! + public global::tryAGI.OpenAI.BetaResponseShellCallCommandDoneStreamingEvent PickResponseShellCallCommandDone() => ResponseShellCallCommandDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandDone' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickResponseShellCallOutputContentDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent PickResponseShellCallOutputContentDelta() => IsResponseShellCallOutputContentDelta - ? ResponseShellCallOutputContentDelta! + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDeltaStreamingEvent PickResponseShellCallOutputContentDelta() => ResponseShellCallOutputContentDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallOutputContentDelta' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickResponseShellCallOutputContentDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent PickResponseShellCallOutputContentDone() => IsResponseShellCallOutputContentDone - ? ResponseShellCallOutputContentDone! + public global::tryAGI.OpenAI.BetaResponseShellCallOutputContentDoneStreamingEvent PickResponseShellCallOutputContentDone() => ResponseShellCallOutputContentDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallOutputContentDone' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickResponseInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseInProgressEvent PickResponseInProgress() => IsResponseInProgress - ? ResponseInProgress! + public global::tryAGI.OpenAI.BetaResponseInProgressEvent PickResponseInProgress() => ResponseInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseInProgress' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickResponseFailed( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFailedEvent PickResponseFailed() => IsResponseFailed - ? ResponseFailed! + public global::tryAGI.OpenAI.BetaResponseFailedEvent PickResponseFailed() => ResponseFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFailed' but the value was {ToString()}."); /// @@ -1049,8 +1049,8 @@ public bool TryPickResponseIncomplete( /// /// /// - public global::tryAGI.OpenAI.BetaResponseIncompleteEvent PickResponseIncomplete() => IsResponseIncomplete - ? ResponseIncomplete! + public global::tryAGI.OpenAI.BetaResponseIncompleteEvent PickResponseIncomplete() => ResponseIncomplete is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseIncomplete' but the value was {ToString()}."); /// @@ -1086,8 +1086,8 @@ public bool TryPickResponseOutputItemAdded( /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent PickResponseOutputItemAdded() => IsResponseOutputItemAdded - ? ResponseOutputItemAdded! + public global::tryAGI.OpenAI.BetaResponseOutputItemAddedEvent PickResponseOutputItemAdded() => ResponseOutputItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemAdded' but the value was {ToString()}."); /// @@ -1123,8 +1123,8 @@ public bool TryPickResponseOutputItemDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent PickResponseOutputItemDone() => IsResponseOutputItemDone - ? ResponseOutputItemDone! + public global::tryAGI.OpenAI.BetaResponseOutputItemDoneEvent PickResponseOutputItemDone() => ResponseOutputItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemDone' but the value was {ToString()}."); /// @@ -1160,8 +1160,8 @@ public bool TryPickResponseReasoningSummaryPartAdded( /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent PickResponseReasoningSummaryPartAdded() => IsResponseReasoningSummaryPartAdded - ? ResponseReasoningSummaryPartAdded! + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartAddedEvent PickResponseReasoningSummaryPartAdded() => ResponseReasoningSummaryPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryPartAdded' but the value was {ToString()}."); /// @@ -1197,8 +1197,8 @@ public bool TryPickResponseReasoningSummaryPartDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent PickResponseReasoningSummaryPartDone() => IsResponseReasoningSummaryPartDone - ? ResponseReasoningSummaryPartDone! + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryPartDoneEvent PickResponseReasoningSummaryPartDone() => ResponseReasoningSummaryPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryPartDone' but the value was {ToString()}."); /// @@ -1234,8 +1234,8 @@ public bool TryPickResponseReasoningSummaryTextDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent PickResponseReasoningSummaryTextDelta() => IsResponseReasoningSummaryTextDelta - ? ResponseReasoningSummaryTextDelta! + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDeltaEvent PickResponseReasoningSummaryTextDelta() => ResponseReasoningSummaryTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryTextDelta' but the value was {ToString()}."); /// @@ -1271,8 +1271,8 @@ public bool TryPickResponseReasoningSummaryTextDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent PickResponseReasoningSummaryTextDone() => IsResponseReasoningSummaryTextDone - ? ResponseReasoningSummaryTextDone! + public global::tryAGI.OpenAI.BetaResponseReasoningSummaryTextDoneEvent PickResponseReasoningSummaryTextDone() => ResponseReasoningSummaryTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryTextDone' but the value was {ToString()}."); /// @@ -1308,8 +1308,8 @@ public bool TryPickResponseReasoningTextDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent PickResponseReasoningTextDelta() => IsResponseReasoningTextDelta - ? ResponseReasoningTextDelta! + public global::tryAGI.OpenAI.BetaResponseReasoningTextDeltaEvent PickResponseReasoningTextDelta() => ResponseReasoningTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextDelta' but the value was {ToString()}."); /// @@ -1345,8 +1345,8 @@ public bool TryPickResponseReasoningTextDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent PickResponseReasoningTextDone() => IsResponseReasoningTextDone - ? ResponseReasoningTextDone! + public global::tryAGI.OpenAI.BetaResponseReasoningTextDoneEvent PickResponseReasoningTextDone() => ResponseReasoningTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextDone' but the value was {ToString()}."); /// @@ -1382,8 +1382,8 @@ public bool TryPickResponseRefusalDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent PickResponseRefusalDelta() => IsResponseRefusalDelta - ? ResponseRefusalDelta! + public global::tryAGI.OpenAI.BetaResponseRefusalDeltaEvent PickResponseRefusalDelta() => ResponseRefusalDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseRefusalDelta' but the value was {ToString()}."); /// @@ -1419,8 +1419,8 @@ public bool TryPickResponseRefusalDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent PickResponseRefusalDone() => IsResponseRefusalDone - ? ResponseRefusalDone! + public global::tryAGI.OpenAI.BetaResponseRefusalDoneEvent PickResponseRefusalDone() => ResponseRefusalDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseRefusalDone' but the value was {ToString()}."); /// @@ -1456,8 +1456,8 @@ public bool TryPickResponseOutputTextDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent PickResponseOutputTextDelta() => IsResponseOutputTextDelta - ? ResponseOutputTextDelta! + public global::tryAGI.OpenAI.BetaResponseTextDeltaEvent PickResponseOutputTextDelta() => ResponseOutputTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDelta' but the value was {ToString()}."); /// @@ -1493,8 +1493,8 @@ public bool TryPickResponseOutputTextDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseTextDoneEvent PickResponseOutputTextDone() => IsResponseOutputTextDone - ? ResponseOutputTextDone! + public global::tryAGI.OpenAI.BetaResponseTextDoneEvent PickResponseOutputTextDone() => ResponseOutputTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDone' but the value was {ToString()}."); /// @@ -1530,8 +1530,8 @@ public bool TryPickResponseWebSearchCallCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent PickResponseWebSearchCallCompleted() => IsResponseWebSearchCallCompleted - ? ResponseWebSearchCallCompleted! + public global::tryAGI.OpenAI.BetaResponseWebSearchCallCompletedEvent PickResponseWebSearchCallCompleted() => ResponseWebSearchCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallCompleted' but the value was {ToString()}."); /// @@ -1567,8 +1567,8 @@ public bool TryPickResponseWebSearchCallInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent PickResponseWebSearchCallInProgress() => IsResponseWebSearchCallInProgress - ? ResponseWebSearchCallInProgress! + public global::tryAGI.OpenAI.BetaResponseWebSearchCallInProgressEvent PickResponseWebSearchCallInProgress() => ResponseWebSearchCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallInProgress' but the value was {ToString()}."); /// @@ -1604,8 +1604,8 @@ public bool TryPickResponseWebSearchCallSearching( /// /// /// - public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent PickResponseWebSearchCallSearching() => IsResponseWebSearchCallSearching - ? ResponseWebSearchCallSearching! + public global::tryAGI.OpenAI.BetaResponseWebSearchCallSearchingEvent PickResponseWebSearchCallSearching() => ResponseWebSearchCallSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallSearching' but the value was {ToString()}."); /// @@ -1641,8 +1641,8 @@ public bool TryPickResponseImageGenerationCallCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent PickResponseImageGenerationCallCompleted() => IsResponseImageGenerationCallCompleted - ? ResponseImageGenerationCallCompleted! + public global::tryAGI.OpenAI.BetaResponseImageGenCallCompletedEvent PickResponseImageGenerationCallCompleted() => ResponseImageGenerationCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallCompleted' but the value was {ToString()}."); /// @@ -1678,8 +1678,8 @@ public bool TryPickResponseImageGenerationCallGenerating( /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent PickResponseImageGenerationCallGenerating() => IsResponseImageGenerationCallGenerating - ? ResponseImageGenerationCallGenerating! + public global::tryAGI.OpenAI.BetaResponseImageGenCallGeneratingEvent PickResponseImageGenerationCallGenerating() => ResponseImageGenerationCallGenerating is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallGenerating' but the value was {ToString()}."); /// @@ -1715,8 +1715,8 @@ public bool TryPickResponseImageGenerationCallInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent PickResponseImageGenerationCallInProgress() => IsResponseImageGenerationCallInProgress - ? ResponseImageGenerationCallInProgress! + public global::tryAGI.OpenAI.BetaResponseImageGenCallInProgressEvent PickResponseImageGenerationCallInProgress() => ResponseImageGenerationCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallInProgress' but the value was {ToString()}."); /// @@ -1752,8 +1752,8 @@ public bool TryPickResponseImageGenerationCallPartialImage( /// /// /// - public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent PickResponseImageGenerationCallPartialImage() => IsResponseImageGenerationCallPartialImage - ? ResponseImageGenerationCallPartialImage! + public global::tryAGI.OpenAI.BetaResponseImageGenCallPartialImageEvent PickResponseImageGenerationCallPartialImage() => ResponseImageGenerationCallPartialImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallPartialImage' but the value was {ToString()}."); /// @@ -1789,8 +1789,8 @@ public bool TryPickResponseMcpCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent PickResponseMcpCallArgumentsDelta() => IsResponseMcpCallArgumentsDelta - ? ResponseMcpCallArgumentsDelta! + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDeltaEvent PickResponseMcpCallArgumentsDelta() => ResponseMcpCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDelta' but the value was {ToString()}."); /// @@ -1826,8 +1826,8 @@ public bool TryPickResponseMcpCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent PickResponseMcpCallArgumentsDone() => IsResponseMcpCallArgumentsDone - ? ResponseMcpCallArgumentsDone! + public global::tryAGI.OpenAI.BetaResponseMCPCallArgumentsDoneEvent PickResponseMcpCallArgumentsDone() => ResponseMcpCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDone' but the value was {ToString()}."); /// @@ -1863,8 +1863,8 @@ public bool TryPickResponseMcpCallCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent PickResponseMcpCallCompleted() => IsResponseMcpCallCompleted - ? ResponseMcpCallCompleted! + public global::tryAGI.OpenAI.BetaResponseMCPCallCompletedEvent PickResponseMcpCallCompleted() => ResponseMcpCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallCompleted' but the value was {ToString()}."); /// @@ -1900,8 +1900,8 @@ public bool TryPickResponseMcpCallFailed( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent PickResponseMcpCallFailed() => IsResponseMcpCallFailed - ? ResponseMcpCallFailed! + public global::tryAGI.OpenAI.BetaResponseMCPCallFailedEvent PickResponseMcpCallFailed() => ResponseMcpCallFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallFailed' but the value was {ToString()}."); /// @@ -1937,8 +1937,8 @@ public bool TryPickResponseMcpCallInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent PickResponseMcpCallInProgress() => IsResponseMcpCallInProgress - ? ResponseMcpCallInProgress! + public global::tryAGI.OpenAI.BetaResponseMCPCallInProgressEvent PickResponseMcpCallInProgress() => ResponseMcpCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallInProgress' but the value was {ToString()}."); /// @@ -1974,8 +1974,8 @@ public bool TryPickResponseMcpListToolsCompleted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent PickResponseMcpListToolsCompleted() => IsResponseMcpListToolsCompleted - ? ResponseMcpListToolsCompleted! + public global::tryAGI.OpenAI.BetaResponseMCPListToolsCompletedEvent PickResponseMcpListToolsCompleted() => ResponseMcpListToolsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsCompleted' but the value was {ToString()}."); /// @@ -2011,8 +2011,8 @@ public bool TryPickResponseMcpListToolsFailed( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent PickResponseMcpListToolsFailed() => IsResponseMcpListToolsFailed - ? ResponseMcpListToolsFailed! + public global::tryAGI.OpenAI.BetaResponseMCPListToolsFailedEvent PickResponseMcpListToolsFailed() => ResponseMcpListToolsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsFailed' but the value was {ToString()}."); /// @@ -2048,8 +2048,8 @@ public bool TryPickResponseMcpListToolsInProgress( /// /// /// - public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent PickResponseMcpListToolsInProgress() => IsResponseMcpListToolsInProgress - ? ResponseMcpListToolsInProgress! + public global::tryAGI.OpenAI.BetaResponseMCPListToolsInProgressEvent PickResponseMcpListToolsInProgress() => ResponseMcpListToolsInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsInProgress' but the value was {ToString()}."); /// @@ -2085,8 +2085,8 @@ public bool TryPickResponseOutputTextAnnotationAdded( /// /// /// - public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent PickResponseOutputTextAnnotationAdded() => IsResponseOutputTextAnnotationAdded - ? ResponseOutputTextAnnotationAdded! + public global::tryAGI.OpenAI.BetaResponseOutputTextAnnotationAddedEvent PickResponseOutputTextAnnotationAdded() => ResponseOutputTextAnnotationAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextAnnotationAdded' but the value was {ToString()}."); /// @@ -2122,8 +2122,8 @@ public bool TryPickResponseQueued( /// /// /// - public global::tryAGI.OpenAI.BetaResponseQueuedEvent PickResponseQueued() => IsResponseQueued - ? ResponseQueued! + public global::tryAGI.OpenAI.BetaResponseQueuedEvent PickResponseQueued() => ResponseQueued is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseQueued' but the value was {ToString()}."); /// @@ -2159,8 +2159,8 @@ public bool TryPickResponseCustomToolCallInputDelta( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent PickResponseCustomToolCallInputDelta() => IsResponseCustomToolCallInputDelta - ? ResponseCustomToolCallInputDelta! + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDeltaEvent PickResponseCustomToolCallInputDelta() => ResponseCustomToolCallInputDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallInputDelta' but the value was {ToString()}."); /// @@ -2196,8 +2196,8 @@ public bool TryPickResponseCustomToolCallInputDone( /// /// /// - public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent PickResponseCustomToolCallInputDone() => IsResponseCustomToolCallInputDone - ? ResponseCustomToolCallInputDone! + public global::tryAGI.OpenAI.BetaResponseCustomToolCallInputDoneEvent PickResponseCustomToolCallInputDone() => ResponseCustomToolCallInputDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallInputDone' but the value was {ToString()}."); /// /// @@ -3893,241 +3893,241 @@ public bool Validate() Validate(); } - if (IsResponseAudioDelta && responseAudioDelta != null) + if (ResponseAudioDelta is { } __value0 && responseAudioDelta != null) { - return responseAudioDelta(ResponseAudioDelta!); + return responseAudioDelta(__value0); } - else if (IsResponseAudioDone && responseAudioDone != null) + else if (ResponseAudioDone is { } __value1 && responseAudioDone != null) { - return responseAudioDone(ResponseAudioDone!); + return responseAudioDone(__value1); } - else if (IsResponseAudioTranscriptDelta && responseAudioTranscriptDelta != null) + else if (ResponseAudioTranscriptDelta is { } __value2 && responseAudioTranscriptDelta != null) { - return responseAudioTranscriptDelta(ResponseAudioTranscriptDelta!); + return responseAudioTranscriptDelta(__value2); } - else if (IsResponseAudioTranscriptDone && responseAudioTranscriptDone != null) + else if (ResponseAudioTranscriptDone is { } __value3 && responseAudioTranscriptDone != null) { - return responseAudioTranscriptDone(ResponseAudioTranscriptDone!); + return responseAudioTranscriptDone(__value3); } - else if (IsResponseCodeInterpreterCallCodeDelta && responseCodeInterpreterCallCodeDelta != null) + else if (ResponseCodeInterpreterCallCodeDelta is { } __value4 && responseCodeInterpreterCallCodeDelta != null) { - return responseCodeInterpreterCallCodeDelta(ResponseCodeInterpreterCallCodeDelta!); + return responseCodeInterpreterCallCodeDelta(__value4); } - else if (IsResponseCodeInterpreterCallCodeDone && responseCodeInterpreterCallCodeDone != null) + else if (ResponseCodeInterpreterCallCodeDone is { } __value5 && responseCodeInterpreterCallCodeDone != null) { - return responseCodeInterpreterCallCodeDone(ResponseCodeInterpreterCallCodeDone!); + return responseCodeInterpreterCallCodeDone(__value5); } - else if (IsResponseCodeInterpreterCallCompleted && responseCodeInterpreterCallCompleted != null) + else if (ResponseCodeInterpreterCallCompleted is { } __value6 && responseCodeInterpreterCallCompleted != null) { - return responseCodeInterpreterCallCompleted(ResponseCodeInterpreterCallCompleted!); + return responseCodeInterpreterCallCompleted(__value6); } - else if (IsResponseCodeInterpreterCallInProgress && responseCodeInterpreterCallInProgress != null) + else if (ResponseCodeInterpreterCallInProgress is { } __value7 && responseCodeInterpreterCallInProgress != null) { - return responseCodeInterpreterCallInProgress(ResponseCodeInterpreterCallInProgress!); + return responseCodeInterpreterCallInProgress(__value7); } - else if (IsResponseCodeInterpreterCallInterpreting && responseCodeInterpreterCallInterpreting != null) + else if (ResponseCodeInterpreterCallInterpreting is { } __value8 && responseCodeInterpreterCallInterpreting != null) { - return responseCodeInterpreterCallInterpreting(ResponseCodeInterpreterCallInterpreting!); + return responseCodeInterpreterCallInterpreting(__value8); } - else if (IsResponseCompactionCompacting && responseCompactionCompacting != null) + else if (ResponseCompactionCompacting is { } __value9 && responseCompactionCompacting != null) { - return responseCompactionCompacting(ResponseCompactionCompacting!); + return responseCompactionCompacting(__value9); } - else if (IsResponseCompleted && responseCompleted != null) + else if (ResponseCompleted is { } __value10 && responseCompleted != null) { - return responseCompleted(ResponseCompleted!); + return responseCompleted(__value10); } - else if (IsResponseContentPartAdded && responseContentPartAdded != null) + else if (ResponseContentPartAdded is { } __value11 && responseContentPartAdded != null) { - return responseContentPartAdded(ResponseContentPartAdded!); + return responseContentPartAdded(__value11); } - else if (IsResponseContentPartDone && responseContentPartDone != null) + else if (ResponseContentPartDone is { } __value12 && responseContentPartDone != null) { - return responseContentPartDone(ResponseContentPartDone!); + return responseContentPartDone(__value12); } - else if (IsResponseCreated && responseCreated != null) + else if (ResponseCreated is { } __value13 && responseCreated != null) { - return responseCreated(ResponseCreated!); + return responseCreated(__value13); } - else if (IsError && error != null) + else if (Error is { } __value14 && error != null) { - return error(Error!); + return error(__value14); } - else if (IsResponseFileSearchCallCompleted && responseFileSearchCallCompleted != null) + else if (ResponseFileSearchCallCompleted is { } __value15 && responseFileSearchCallCompleted != null) { - return responseFileSearchCallCompleted(ResponseFileSearchCallCompleted!); + return responseFileSearchCallCompleted(__value15); } - else if (IsResponseFileSearchCallInProgress && responseFileSearchCallInProgress != null) + else if (ResponseFileSearchCallInProgress is { } __value16 && responseFileSearchCallInProgress != null) { - return responseFileSearchCallInProgress(ResponseFileSearchCallInProgress!); + return responseFileSearchCallInProgress(__value16); } - else if (IsResponseFileSearchCallSearching && responseFileSearchCallSearching != null) + else if (ResponseFileSearchCallSearching is { } __value17 && responseFileSearchCallSearching != null) { - return responseFileSearchCallSearching(ResponseFileSearchCallSearching!); + return responseFileSearchCallSearching(__value17); } - else if (IsResponseFunctionCallArgumentsDelta && responseFunctionCallArgumentsDelta != null) + else if (ResponseFunctionCallArgumentsDelta is { } __value18 && responseFunctionCallArgumentsDelta != null) { - return responseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDelta!); + return responseFunctionCallArgumentsDelta(__value18); } - else if (IsResponseFunctionCallArgumentsDone && responseFunctionCallArgumentsDone != null) + else if (ResponseFunctionCallArgumentsDone is { } __value19 && responseFunctionCallArgumentsDone != null) { - return responseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDone!); + return responseFunctionCallArgumentsDone(__value19); } - else if (IsResponseShellCallCommandAdded && responseShellCallCommandAdded != null) + else if (ResponseShellCallCommandAdded is { } __value20 && responseShellCallCommandAdded != null) { - return responseShellCallCommandAdded(ResponseShellCallCommandAdded!); + return responseShellCallCommandAdded(__value20); } - else if (IsResponseShellCallCommandDelta && responseShellCallCommandDelta != null) + else if (ResponseShellCallCommandDelta is { } __value21 && responseShellCallCommandDelta != null) { - return responseShellCallCommandDelta(ResponseShellCallCommandDelta!); + return responseShellCallCommandDelta(__value21); } - else if (IsResponseShellCallCommandDone && responseShellCallCommandDone != null) + else if (ResponseShellCallCommandDone is { } __value22 && responseShellCallCommandDone != null) { - return responseShellCallCommandDone(ResponseShellCallCommandDone!); + return responseShellCallCommandDone(__value22); } - else if (IsResponseShellCallOutputContentDelta && responseShellCallOutputContentDelta != null) + else if (ResponseShellCallOutputContentDelta is { } __value23 && responseShellCallOutputContentDelta != null) { - return responseShellCallOutputContentDelta(ResponseShellCallOutputContentDelta!); + return responseShellCallOutputContentDelta(__value23); } - else if (IsResponseShellCallOutputContentDone && responseShellCallOutputContentDone != null) + else if (ResponseShellCallOutputContentDone is { } __value24 && responseShellCallOutputContentDone != null) { - return responseShellCallOutputContentDone(ResponseShellCallOutputContentDone!); + return responseShellCallOutputContentDone(__value24); } - else if (IsResponseInProgress && responseInProgress != null) + else if (ResponseInProgress is { } __value25 && responseInProgress != null) { - return responseInProgress(ResponseInProgress!); + return responseInProgress(__value25); } - else if (IsResponseFailed && responseFailed != null) + else if (ResponseFailed is { } __value26 && responseFailed != null) { - return responseFailed(ResponseFailed!); + return responseFailed(__value26); } - else if (IsResponseIncomplete && responseIncomplete != null) + else if (ResponseIncomplete is { } __value27 && responseIncomplete != null) { - return responseIncomplete(ResponseIncomplete!); + return responseIncomplete(__value27); } - else if (IsResponseOutputItemAdded && responseOutputItemAdded != null) + else if (ResponseOutputItemAdded is { } __value28 && responseOutputItemAdded != null) { - return responseOutputItemAdded(ResponseOutputItemAdded!); + return responseOutputItemAdded(__value28); } - else if (IsResponseOutputItemDone && responseOutputItemDone != null) + else if (ResponseOutputItemDone is { } __value29 && responseOutputItemDone != null) { - return responseOutputItemDone(ResponseOutputItemDone!); + return responseOutputItemDone(__value29); } - else if (IsResponseReasoningSummaryPartAdded && responseReasoningSummaryPartAdded != null) + else if (ResponseReasoningSummaryPartAdded is { } __value30 && responseReasoningSummaryPartAdded != null) { - return responseReasoningSummaryPartAdded(ResponseReasoningSummaryPartAdded!); + return responseReasoningSummaryPartAdded(__value30); } - else if (IsResponseReasoningSummaryPartDone && responseReasoningSummaryPartDone != null) + else if (ResponseReasoningSummaryPartDone is { } __value31 && responseReasoningSummaryPartDone != null) { - return responseReasoningSummaryPartDone(ResponseReasoningSummaryPartDone!); + return responseReasoningSummaryPartDone(__value31); } - else if (IsResponseReasoningSummaryTextDelta && responseReasoningSummaryTextDelta != null) + else if (ResponseReasoningSummaryTextDelta is { } __value32 && responseReasoningSummaryTextDelta != null) { - return responseReasoningSummaryTextDelta(ResponseReasoningSummaryTextDelta!); + return responseReasoningSummaryTextDelta(__value32); } - else if (IsResponseReasoningSummaryTextDone && responseReasoningSummaryTextDone != null) + else if (ResponseReasoningSummaryTextDone is { } __value33 && responseReasoningSummaryTextDone != null) { - return responseReasoningSummaryTextDone(ResponseReasoningSummaryTextDone!); + return responseReasoningSummaryTextDone(__value33); } - else if (IsResponseReasoningTextDelta && responseReasoningTextDelta != null) + else if (ResponseReasoningTextDelta is { } __value34 && responseReasoningTextDelta != null) { - return responseReasoningTextDelta(ResponseReasoningTextDelta!); + return responseReasoningTextDelta(__value34); } - else if (IsResponseReasoningTextDone && responseReasoningTextDone != null) + else if (ResponseReasoningTextDone is { } __value35 && responseReasoningTextDone != null) { - return responseReasoningTextDone(ResponseReasoningTextDone!); + return responseReasoningTextDone(__value35); } - else if (IsResponseRefusalDelta && responseRefusalDelta != null) + else if (ResponseRefusalDelta is { } __value36 && responseRefusalDelta != null) { - return responseRefusalDelta(ResponseRefusalDelta!); + return responseRefusalDelta(__value36); } - else if (IsResponseRefusalDone && responseRefusalDone != null) + else if (ResponseRefusalDone is { } __value37 && responseRefusalDone != null) { - return responseRefusalDone(ResponseRefusalDone!); + return responseRefusalDone(__value37); } - else if (IsResponseOutputTextDelta && responseOutputTextDelta != null) + else if (ResponseOutputTextDelta is { } __value38 && responseOutputTextDelta != null) { - return responseOutputTextDelta(ResponseOutputTextDelta!); + return responseOutputTextDelta(__value38); } - else if (IsResponseOutputTextDone && responseOutputTextDone != null) + else if (ResponseOutputTextDone is { } __value39 && responseOutputTextDone != null) { - return responseOutputTextDone(ResponseOutputTextDone!); + return responseOutputTextDone(__value39); } - else if (IsResponseWebSearchCallCompleted && responseWebSearchCallCompleted != null) + else if (ResponseWebSearchCallCompleted is { } __value40 && responseWebSearchCallCompleted != null) { - return responseWebSearchCallCompleted(ResponseWebSearchCallCompleted!); + return responseWebSearchCallCompleted(__value40); } - else if (IsResponseWebSearchCallInProgress && responseWebSearchCallInProgress != null) + else if (ResponseWebSearchCallInProgress is { } __value41 && responseWebSearchCallInProgress != null) { - return responseWebSearchCallInProgress(ResponseWebSearchCallInProgress!); + return responseWebSearchCallInProgress(__value41); } - else if (IsResponseWebSearchCallSearching && responseWebSearchCallSearching != null) + else if (ResponseWebSearchCallSearching is { } __value42 && responseWebSearchCallSearching != null) { - return responseWebSearchCallSearching(ResponseWebSearchCallSearching!); + return responseWebSearchCallSearching(__value42); } - else if (IsResponseImageGenerationCallCompleted && responseImageGenerationCallCompleted != null) + else if (ResponseImageGenerationCallCompleted is { } __value43 && responseImageGenerationCallCompleted != null) { - return responseImageGenerationCallCompleted(ResponseImageGenerationCallCompleted!); + return responseImageGenerationCallCompleted(__value43); } - else if (IsResponseImageGenerationCallGenerating && responseImageGenerationCallGenerating != null) + else if (ResponseImageGenerationCallGenerating is { } __value44 && responseImageGenerationCallGenerating != null) { - return responseImageGenerationCallGenerating(ResponseImageGenerationCallGenerating!); + return responseImageGenerationCallGenerating(__value44); } - else if (IsResponseImageGenerationCallInProgress && responseImageGenerationCallInProgress != null) + else if (ResponseImageGenerationCallInProgress is { } __value45 && responseImageGenerationCallInProgress != null) { - return responseImageGenerationCallInProgress(ResponseImageGenerationCallInProgress!); + return responseImageGenerationCallInProgress(__value45); } - else if (IsResponseImageGenerationCallPartialImage && responseImageGenerationCallPartialImage != null) + else if (ResponseImageGenerationCallPartialImage is { } __value46 && responseImageGenerationCallPartialImage != null) { - return responseImageGenerationCallPartialImage(ResponseImageGenerationCallPartialImage!); + return responseImageGenerationCallPartialImage(__value46); } - else if (IsResponseMcpCallArgumentsDelta && responseMcpCallArgumentsDelta != null) + else if (ResponseMcpCallArgumentsDelta is { } __value47 && responseMcpCallArgumentsDelta != null) { - return responseMcpCallArgumentsDelta(ResponseMcpCallArgumentsDelta!); + return responseMcpCallArgumentsDelta(__value47); } - else if (IsResponseMcpCallArgumentsDone && responseMcpCallArgumentsDone != null) + else if (ResponseMcpCallArgumentsDone is { } __value48 && responseMcpCallArgumentsDone != null) { - return responseMcpCallArgumentsDone(ResponseMcpCallArgumentsDone!); + return responseMcpCallArgumentsDone(__value48); } - else if (IsResponseMcpCallCompleted && responseMcpCallCompleted != null) + else if (ResponseMcpCallCompleted is { } __value49 && responseMcpCallCompleted != null) { - return responseMcpCallCompleted(ResponseMcpCallCompleted!); + return responseMcpCallCompleted(__value49); } - else if (IsResponseMcpCallFailed && responseMcpCallFailed != null) + else if (ResponseMcpCallFailed is { } __value50 && responseMcpCallFailed != null) { - return responseMcpCallFailed(ResponseMcpCallFailed!); + return responseMcpCallFailed(__value50); } - else if (IsResponseMcpCallInProgress && responseMcpCallInProgress != null) + else if (ResponseMcpCallInProgress is { } __value51 && responseMcpCallInProgress != null) { - return responseMcpCallInProgress(ResponseMcpCallInProgress!); + return responseMcpCallInProgress(__value51); } - else if (IsResponseMcpListToolsCompleted && responseMcpListToolsCompleted != null) + else if (ResponseMcpListToolsCompleted is { } __value52 && responseMcpListToolsCompleted != null) { - return responseMcpListToolsCompleted(ResponseMcpListToolsCompleted!); + return responseMcpListToolsCompleted(__value52); } - else if (IsResponseMcpListToolsFailed && responseMcpListToolsFailed != null) + else if (ResponseMcpListToolsFailed is { } __value53 && responseMcpListToolsFailed != null) { - return responseMcpListToolsFailed(ResponseMcpListToolsFailed!); + return responseMcpListToolsFailed(__value53); } - else if (IsResponseMcpListToolsInProgress && responseMcpListToolsInProgress != null) + else if (ResponseMcpListToolsInProgress is { } __value54 && responseMcpListToolsInProgress != null) { - return responseMcpListToolsInProgress(ResponseMcpListToolsInProgress!); + return responseMcpListToolsInProgress(__value54); } - else if (IsResponseOutputTextAnnotationAdded && responseOutputTextAnnotationAdded != null) + else if (ResponseOutputTextAnnotationAdded is { } __value55 && responseOutputTextAnnotationAdded != null) { - return responseOutputTextAnnotationAdded(ResponseOutputTextAnnotationAdded!); + return responseOutputTextAnnotationAdded(__value55); } - else if (IsResponseQueued && responseQueued != null) + else if (ResponseQueued is { } __value56 && responseQueued != null) { - return responseQueued(ResponseQueued!); + return responseQueued(__value56); } - else if (IsResponseCustomToolCallInputDelta && responseCustomToolCallInputDelta != null) + else if (ResponseCustomToolCallInputDelta is { } __value57 && responseCustomToolCallInputDelta != null) { - return responseCustomToolCallInputDelta(ResponseCustomToolCallInputDelta!); + return responseCustomToolCallInputDelta(__value57); } - else if (IsResponseCustomToolCallInputDone && responseCustomToolCallInputDone != null) + else if (ResponseCustomToolCallInputDone is { } __value58 && responseCustomToolCallInputDone != null) { - return responseCustomToolCallInputDone(ResponseCustomToolCallInputDone!); + return responseCustomToolCallInputDone(__value58); } return default(TResult); @@ -4261,241 +4261,241 @@ public void Match( Validate(); } - if (IsResponseAudioDelta) + if (ResponseAudioDelta is { } __value0) { - responseAudioDelta?.Invoke(ResponseAudioDelta!); + responseAudioDelta?.Invoke(__value0); } - else if (IsResponseAudioDone) + else if (ResponseAudioDone is { } __value1) { - responseAudioDone?.Invoke(ResponseAudioDone!); + responseAudioDone?.Invoke(__value1); } - else if (IsResponseAudioTranscriptDelta) + else if (ResponseAudioTranscriptDelta is { } __value2) { - responseAudioTranscriptDelta?.Invoke(ResponseAudioTranscriptDelta!); + responseAudioTranscriptDelta?.Invoke(__value2); } - else if (IsResponseAudioTranscriptDone) + else if (ResponseAudioTranscriptDone is { } __value3) { - responseAudioTranscriptDone?.Invoke(ResponseAudioTranscriptDone!); + responseAudioTranscriptDone?.Invoke(__value3); } - else if (IsResponseCodeInterpreterCallCodeDelta) + else if (ResponseCodeInterpreterCallCodeDelta is { } __value4) { - responseCodeInterpreterCallCodeDelta?.Invoke(ResponseCodeInterpreterCallCodeDelta!); + responseCodeInterpreterCallCodeDelta?.Invoke(__value4); } - else if (IsResponseCodeInterpreterCallCodeDone) + else if (ResponseCodeInterpreterCallCodeDone is { } __value5) { - responseCodeInterpreterCallCodeDone?.Invoke(ResponseCodeInterpreterCallCodeDone!); + responseCodeInterpreterCallCodeDone?.Invoke(__value5); } - else if (IsResponseCodeInterpreterCallCompleted) + else if (ResponseCodeInterpreterCallCompleted is { } __value6) { - responseCodeInterpreterCallCompleted?.Invoke(ResponseCodeInterpreterCallCompleted!); + responseCodeInterpreterCallCompleted?.Invoke(__value6); } - else if (IsResponseCodeInterpreterCallInProgress) + else if (ResponseCodeInterpreterCallInProgress is { } __value7) { - responseCodeInterpreterCallInProgress?.Invoke(ResponseCodeInterpreterCallInProgress!); + responseCodeInterpreterCallInProgress?.Invoke(__value7); } - else if (IsResponseCodeInterpreterCallInterpreting) + else if (ResponseCodeInterpreterCallInterpreting is { } __value8) { - responseCodeInterpreterCallInterpreting?.Invoke(ResponseCodeInterpreterCallInterpreting!); + responseCodeInterpreterCallInterpreting?.Invoke(__value8); } - else if (IsResponseCompactionCompacting) + else if (ResponseCompactionCompacting is { } __value9) { - responseCompactionCompacting?.Invoke(ResponseCompactionCompacting!); + responseCompactionCompacting?.Invoke(__value9); } - else if (IsResponseCompleted) + else if (ResponseCompleted is { } __value10) { - responseCompleted?.Invoke(ResponseCompleted!); + responseCompleted?.Invoke(__value10); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value11) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value11); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value12) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value12); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value13) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value13); } - else if (IsError) + else if (Error is { } __value14) { - error?.Invoke(Error!); + error?.Invoke(__value14); } - else if (IsResponseFileSearchCallCompleted) + else if (ResponseFileSearchCallCompleted is { } __value15) { - responseFileSearchCallCompleted?.Invoke(ResponseFileSearchCallCompleted!); + responseFileSearchCallCompleted?.Invoke(__value15); } - else if (IsResponseFileSearchCallInProgress) + else if (ResponseFileSearchCallInProgress is { } __value16) { - responseFileSearchCallInProgress?.Invoke(ResponseFileSearchCallInProgress!); + responseFileSearchCallInProgress?.Invoke(__value16); } - else if (IsResponseFileSearchCallSearching) + else if (ResponseFileSearchCallSearching is { } __value17) { - responseFileSearchCallSearching?.Invoke(ResponseFileSearchCallSearching!); + responseFileSearchCallSearching?.Invoke(__value17); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value18) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value18); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value19) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value19); } - else if (IsResponseShellCallCommandAdded) + else if (ResponseShellCallCommandAdded is { } __value20) { - responseShellCallCommandAdded?.Invoke(ResponseShellCallCommandAdded!); + responseShellCallCommandAdded?.Invoke(__value20); } - else if (IsResponseShellCallCommandDelta) + else if (ResponseShellCallCommandDelta is { } __value21) { - responseShellCallCommandDelta?.Invoke(ResponseShellCallCommandDelta!); + responseShellCallCommandDelta?.Invoke(__value21); } - else if (IsResponseShellCallCommandDone) + else if (ResponseShellCallCommandDone is { } __value22) { - responseShellCallCommandDone?.Invoke(ResponseShellCallCommandDone!); + responseShellCallCommandDone?.Invoke(__value22); } - else if (IsResponseShellCallOutputContentDelta) + else if (ResponseShellCallOutputContentDelta is { } __value23) { - responseShellCallOutputContentDelta?.Invoke(ResponseShellCallOutputContentDelta!); + responseShellCallOutputContentDelta?.Invoke(__value23); } - else if (IsResponseShellCallOutputContentDone) + else if (ResponseShellCallOutputContentDone is { } __value24) { - responseShellCallOutputContentDone?.Invoke(ResponseShellCallOutputContentDone!); + responseShellCallOutputContentDone?.Invoke(__value24); } - else if (IsResponseInProgress) + else if (ResponseInProgress is { } __value25) { - responseInProgress?.Invoke(ResponseInProgress!); + responseInProgress?.Invoke(__value25); } - else if (IsResponseFailed) + else if (ResponseFailed is { } __value26) { - responseFailed?.Invoke(ResponseFailed!); + responseFailed?.Invoke(__value26); } - else if (IsResponseIncomplete) + else if (ResponseIncomplete is { } __value27) { - responseIncomplete?.Invoke(ResponseIncomplete!); + responseIncomplete?.Invoke(__value27); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value28) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value28); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value29) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value29); } - else if (IsResponseReasoningSummaryPartAdded) + else if (ResponseReasoningSummaryPartAdded is { } __value30) { - responseReasoningSummaryPartAdded?.Invoke(ResponseReasoningSummaryPartAdded!); + responseReasoningSummaryPartAdded?.Invoke(__value30); } - else if (IsResponseReasoningSummaryPartDone) + else if (ResponseReasoningSummaryPartDone is { } __value31) { - responseReasoningSummaryPartDone?.Invoke(ResponseReasoningSummaryPartDone!); + responseReasoningSummaryPartDone?.Invoke(__value31); } - else if (IsResponseReasoningSummaryTextDelta) + else if (ResponseReasoningSummaryTextDelta is { } __value32) { - responseReasoningSummaryTextDelta?.Invoke(ResponseReasoningSummaryTextDelta!); + responseReasoningSummaryTextDelta?.Invoke(__value32); } - else if (IsResponseReasoningSummaryTextDone) + else if (ResponseReasoningSummaryTextDone is { } __value33) { - responseReasoningSummaryTextDone?.Invoke(ResponseReasoningSummaryTextDone!); + responseReasoningSummaryTextDone?.Invoke(__value33); } - else if (IsResponseReasoningTextDelta) + else if (ResponseReasoningTextDelta is { } __value34) { - responseReasoningTextDelta?.Invoke(ResponseReasoningTextDelta!); + responseReasoningTextDelta?.Invoke(__value34); } - else if (IsResponseReasoningTextDone) + else if (ResponseReasoningTextDone is { } __value35) { - responseReasoningTextDone?.Invoke(ResponseReasoningTextDone!); + responseReasoningTextDone?.Invoke(__value35); } - else if (IsResponseRefusalDelta) + else if (ResponseRefusalDelta is { } __value36) { - responseRefusalDelta?.Invoke(ResponseRefusalDelta!); + responseRefusalDelta?.Invoke(__value36); } - else if (IsResponseRefusalDone) + else if (ResponseRefusalDone is { } __value37) { - responseRefusalDone?.Invoke(ResponseRefusalDone!); + responseRefusalDone?.Invoke(__value37); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value38) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value38); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value39) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value39); } - else if (IsResponseWebSearchCallCompleted) + else if (ResponseWebSearchCallCompleted is { } __value40) { - responseWebSearchCallCompleted?.Invoke(ResponseWebSearchCallCompleted!); + responseWebSearchCallCompleted?.Invoke(__value40); } - else if (IsResponseWebSearchCallInProgress) + else if (ResponseWebSearchCallInProgress is { } __value41) { - responseWebSearchCallInProgress?.Invoke(ResponseWebSearchCallInProgress!); + responseWebSearchCallInProgress?.Invoke(__value41); } - else if (IsResponseWebSearchCallSearching) + else if (ResponseWebSearchCallSearching is { } __value42) { - responseWebSearchCallSearching?.Invoke(ResponseWebSearchCallSearching!); + responseWebSearchCallSearching?.Invoke(__value42); } - else if (IsResponseImageGenerationCallCompleted) + else if (ResponseImageGenerationCallCompleted is { } __value43) { - responseImageGenerationCallCompleted?.Invoke(ResponseImageGenerationCallCompleted!); + responseImageGenerationCallCompleted?.Invoke(__value43); } - else if (IsResponseImageGenerationCallGenerating) + else if (ResponseImageGenerationCallGenerating is { } __value44) { - responseImageGenerationCallGenerating?.Invoke(ResponseImageGenerationCallGenerating!); + responseImageGenerationCallGenerating?.Invoke(__value44); } - else if (IsResponseImageGenerationCallInProgress) + else if (ResponseImageGenerationCallInProgress is { } __value45) { - responseImageGenerationCallInProgress?.Invoke(ResponseImageGenerationCallInProgress!); + responseImageGenerationCallInProgress?.Invoke(__value45); } - else if (IsResponseImageGenerationCallPartialImage) + else if (ResponseImageGenerationCallPartialImage is { } __value46) { - responseImageGenerationCallPartialImage?.Invoke(ResponseImageGenerationCallPartialImage!); + responseImageGenerationCallPartialImage?.Invoke(__value46); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value47) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value47); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value48) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value48); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value49) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value49); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value50) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value50); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value51) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value51); } - else if (IsResponseMcpListToolsCompleted) + else if (ResponseMcpListToolsCompleted is { } __value52) { - responseMcpListToolsCompleted?.Invoke(ResponseMcpListToolsCompleted!); + responseMcpListToolsCompleted?.Invoke(__value52); } - else if (IsResponseMcpListToolsFailed) + else if (ResponseMcpListToolsFailed is { } __value53) { - responseMcpListToolsFailed?.Invoke(ResponseMcpListToolsFailed!); + responseMcpListToolsFailed?.Invoke(__value53); } - else if (IsResponseMcpListToolsInProgress) + else if (ResponseMcpListToolsInProgress is { } __value54) { - responseMcpListToolsInProgress?.Invoke(ResponseMcpListToolsInProgress!); + responseMcpListToolsInProgress?.Invoke(__value54); } - else if (IsResponseOutputTextAnnotationAdded) + else if (ResponseOutputTextAnnotationAdded is { } __value55) { - responseOutputTextAnnotationAdded?.Invoke(ResponseOutputTextAnnotationAdded!); + responseOutputTextAnnotationAdded?.Invoke(__value55); } - else if (IsResponseQueued) + else if (ResponseQueued is { } __value56) { - responseQueued?.Invoke(ResponseQueued!); + responseQueued?.Invoke(__value56); } - else if (IsResponseCustomToolCallInputDelta) + else if (ResponseCustomToolCallInputDelta is { } __value57) { - responseCustomToolCallInputDelta?.Invoke(ResponseCustomToolCallInputDelta!); + responseCustomToolCallInputDelta?.Invoke(__value57); } - else if (IsResponseCustomToolCallInputDone) + else if (ResponseCustomToolCallInputDone is { } __value58) { - responseCustomToolCallInputDone?.Invoke(ResponseCustomToolCallInputDone!); + responseCustomToolCallInputDone?.Invoke(__value58); } } @@ -4569,241 +4569,241 @@ public void Switch( Validate(); } - if (IsResponseAudioDelta) + if (ResponseAudioDelta is { } __value0) { - responseAudioDelta?.Invoke(ResponseAudioDelta!); + responseAudioDelta?.Invoke(__value0); } - else if (IsResponseAudioDone) + else if (ResponseAudioDone is { } __value1) { - responseAudioDone?.Invoke(ResponseAudioDone!); + responseAudioDone?.Invoke(__value1); } - else if (IsResponseAudioTranscriptDelta) + else if (ResponseAudioTranscriptDelta is { } __value2) { - responseAudioTranscriptDelta?.Invoke(ResponseAudioTranscriptDelta!); + responseAudioTranscriptDelta?.Invoke(__value2); } - else if (IsResponseAudioTranscriptDone) + else if (ResponseAudioTranscriptDone is { } __value3) { - responseAudioTranscriptDone?.Invoke(ResponseAudioTranscriptDone!); + responseAudioTranscriptDone?.Invoke(__value3); } - else if (IsResponseCodeInterpreterCallCodeDelta) + else if (ResponseCodeInterpreterCallCodeDelta is { } __value4) { - responseCodeInterpreterCallCodeDelta?.Invoke(ResponseCodeInterpreterCallCodeDelta!); + responseCodeInterpreterCallCodeDelta?.Invoke(__value4); } - else if (IsResponseCodeInterpreterCallCodeDone) + else if (ResponseCodeInterpreterCallCodeDone is { } __value5) { - responseCodeInterpreterCallCodeDone?.Invoke(ResponseCodeInterpreterCallCodeDone!); + responseCodeInterpreterCallCodeDone?.Invoke(__value5); } - else if (IsResponseCodeInterpreterCallCompleted) + else if (ResponseCodeInterpreterCallCompleted is { } __value6) { - responseCodeInterpreterCallCompleted?.Invoke(ResponseCodeInterpreterCallCompleted!); + responseCodeInterpreterCallCompleted?.Invoke(__value6); } - else if (IsResponseCodeInterpreterCallInProgress) + else if (ResponseCodeInterpreterCallInProgress is { } __value7) { - responseCodeInterpreterCallInProgress?.Invoke(ResponseCodeInterpreterCallInProgress!); + responseCodeInterpreterCallInProgress?.Invoke(__value7); } - else if (IsResponseCodeInterpreterCallInterpreting) + else if (ResponseCodeInterpreterCallInterpreting is { } __value8) { - responseCodeInterpreterCallInterpreting?.Invoke(ResponseCodeInterpreterCallInterpreting!); + responseCodeInterpreterCallInterpreting?.Invoke(__value8); } - else if (IsResponseCompactionCompacting) + else if (ResponseCompactionCompacting is { } __value9) { - responseCompactionCompacting?.Invoke(ResponseCompactionCompacting!); + responseCompactionCompacting?.Invoke(__value9); } - else if (IsResponseCompleted) + else if (ResponseCompleted is { } __value10) { - responseCompleted?.Invoke(ResponseCompleted!); + responseCompleted?.Invoke(__value10); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value11) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value11); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value12) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value12); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value13) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value13); } - else if (IsError) + else if (Error is { } __value14) { - error?.Invoke(Error!); + error?.Invoke(__value14); } - else if (IsResponseFileSearchCallCompleted) + else if (ResponseFileSearchCallCompleted is { } __value15) { - responseFileSearchCallCompleted?.Invoke(ResponseFileSearchCallCompleted!); + responseFileSearchCallCompleted?.Invoke(__value15); } - else if (IsResponseFileSearchCallInProgress) + else if (ResponseFileSearchCallInProgress is { } __value16) { - responseFileSearchCallInProgress?.Invoke(ResponseFileSearchCallInProgress!); + responseFileSearchCallInProgress?.Invoke(__value16); } - else if (IsResponseFileSearchCallSearching) + else if (ResponseFileSearchCallSearching is { } __value17) { - responseFileSearchCallSearching?.Invoke(ResponseFileSearchCallSearching!); + responseFileSearchCallSearching?.Invoke(__value17); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value18) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value18); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value19) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value19); } - else if (IsResponseShellCallCommandAdded) + else if (ResponseShellCallCommandAdded is { } __value20) { - responseShellCallCommandAdded?.Invoke(ResponseShellCallCommandAdded!); + responseShellCallCommandAdded?.Invoke(__value20); } - else if (IsResponseShellCallCommandDelta) + else if (ResponseShellCallCommandDelta is { } __value21) { - responseShellCallCommandDelta?.Invoke(ResponseShellCallCommandDelta!); + responseShellCallCommandDelta?.Invoke(__value21); } - else if (IsResponseShellCallCommandDone) + else if (ResponseShellCallCommandDone is { } __value22) { - responseShellCallCommandDone?.Invoke(ResponseShellCallCommandDone!); + responseShellCallCommandDone?.Invoke(__value22); } - else if (IsResponseShellCallOutputContentDelta) + else if (ResponseShellCallOutputContentDelta is { } __value23) { - responseShellCallOutputContentDelta?.Invoke(ResponseShellCallOutputContentDelta!); + responseShellCallOutputContentDelta?.Invoke(__value23); } - else if (IsResponseShellCallOutputContentDone) + else if (ResponseShellCallOutputContentDone is { } __value24) { - responseShellCallOutputContentDone?.Invoke(ResponseShellCallOutputContentDone!); + responseShellCallOutputContentDone?.Invoke(__value24); } - else if (IsResponseInProgress) + else if (ResponseInProgress is { } __value25) { - responseInProgress?.Invoke(ResponseInProgress!); + responseInProgress?.Invoke(__value25); } - else if (IsResponseFailed) + else if (ResponseFailed is { } __value26) { - responseFailed?.Invoke(ResponseFailed!); + responseFailed?.Invoke(__value26); } - else if (IsResponseIncomplete) + else if (ResponseIncomplete is { } __value27) { - responseIncomplete?.Invoke(ResponseIncomplete!); + responseIncomplete?.Invoke(__value27); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value28) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value28); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value29) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value29); } - else if (IsResponseReasoningSummaryPartAdded) + else if (ResponseReasoningSummaryPartAdded is { } __value30) { - responseReasoningSummaryPartAdded?.Invoke(ResponseReasoningSummaryPartAdded!); + responseReasoningSummaryPartAdded?.Invoke(__value30); } - else if (IsResponseReasoningSummaryPartDone) + else if (ResponseReasoningSummaryPartDone is { } __value31) { - responseReasoningSummaryPartDone?.Invoke(ResponseReasoningSummaryPartDone!); + responseReasoningSummaryPartDone?.Invoke(__value31); } - else if (IsResponseReasoningSummaryTextDelta) + else if (ResponseReasoningSummaryTextDelta is { } __value32) { - responseReasoningSummaryTextDelta?.Invoke(ResponseReasoningSummaryTextDelta!); + responseReasoningSummaryTextDelta?.Invoke(__value32); } - else if (IsResponseReasoningSummaryTextDone) + else if (ResponseReasoningSummaryTextDone is { } __value33) { - responseReasoningSummaryTextDone?.Invoke(ResponseReasoningSummaryTextDone!); + responseReasoningSummaryTextDone?.Invoke(__value33); } - else if (IsResponseReasoningTextDelta) + else if (ResponseReasoningTextDelta is { } __value34) { - responseReasoningTextDelta?.Invoke(ResponseReasoningTextDelta!); + responseReasoningTextDelta?.Invoke(__value34); } - else if (IsResponseReasoningTextDone) + else if (ResponseReasoningTextDone is { } __value35) { - responseReasoningTextDone?.Invoke(ResponseReasoningTextDone!); + responseReasoningTextDone?.Invoke(__value35); } - else if (IsResponseRefusalDelta) + else if (ResponseRefusalDelta is { } __value36) { - responseRefusalDelta?.Invoke(ResponseRefusalDelta!); + responseRefusalDelta?.Invoke(__value36); } - else if (IsResponseRefusalDone) + else if (ResponseRefusalDone is { } __value37) { - responseRefusalDone?.Invoke(ResponseRefusalDone!); + responseRefusalDone?.Invoke(__value37); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value38) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value38); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value39) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value39); } - else if (IsResponseWebSearchCallCompleted) + else if (ResponseWebSearchCallCompleted is { } __value40) { - responseWebSearchCallCompleted?.Invoke(ResponseWebSearchCallCompleted!); + responseWebSearchCallCompleted?.Invoke(__value40); } - else if (IsResponseWebSearchCallInProgress) + else if (ResponseWebSearchCallInProgress is { } __value41) { - responseWebSearchCallInProgress?.Invoke(ResponseWebSearchCallInProgress!); + responseWebSearchCallInProgress?.Invoke(__value41); } - else if (IsResponseWebSearchCallSearching) + else if (ResponseWebSearchCallSearching is { } __value42) { - responseWebSearchCallSearching?.Invoke(ResponseWebSearchCallSearching!); + responseWebSearchCallSearching?.Invoke(__value42); } - else if (IsResponseImageGenerationCallCompleted) + else if (ResponseImageGenerationCallCompleted is { } __value43) { - responseImageGenerationCallCompleted?.Invoke(ResponseImageGenerationCallCompleted!); + responseImageGenerationCallCompleted?.Invoke(__value43); } - else if (IsResponseImageGenerationCallGenerating) + else if (ResponseImageGenerationCallGenerating is { } __value44) { - responseImageGenerationCallGenerating?.Invoke(ResponseImageGenerationCallGenerating!); + responseImageGenerationCallGenerating?.Invoke(__value44); } - else if (IsResponseImageGenerationCallInProgress) + else if (ResponseImageGenerationCallInProgress is { } __value45) { - responseImageGenerationCallInProgress?.Invoke(ResponseImageGenerationCallInProgress!); + responseImageGenerationCallInProgress?.Invoke(__value45); } - else if (IsResponseImageGenerationCallPartialImage) + else if (ResponseImageGenerationCallPartialImage is { } __value46) { - responseImageGenerationCallPartialImage?.Invoke(ResponseImageGenerationCallPartialImage!); + responseImageGenerationCallPartialImage?.Invoke(__value46); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value47) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value47); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value48) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value48); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value49) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value49); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value50) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value50); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value51) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value51); } - else if (IsResponseMcpListToolsCompleted) + else if (ResponseMcpListToolsCompleted is { } __value52) { - responseMcpListToolsCompleted?.Invoke(ResponseMcpListToolsCompleted!); + responseMcpListToolsCompleted?.Invoke(__value52); } - else if (IsResponseMcpListToolsFailed) + else if (ResponseMcpListToolsFailed is { } __value53) { - responseMcpListToolsFailed?.Invoke(ResponseMcpListToolsFailed!); + responseMcpListToolsFailed?.Invoke(__value53); } - else if (IsResponseMcpListToolsInProgress) + else if (ResponseMcpListToolsInProgress is { } __value54) { - responseMcpListToolsInProgress?.Invoke(ResponseMcpListToolsInProgress!); + responseMcpListToolsInProgress?.Invoke(__value54); } - else if (IsResponseOutputTextAnnotationAdded) + else if (ResponseOutputTextAnnotationAdded is { } __value55) { - responseOutputTextAnnotationAdded?.Invoke(ResponseOutputTextAnnotationAdded!); + responseOutputTextAnnotationAdded?.Invoke(__value55); } - else if (IsResponseQueued) + else if (ResponseQueued is { } __value56) { - responseQueued?.Invoke(ResponseQueued!); + responseQueued?.Invoke(__value56); } - else if (IsResponseCustomToolCallInputDelta) + else if (ResponseCustomToolCallInputDelta is { } __value57) { - responseCustomToolCallInputDelta?.Invoke(ResponseCustomToolCallInputDelta!); + responseCustomToolCallInputDelta?.Invoke(__value57); } - else if (IsResponseCustomToolCallInputDone) + else if (ResponseCustomToolCallInputDone is { } __value58) { - responseCustomToolCallInputDone?.Invoke(ResponseCustomToolCallInputDone!); + responseCustomToolCallInputDone?.Invoke(__value58); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseVariant3.g.cs index fd2b13987..46a5cb415 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponseVariant3.g.cs @@ -105,8 +105,7 @@ public sealed partial class BetaResponseVariant3 public string? OutputText { get; set; } /// - /// Represents token usage details including input tokens, output tokens,
- /// a breakdown of output tokens, and the total tokens used. + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::tryAGI.OpenAI.BetaResponseUsage? Usage { get; set; } @@ -194,10 +193,7 @@ public sealed partial class BetaResponseVariant3 /// /// /// - /// - /// Represents token usage details including input tokens, output tokens,
- /// a breakdown of output tokens, and the total tokens used. - /// + /// /// /// The prompt-caching options that were applied to the response. Supported for `gpt-5.6` and later models. /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEvent.g.cs index 94ba96218..bac401306 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEvent.g.cs @@ -48,8 +48,8 @@ public bool TryPickResponseCreate( /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate PickResponseCreate() => IsResponseCreate - ? ResponseCreate!.Value + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreate PickResponseCreate() => ResponseCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreate' but the value was {ToString()}."); /// @@ -108,8 +108,8 @@ public bool TryPickResponseSteer( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerEvent PickResponseSteer() => IsResponseSteer - ? ResponseSteer! + public global::tryAGI.OpenAI.BetaResponseSteerEvent PickResponseSteer() => ResponseSteer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteer' but the value was {ToString()}."); /// @@ -147,8 +147,8 @@ public bool TryPickResponseInject( /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectEvent PickResponseInject() => IsResponseInject - ? ResponseInject! + public global::tryAGI.OpenAI.BetaResponseInjectEvent PickResponseInject() => ResponseInject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseInject' but the value was {ToString()}."); /// /// @@ -273,17 +273,17 @@ public bool Validate() Validate(); } - if (IsResponseCreate && responseCreate != null) + if (ResponseCreate is { } __value0 && responseCreate != null) { - return responseCreate(ResponseCreate!); + return responseCreate(__value0); } - else if (IsResponseSteer && responseSteer != null) + else if (ResponseSteer is { } __value1 && responseSteer != null) { - return responseSteer(ResponseSteer!); + return responseSteer(__value1); } - else if (IsResponseInject && responseInject != null) + else if (ResponseInject is { } __value2 && responseInject != null) { - return responseInject(ResponseInject!); + return responseInject(__value2); } return default(TResult); @@ -305,17 +305,17 @@ public void Match( Validate(); } - if (IsResponseCreate) + if (ResponseCreate is { } __value0) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value0); } - else if (IsResponseSteer) + else if (ResponseSteer is { } __value1) { - responseSteer?.Invoke(ResponseSteer!); + responseSteer?.Invoke(__value1); } - else if (IsResponseInject) + else if (ResponseInject is { } __value2) { - responseInject?.Invoke(ResponseInject!); + responseInject?.Invoke(__value2); } } @@ -333,17 +333,17 @@ public void Switch( Validate(); } - if (IsResponseCreate) + if (ResponseCreate is { } __value0) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value0); } - else if (IsResponseSteer) + else if (ResponseSteer is { } __value1) { - responseSteer?.Invoke(ResponseSteer!); + responseSteer?.Invoke(__value1); } - else if (IsResponseInject) + else if (ResponseInject is { } __value2) { - responseInject?.Invoke(ResponseInject!); + responseInject?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEventResponseCreate.g.cs index 4938e993f..058587dda 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesClientEventResponseCreate.g.cs @@ -48,8 +48,8 @@ public bool TryPickBetaResponsesClientEventResponseCreateVariant1( /// /// /// - public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1 PickBetaResponsesClientEventResponseCreateVariant1() => IsBetaResponsesClientEventResponseCreateVariant1 - ? BetaResponsesClientEventResponseCreateVariant1! + public global::tryAGI.OpenAI.BetaResponsesClientEventResponseCreateVariant1 PickBetaResponsesClientEventResponseCreateVariant1() => BetaResponsesClientEventResponseCreateVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponsesClientEventResponseCreateVariant1' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickBetaCreateResponse( /// /// /// - public global::tryAGI.OpenAI.BetaCreateResponse PickBetaCreateResponse() => IsBetaCreateResponse - ? BetaCreateResponse!.Value + public global::tryAGI.OpenAI.BetaCreateResponse PickBetaCreateResponse() => BetaCreateResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaCreateResponse' but the value was {ToString()}."); /// /// @@ -183,13 +183,13 @@ public bool Validate() Validate(); } - if (IsBetaResponsesClientEventResponseCreateVariant1 && betaResponsesClientEventResponseCreateVariant1 != null) + if (BetaResponsesClientEventResponseCreateVariant1 is { } __value0 && betaResponsesClientEventResponseCreateVariant1 != null) { - return betaResponsesClientEventResponseCreateVariant1(BetaResponsesClientEventResponseCreateVariant1!); + return betaResponsesClientEventResponseCreateVariant1(__value0); } - else if (IsBetaCreateResponse && betaCreateResponse != null) + else if (BetaCreateResponse is { } __value1 && betaCreateResponse != null) { - return betaCreateResponse(BetaCreateResponse!); + return betaCreateResponse(__value1); } return default(TResult); @@ -209,13 +209,13 @@ public void Match( Validate(); } - if (IsBetaResponsesClientEventResponseCreateVariant1) + if (BetaResponsesClientEventResponseCreateVariant1 is { } __value0) { - betaResponsesClientEventResponseCreateVariant1?.Invoke(BetaResponsesClientEventResponseCreateVariant1!); + betaResponsesClientEventResponseCreateVariant1?.Invoke(__value0); } - else if (IsBetaCreateResponse) + else if (BetaCreateResponse is { } __value1) { - betaCreateResponse?.Invoke(BetaCreateResponse!); + betaCreateResponse?.Invoke(__value1); } } @@ -232,13 +232,13 @@ public void Switch( Validate(); } - if (IsBetaResponsesClientEventResponseCreateVariant1) + if (BetaResponsesClientEventResponseCreateVariant1 is { } __value0) { - betaResponsesClientEventResponseCreateVariant1?.Invoke(BetaResponsesClientEventResponseCreateVariant1!); + betaResponsesClientEventResponseCreateVariant1?.Invoke(__value0); } - else if (IsBetaCreateResponse) + else if (BetaCreateResponse is { } __value1) { - betaCreateResponse?.Invoke(BetaCreateResponse!); + betaCreateResponse?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesServerEvent.g.cs index 8758996d8..a97208a34 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesServerEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaResponseAudioWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioWsDelta() => IsBetaResponseAudioWsDelta - ? BetaResponseAudioWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioWsDelta() => BetaResponseAudioWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseAudioWsDelta' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaResponseAudioWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioWsDone() => IsBetaResponseAudioWsDone - ? BetaResponseAudioWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioWsDone() => BetaResponseAudioWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseAudioWsDone' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickBetaResponseAudioTranscriptWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioTranscriptWsDelta() => IsBetaResponseAudioTranscriptWsDelta - ? BetaResponseAudioTranscriptWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioTranscriptWsDelta() => BetaResponseAudioTranscriptWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseAudioTranscriptWsDelta' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickBetaResponseAudioTranscriptWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioTranscriptWsDone() => IsBetaResponseAudioTranscriptWsDone - ? BetaResponseAudioTranscriptWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseAudioTranscriptWsDone() => BetaResponseAudioTranscriptWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseAudioTranscriptWsDone' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickBetaResponseCodeInterpreterCallCodeWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallCodeWsDelta() => IsBetaResponseCodeInterpreterCallCodeWsDelta - ? BetaResponseCodeInterpreterCallCodeWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallCodeWsDelta() => BetaResponseCodeInterpreterCallCodeWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCodeInterpreterCallCodeWsDelta' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickBetaResponseCodeInterpreterCallCodeWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallCodeWsDone() => IsBetaResponseCodeInterpreterCallCodeWsDone - ? BetaResponseCodeInterpreterCallCodeWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallCodeWsDone() => BetaResponseCodeInterpreterCallCodeWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCodeInterpreterCallCodeWsDone' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickBetaResponseCodeInterpreterCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallWsCompleted() => IsBetaResponseCodeInterpreterCallWsCompleted - ? BetaResponseCodeInterpreterCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallWsCompleted() => BetaResponseCodeInterpreterCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCodeInterpreterCallWsCompleted' but the value was {ToString()}."); /// @@ -301,8 +301,8 @@ public bool TryPickBetaResponseCodeInterpreterCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallInWsProgress() => IsBetaResponseCodeInterpreterCallInWsProgress - ? BetaResponseCodeInterpreterCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallInWsProgress() => BetaResponseCodeInterpreterCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCodeInterpreterCallInWsProgress' but the value was {ToString()}."); /// @@ -338,8 +338,8 @@ public bool TryPickBetaResponseCodeInterpreterCallWsInterpreting( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallWsInterpreting() => IsBetaResponseCodeInterpreterCallWsInterpreting - ? BetaResponseCodeInterpreterCallWsInterpreting!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCodeInterpreterCallWsInterpreting() => BetaResponseCodeInterpreterCallWsInterpreting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCodeInterpreterCallWsInterpreting' but the value was {ToString()}."); /// @@ -375,8 +375,8 @@ public bool TryPickBetaResponseCompactionWsCompacting( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCompactionWsCompacting() => IsBetaResponseCompactionWsCompacting - ? BetaResponseCompactionWsCompacting!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCompactionWsCompacting() => BetaResponseCompactionWsCompacting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCompactionWsCompacting' but the value was {ToString()}."); /// @@ -412,8 +412,8 @@ public bool TryPickBetaResponseWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWsCompleted() => IsBetaResponseWsCompleted - ? BetaResponseWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWsCompleted() => BetaResponseWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWsCompleted' but the value was {ToString()}."); /// @@ -449,8 +449,8 @@ public bool TryPickBetaResponseContentPartWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseContentPartWsAdded() => IsBetaResponseContentPartWsAdded - ? BetaResponseContentPartWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseContentPartWsAdded() => BetaResponseContentPartWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseContentPartWsAdded' but the value was {ToString()}."); /// @@ -486,8 +486,8 @@ public bool TryPickBetaResponseContentPartWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseContentPartWsDone() => IsBetaResponseContentPartWsDone - ? BetaResponseContentPartWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseContentPartWsDone() => BetaResponseContentPartWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseContentPartWsDone' but the value was {ToString()}."); /// @@ -523,8 +523,8 @@ public bool TryPickBetaResponseWsCreated( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWsCreated() => IsBetaResponseWsCreated - ? BetaResponseWsCreated!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWsCreated() => BetaResponseWsCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWsCreated' but the value was {ToString()}."); /// @@ -560,8 +560,8 @@ public bool TryPickBetaResponseFileSearchCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseFileSearchCallWsCompleted() => IsBetaResponseFileSearchCallWsCompleted - ? BetaResponseFileSearchCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseFileSearchCallWsCompleted() => BetaResponseFileSearchCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseFileSearchCallWsCompleted' but the value was {ToString()}."); /// @@ -597,8 +597,8 @@ public bool TryPickBetaResponseFileSearchCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseFileSearchCallInWsProgress() => IsBetaResponseFileSearchCallInWsProgress - ? BetaResponseFileSearchCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseFileSearchCallInWsProgress() => BetaResponseFileSearchCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseFileSearchCallInWsProgress' but the value was {ToString()}."); /// @@ -634,8 +634,8 @@ public bool TryPickBetaResponseFileSearchCallWsSearching( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseFileSearchCallWsSearching() => IsBetaResponseFileSearchCallWsSearching - ? BetaResponseFileSearchCallWsSearching!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseFileSearchCallWsSearching() => BetaResponseFileSearchCallWsSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseFileSearchCallWsSearching' but the value was {ToString()}."); /// @@ -671,8 +671,8 @@ public bool TryPickBetaResponseFunctionCallArgumentsWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseFunctionCallArgumentsWsDelta() => IsBetaResponseFunctionCallArgumentsWsDelta - ? BetaResponseFunctionCallArgumentsWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseFunctionCallArgumentsWsDelta() => BetaResponseFunctionCallArgumentsWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseFunctionCallArgumentsWsDelta' but the value was {ToString()}."); /// @@ -708,8 +708,8 @@ public bool TryPickBetaResponseFunctionCallArgumentsWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseFunctionCallArgumentsWsDone() => IsBetaResponseFunctionCallArgumentsWsDone - ? BetaResponseFunctionCallArgumentsWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseFunctionCallArgumentsWsDone() => BetaResponseFunctionCallArgumentsWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseFunctionCallArgumentsWsDone' but the value was {ToString()}."); /// @@ -745,8 +745,8 @@ public bool TryPickBetaResponseShellCallCommandWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallCommandWsAdded() => IsBetaResponseShellCallCommandWsAdded - ? BetaResponseShellCallCommandWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallCommandWsAdded() => BetaResponseShellCallCommandWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseShellCallCommandWsAdded' but the value was {ToString()}."); /// @@ -782,8 +782,8 @@ public bool TryPickBetaResponseShellCallCommandWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallCommandWsDelta() => IsBetaResponseShellCallCommandWsDelta - ? BetaResponseShellCallCommandWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallCommandWsDelta() => BetaResponseShellCallCommandWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseShellCallCommandWsDelta' but the value was {ToString()}."); /// @@ -819,8 +819,8 @@ public bool TryPickBetaResponseShellCallCommandWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallCommandWsDone() => IsBetaResponseShellCallCommandWsDone - ? BetaResponseShellCallCommandWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallCommandWsDone() => BetaResponseShellCallCommandWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseShellCallCommandWsDone' but the value was {ToString()}."); /// @@ -856,8 +856,8 @@ public bool TryPickBetaResponseShellCallOutputContentWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallOutputContentWsDelta() => IsBetaResponseShellCallOutputContentWsDelta - ? BetaResponseShellCallOutputContentWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallOutputContentWsDelta() => BetaResponseShellCallOutputContentWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseShellCallOutputContentWsDelta' but the value was {ToString()}."); /// @@ -893,8 +893,8 @@ public bool TryPickBetaResponseShellCallOutputContentWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallOutputContentWsDone() => IsBetaResponseShellCallOutputContentWsDone - ? BetaResponseShellCallOutputContentWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseShellCallOutputContentWsDone() => BetaResponseShellCallOutputContentWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseShellCallOutputContentWsDone' but the value was {ToString()}."); /// @@ -930,8 +930,8 @@ public bool TryPickBetaResponseInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseInWsProgress() => IsBetaResponseInWsProgress - ? BetaResponseInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseInWsProgress() => BetaResponseInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseInWsProgress' but the value was {ToString()}."); /// @@ -967,8 +967,8 @@ public bool TryPickBetaResponseWsFailed( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWsFailed() => IsBetaResponseWsFailed - ? BetaResponseWsFailed!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWsFailed() => BetaResponseWsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWsFailed' but the value was {ToString()}."); /// @@ -1007,8 +1007,8 @@ public bool TryPickBetaResponseWsIncomplete( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWsIncomplete() => IsBetaResponseWsIncomplete - ? BetaResponseWsIncomplete!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWsIncomplete() => BetaResponseWsIncomplete is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWsIncomplete' but the value was {ToString()}."); /// @@ -1044,8 +1044,8 @@ public bool TryPickBetaResponseOutputItemWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseOutputItemWsAdded() => IsBetaResponseOutputItemWsAdded - ? BetaResponseOutputItemWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseOutputItemWsAdded() => BetaResponseOutputItemWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseOutputItemWsAdded' but the value was {ToString()}."); /// @@ -1081,8 +1081,8 @@ public bool TryPickBetaResponseOutputItemWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseOutputItemWsDone() => IsBetaResponseOutputItemWsDone - ? BetaResponseOutputItemWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseOutputItemWsDone() => BetaResponseOutputItemWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseOutputItemWsDone' but the value was {ToString()}."); /// @@ -1118,8 +1118,8 @@ public bool TryPickBetaResponseReasoningSummaryPartWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryPartWsAdded() => IsBetaResponseReasoningSummaryPartWsAdded - ? BetaResponseReasoningSummaryPartWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryPartWsAdded() => BetaResponseReasoningSummaryPartWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseReasoningSummaryPartWsAdded' but the value was {ToString()}."); /// @@ -1155,8 +1155,8 @@ public bool TryPickBetaResponseReasoningSummaryPartWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryPartWsDone() => IsBetaResponseReasoningSummaryPartWsDone - ? BetaResponseReasoningSummaryPartWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryPartWsDone() => BetaResponseReasoningSummaryPartWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseReasoningSummaryPartWsDone' but the value was {ToString()}."); /// @@ -1192,8 +1192,8 @@ public bool TryPickBetaResponseReasoningSummaryTextWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryTextWsDelta() => IsBetaResponseReasoningSummaryTextWsDelta - ? BetaResponseReasoningSummaryTextWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryTextWsDelta() => BetaResponseReasoningSummaryTextWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseReasoningSummaryTextWsDelta' but the value was {ToString()}."); /// @@ -1229,8 +1229,8 @@ public bool TryPickBetaResponseReasoningSummaryTextWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryTextWsDone() => IsBetaResponseReasoningSummaryTextWsDone - ? BetaResponseReasoningSummaryTextWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningSummaryTextWsDone() => BetaResponseReasoningSummaryTextWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseReasoningSummaryTextWsDone' but the value was {ToString()}."); /// @@ -1266,8 +1266,8 @@ public bool TryPickBetaResponseReasoningTextWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningTextWsDelta() => IsBetaResponseReasoningTextWsDelta - ? BetaResponseReasoningTextWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningTextWsDelta() => BetaResponseReasoningTextWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseReasoningTextWsDelta' but the value was {ToString()}."); /// @@ -1303,8 +1303,8 @@ public bool TryPickBetaResponseReasoningTextWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningTextWsDone() => IsBetaResponseReasoningTextWsDone - ? BetaResponseReasoningTextWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseReasoningTextWsDone() => BetaResponseReasoningTextWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseReasoningTextWsDone' but the value was {ToString()}."); /// @@ -1340,8 +1340,8 @@ public bool TryPickBetaResponseRefusalWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseRefusalWsDelta() => IsBetaResponseRefusalWsDelta - ? BetaResponseRefusalWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseRefusalWsDelta() => BetaResponseRefusalWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseRefusalWsDelta' but the value was {ToString()}."); /// @@ -1377,8 +1377,8 @@ public bool TryPickBetaResponseRefusalWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseRefusalWsDone() => IsBetaResponseRefusalWsDone - ? BetaResponseRefusalWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseRefusalWsDone() => BetaResponseRefusalWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseRefusalWsDone' but the value was {ToString()}."); /// @@ -1414,8 +1414,8 @@ public bool TryPickBetaResponseTextWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseTextWsDelta() => IsBetaResponseTextWsDelta - ? BetaResponseTextWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseTextWsDelta() => BetaResponseTextWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseTextWsDelta' but the value was {ToString()}."); /// @@ -1451,8 +1451,8 @@ public bool TryPickBetaResponseTextWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseTextWsDone() => IsBetaResponseTextWsDone - ? BetaResponseTextWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseTextWsDone() => BetaResponseTextWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseTextWsDone' but the value was {ToString()}."); /// @@ -1488,8 +1488,8 @@ public bool TryPickBetaResponseWebSearchCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWebSearchCallWsCompleted() => IsBetaResponseWebSearchCallWsCompleted - ? BetaResponseWebSearchCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWebSearchCallWsCompleted() => BetaResponseWebSearchCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWebSearchCallWsCompleted' but the value was {ToString()}."); /// @@ -1525,8 +1525,8 @@ public bool TryPickBetaResponseWebSearchCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWebSearchCallInWsProgress() => IsBetaResponseWebSearchCallInWsProgress - ? BetaResponseWebSearchCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWebSearchCallInWsProgress() => BetaResponseWebSearchCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWebSearchCallInWsProgress' but the value was {ToString()}."); /// @@ -1562,8 +1562,8 @@ public bool TryPickBetaResponseWebSearchCallWsSearching( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWebSearchCallWsSearching() => IsBetaResponseWebSearchCallWsSearching - ? BetaResponseWebSearchCallWsSearching!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWebSearchCallWsSearching() => BetaResponseWebSearchCallWsSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWebSearchCallWsSearching' but the value was {ToString()}."); /// @@ -1599,8 +1599,8 @@ public bool TryPickBetaResponseImageGenCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallWsCompleted() => IsBetaResponseImageGenCallWsCompleted - ? BetaResponseImageGenCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallWsCompleted() => BetaResponseImageGenCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseImageGenCallWsCompleted' but the value was {ToString()}."); /// @@ -1636,8 +1636,8 @@ public bool TryPickBetaResponseImageGenCallWsGenerating( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallWsGenerating() => IsBetaResponseImageGenCallWsGenerating - ? BetaResponseImageGenCallWsGenerating!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallWsGenerating() => BetaResponseImageGenCallWsGenerating is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseImageGenCallWsGenerating' but the value was {ToString()}."); /// @@ -1673,8 +1673,8 @@ public bool TryPickBetaResponseImageGenCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallInWsProgress() => IsBetaResponseImageGenCallInWsProgress - ? BetaResponseImageGenCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallInWsProgress() => BetaResponseImageGenCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseImageGenCallInWsProgress' but the value was {ToString()}."); /// @@ -1710,8 +1710,8 @@ public bool TryPickBetaResponseImageGenCallPartialWsImage( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallPartialWsImage() => IsBetaResponseImageGenCallPartialWsImage - ? BetaResponseImageGenCallPartialWsImage!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseImageGenCallPartialWsImage() => BetaResponseImageGenCallPartialWsImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseImageGenCallPartialWsImage' but the value was {ToString()}."); /// @@ -1747,8 +1747,8 @@ public bool TryPickBetaResponseMcpCallArgumentsWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallArgumentsWsDelta() => IsBetaResponseMcpCallArgumentsWsDelta - ? BetaResponseMcpCallArgumentsWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallArgumentsWsDelta() => BetaResponseMcpCallArgumentsWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpCallArgumentsWsDelta' but the value was {ToString()}."); /// @@ -1784,8 +1784,8 @@ public bool TryPickBetaResponseMcpCallArgumentsWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallArgumentsWsDone() => IsBetaResponseMcpCallArgumentsWsDone - ? BetaResponseMcpCallArgumentsWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallArgumentsWsDone() => BetaResponseMcpCallArgumentsWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpCallArgumentsWsDone' but the value was {ToString()}."); /// @@ -1821,8 +1821,8 @@ public bool TryPickBetaResponseMcpCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallWsCompleted() => IsBetaResponseMcpCallWsCompleted - ? BetaResponseMcpCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallWsCompleted() => BetaResponseMcpCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpCallWsCompleted' but the value was {ToString()}."); /// @@ -1858,8 +1858,8 @@ public bool TryPickBetaResponseMcpCallWsFailed( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallWsFailed() => IsBetaResponseMcpCallWsFailed - ? BetaResponseMcpCallWsFailed!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallWsFailed() => BetaResponseMcpCallWsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpCallWsFailed' but the value was {ToString()}."); /// @@ -1895,8 +1895,8 @@ public bool TryPickBetaResponseMcpCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallInWsProgress() => IsBetaResponseMcpCallInWsProgress - ? BetaResponseMcpCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpCallInWsProgress() => BetaResponseMcpCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpCallInWsProgress' but the value was {ToString()}."); /// @@ -1932,8 +1932,8 @@ public bool TryPickBetaResponseMcpListToolsWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpListToolsWsCompleted() => IsBetaResponseMcpListToolsWsCompleted - ? BetaResponseMcpListToolsWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpListToolsWsCompleted() => BetaResponseMcpListToolsWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpListToolsWsCompleted' but the value was {ToString()}."); /// @@ -1969,8 +1969,8 @@ public bool TryPickBetaResponseMcpListToolsWsFailed( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpListToolsWsFailed() => IsBetaResponseMcpListToolsWsFailed - ? BetaResponseMcpListToolsWsFailed!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpListToolsWsFailed() => BetaResponseMcpListToolsWsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpListToolsWsFailed' but the value was {ToString()}."); /// @@ -2006,8 +2006,8 @@ public bool TryPickBetaResponseMcpListToolsInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpListToolsInWsProgress() => IsBetaResponseMcpListToolsInWsProgress - ? BetaResponseMcpListToolsInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseMcpListToolsInWsProgress() => BetaResponseMcpListToolsInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseMcpListToolsInWsProgress' but the value was {ToString()}."); /// @@ -2043,8 +2043,8 @@ public bool TryPickBetaResponseOutputTextAnnotationWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseOutputTextAnnotationWsAdded() => IsBetaResponseOutputTextAnnotationWsAdded - ? BetaResponseOutputTextAnnotationWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseOutputTextAnnotationWsAdded() => BetaResponseOutputTextAnnotationWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseOutputTextAnnotationWsAdded' but the value was {ToString()}."); /// @@ -2080,8 +2080,8 @@ public bool TryPickBetaResponseWsQueued( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseWsQueued() => IsBetaResponseWsQueued - ? BetaResponseWsQueued!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseWsQueued() => BetaResponseWsQueued is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseWsQueued' but the value was {ToString()}."); /// @@ -2117,8 +2117,8 @@ public bool TryPickBetaResponseCustomToolCallInputWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCustomToolCallInputWsDelta() => IsBetaResponseCustomToolCallInputWsDelta - ? BetaResponseCustomToolCallInputWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCustomToolCallInputWsDelta() => BetaResponseCustomToolCallInputWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCustomToolCallInputWsDelta' but the value was {ToString()}."); /// @@ -2154,8 +2154,8 @@ public bool TryPickBetaResponseCustomToolCallInputWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickBetaResponseCustomToolCallInputWsDone() => IsBetaResponseCustomToolCallInputWsDone - ? BetaResponseCustomToolCallInputWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickBetaResponseCustomToolCallInputWsDone() => BetaResponseCustomToolCallInputWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponseCustomToolCallInputWsDone' but the value was {ToString()}."); /// @@ -2191,8 +2191,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.BetaResponseWsError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.BetaResponseWsError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -2236,8 +2236,8 @@ public bool TryPickResponseSteerAccepted( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent PickResponseSteerAccepted() => IsResponseSteerAccepted - ? ResponseSteerAccepted! + public global::tryAGI.OpenAI.BetaResponseSteerAcceptedEvent PickResponseSteerAccepted() => ResponseSteerAccepted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerAccepted' but the value was {ToString()}."); /// @@ -2286,8 +2286,8 @@ public bool TryPickResponseSteerPending( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent PickResponseSteerPending() => IsResponseSteerPending - ? ResponseSteerPending! + public global::tryAGI.OpenAI.BetaResponseSteerPendingEvent PickResponseSteerPending() => ResponseSteerPending is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerPending' but the value was {ToString()}."); /// @@ -2329,8 +2329,8 @@ public bool TryPickResponseSteerFailed( /// /// /// - public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent PickResponseSteerFailed() => IsResponseSteerFailed - ? ResponseSteerFailed! + public global::tryAGI.OpenAI.BetaResponseSteerFailedEvent PickResponseSteerFailed() => ResponseSteerFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerFailed' but the value was {ToString()}."); /// @@ -2367,8 +2367,8 @@ public bool TryPickResponseInjectCreated( /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent PickResponseInjectCreated() => IsResponseInjectCreated - ? ResponseInjectCreated! + public global::tryAGI.OpenAI.BetaResponseInjectCreatedEvent PickResponseInjectCreated() => ResponseInjectCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseInjectCreated' but the value was {ToString()}."); /// @@ -2406,8 +2406,8 @@ public bool TryPickResponseInjectFailed( /// /// /// - public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent PickResponseInjectFailed() => IsResponseInjectFailed - ? ResponseInjectFailed! + public global::tryAGI.OpenAI.BetaResponseInjectFailedEvent PickResponseInjectFailed() => ResponseInjectFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseInjectFailed' but the value was {ToString()}."); /// /// @@ -4240,261 +4240,261 @@ public bool Validate() Validate(); } - if (IsBetaResponseAudioWsDelta && betaResponseAudioWsDelta != null) + if (BetaResponseAudioWsDelta is { } __value0 && betaResponseAudioWsDelta != null) { - return betaResponseAudioWsDelta(BetaResponseAudioWsDelta!); + return betaResponseAudioWsDelta(__value0); } - else if (IsBetaResponseAudioWsDone && betaResponseAudioWsDone != null) + else if (BetaResponseAudioWsDone is { } __value1 && betaResponseAudioWsDone != null) { - return betaResponseAudioWsDone(BetaResponseAudioWsDone!); + return betaResponseAudioWsDone(__value1); } - else if (IsBetaResponseAudioTranscriptWsDelta && betaResponseAudioTranscriptWsDelta != null) + else if (BetaResponseAudioTranscriptWsDelta is { } __value2 && betaResponseAudioTranscriptWsDelta != null) { - return betaResponseAudioTranscriptWsDelta(BetaResponseAudioTranscriptWsDelta!); + return betaResponseAudioTranscriptWsDelta(__value2); } - else if (IsBetaResponseAudioTranscriptWsDone && betaResponseAudioTranscriptWsDone != null) + else if (BetaResponseAudioTranscriptWsDone is { } __value3 && betaResponseAudioTranscriptWsDone != null) { - return betaResponseAudioTranscriptWsDone(BetaResponseAudioTranscriptWsDone!); + return betaResponseAudioTranscriptWsDone(__value3); } - else if (IsBetaResponseCodeInterpreterCallCodeWsDelta && betaResponseCodeInterpreterCallCodeWsDelta != null) + else if (BetaResponseCodeInterpreterCallCodeWsDelta is { } __value4 && betaResponseCodeInterpreterCallCodeWsDelta != null) { - return betaResponseCodeInterpreterCallCodeWsDelta(BetaResponseCodeInterpreterCallCodeWsDelta!); + return betaResponseCodeInterpreterCallCodeWsDelta(__value4); } - else if (IsBetaResponseCodeInterpreterCallCodeWsDone && betaResponseCodeInterpreterCallCodeWsDone != null) + else if (BetaResponseCodeInterpreterCallCodeWsDone is { } __value5 && betaResponseCodeInterpreterCallCodeWsDone != null) { - return betaResponseCodeInterpreterCallCodeWsDone(BetaResponseCodeInterpreterCallCodeWsDone!); + return betaResponseCodeInterpreterCallCodeWsDone(__value5); } - else if (IsBetaResponseCodeInterpreterCallWsCompleted && betaResponseCodeInterpreterCallWsCompleted != null) + else if (BetaResponseCodeInterpreterCallWsCompleted is { } __value6 && betaResponseCodeInterpreterCallWsCompleted != null) { - return betaResponseCodeInterpreterCallWsCompleted(BetaResponseCodeInterpreterCallWsCompleted!); + return betaResponseCodeInterpreterCallWsCompleted(__value6); } - else if (IsBetaResponseCodeInterpreterCallInWsProgress && betaResponseCodeInterpreterCallInWsProgress != null) + else if (BetaResponseCodeInterpreterCallInWsProgress is { } __value7 && betaResponseCodeInterpreterCallInWsProgress != null) { - return betaResponseCodeInterpreterCallInWsProgress(BetaResponseCodeInterpreterCallInWsProgress!); + return betaResponseCodeInterpreterCallInWsProgress(__value7); } - else if (IsBetaResponseCodeInterpreterCallWsInterpreting && betaResponseCodeInterpreterCallWsInterpreting != null) + else if (BetaResponseCodeInterpreterCallWsInterpreting is { } __value8 && betaResponseCodeInterpreterCallWsInterpreting != null) { - return betaResponseCodeInterpreterCallWsInterpreting(BetaResponseCodeInterpreterCallWsInterpreting!); + return betaResponseCodeInterpreterCallWsInterpreting(__value8); } - else if (IsBetaResponseCompactionWsCompacting && betaResponseCompactionWsCompacting != null) + else if (BetaResponseCompactionWsCompacting is { } __value9 && betaResponseCompactionWsCompacting != null) { - return betaResponseCompactionWsCompacting(BetaResponseCompactionWsCompacting!); + return betaResponseCompactionWsCompacting(__value9); } - else if (IsBetaResponseWsCompleted && betaResponseWsCompleted != null) + else if (BetaResponseWsCompleted is { } __value10 && betaResponseWsCompleted != null) { - return betaResponseWsCompleted(BetaResponseWsCompleted!); + return betaResponseWsCompleted(__value10); } - else if (IsBetaResponseContentPartWsAdded && betaResponseContentPartWsAdded != null) + else if (BetaResponseContentPartWsAdded is { } __value11 && betaResponseContentPartWsAdded != null) { - return betaResponseContentPartWsAdded(BetaResponseContentPartWsAdded!); + return betaResponseContentPartWsAdded(__value11); } - else if (IsBetaResponseContentPartWsDone && betaResponseContentPartWsDone != null) + else if (BetaResponseContentPartWsDone is { } __value12 && betaResponseContentPartWsDone != null) { - return betaResponseContentPartWsDone(BetaResponseContentPartWsDone!); + return betaResponseContentPartWsDone(__value12); } - else if (IsBetaResponseWsCreated && betaResponseWsCreated != null) + else if (BetaResponseWsCreated is { } __value13 && betaResponseWsCreated != null) { - return betaResponseWsCreated(BetaResponseWsCreated!); + return betaResponseWsCreated(__value13); } - else if (IsBetaResponseFileSearchCallWsCompleted && betaResponseFileSearchCallWsCompleted != null) + else if (BetaResponseFileSearchCallWsCompleted is { } __value14 && betaResponseFileSearchCallWsCompleted != null) { - return betaResponseFileSearchCallWsCompleted(BetaResponseFileSearchCallWsCompleted!); + return betaResponseFileSearchCallWsCompleted(__value14); } - else if (IsBetaResponseFileSearchCallInWsProgress && betaResponseFileSearchCallInWsProgress != null) + else if (BetaResponseFileSearchCallInWsProgress is { } __value15 && betaResponseFileSearchCallInWsProgress != null) { - return betaResponseFileSearchCallInWsProgress(BetaResponseFileSearchCallInWsProgress!); + return betaResponseFileSearchCallInWsProgress(__value15); } - else if (IsBetaResponseFileSearchCallWsSearching && betaResponseFileSearchCallWsSearching != null) + else if (BetaResponseFileSearchCallWsSearching is { } __value16 && betaResponseFileSearchCallWsSearching != null) { - return betaResponseFileSearchCallWsSearching(BetaResponseFileSearchCallWsSearching!); + return betaResponseFileSearchCallWsSearching(__value16); } - else if (IsBetaResponseFunctionCallArgumentsWsDelta && betaResponseFunctionCallArgumentsWsDelta != null) + else if (BetaResponseFunctionCallArgumentsWsDelta is { } __value17 && betaResponseFunctionCallArgumentsWsDelta != null) { - return betaResponseFunctionCallArgumentsWsDelta(BetaResponseFunctionCallArgumentsWsDelta!); + return betaResponseFunctionCallArgumentsWsDelta(__value17); } - else if (IsBetaResponseFunctionCallArgumentsWsDone && betaResponseFunctionCallArgumentsWsDone != null) + else if (BetaResponseFunctionCallArgumentsWsDone is { } __value18 && betaResponseFunctionCallArgumentsWsDone != null) { - return betaResponseFunctionCallArgumentsWsDone(BetaResponseFunctionCallArgumentsWsDone!); + return betaResponseFunctionCallArgumentsWsDone(__value18); } - else if (IsBetaResponseShellCallCommandWsAdded && betaResponseShellCallCommandWsAdded != null) + else if (BetaResponseShellCallCommandWsAdded is { } __value19 && betaResponseShellCallCommandWsAdded != null) { - return betaResponseShellCallCommandWsAdded(BetaResponseShellCallCommandWsAdded!); + return betaResponseShellCallCommandWsAdded(__value19); } - else if (IsBetaResponseShellCallCommandWsDelta && betaResponseShellCallCommandWsDelta != null) + else if (BetaResponseShellCallCommandWsDelta is { } __value20 && betaResponseShellCallCommandWsDelta != null) { - return betaResponseShellCallCommandWsDelta(BetaResponseShellCallCommandWsDelta!); + return betaResponseShellCallCommandWsDelta(__value20); } - else if (IsBetaResponseShellCallCommandWsDone && betaResponseShellCallCommandWsDone != null) + else if (BetaResponseShellCallCommandWsDone is { } __value21 && betaResponseShellCallCommandWsDone != null) { - return betaResponseShellCallCommandWsDone(BetaResponseShellCallCommandWsDone!); + return betaResponseShellCallCommandWsDone(__value21); } - else if (IsBetaResponseShellCallOutputContentWsDelta && betaResponseShellCallOutputContentWsDelta != null) + else if (BetaResponseShellCallOutputContentWsDelta is { } __value22 && betaResponseShellCallOutputContentWsDelta != null) { - return betaResponseShellCallOutputContentWsDelta(BetaResponseShellCallOutputContentWsDelta!); + return betaResponseShellCallOutputContentWsDelta(__value22); } - else if (IsBetaResponseShellCallOutputContentWsDone && betaResponseShellCallOutputContentWsDone != null) + else if (BetaResponseShellCallOutputContentWsDone is { } __value23 && betaResponseShellCallOutputContentWsDone != null) { - return betaResponseShellCallOutputContentWsDone(BetaResponseShellCallOutputContentWsDone!); + return betaResponseShellCallOutputContentWsDone(__value23); } - else if (IsBetaResponseInWsProgress && betaResponseInWsProgress != null) + else if (BetaResponseInWsProgress is { } __value24 && betaResponseInWsProgress != null) { - return betaResponseInWsProgress(BetaResponseInWsProgress!); + return betaResponseInWsProgress(__value24); } - else if (IsBetaResponseWsFailed && betaResponseWsFailed != null) + else if (BetaResponseWsFailed is { } __value25 && betaResponseWsFailed != null) { - return betaResponseWsFailed(BetaResponseWsFailed!); + return betaResponseWsFailed(__value25); } - else if (IsBetaResponseWsIncomplete && betaResponseWsIncomplete != null) + else if (BetaResponseWsIncomplete is { } __value26 && betaResponseWsIncomplete != null) { - return betaResponseWsIncomplete(BetaResponseWsIncomplete!); + return betaResponseWsIncomplete(__value26); } - else if (IsBetaResponseOutputItemWsAdded && betaResponseOutputItemWsAdded != null) + else if (BetaResponseOutputItemWsAdded is { } __value27 && betaResponseOutputItemWsAdded != null) { - return betaResponseOutputItemWsAdded(BetaResponseOutputItemWsAdded!); + return betaResponseOutputItemWsAdded(__value27); } - else if (IsBetaResponseOutputItemWsDone && betaResponseOutputItemWsDone != null) + else if (BetaResponseOutputItemWsDone is { } __value28 && betaResponseOutputItemWsDone != null) { - return betaResponseOutputItemWsDone(BetaResponseOutputItemWsDone!); + return betaResponseOutputItemWsDone(__value28); } - else if (IsBetaResponseReasoningSummaryPartWsAdded && betaResponseReasoningSummaryPartWsAdded != null) + else if (BetaResponseReasoningSummaryPartWsAdded is { } __value29 && betaResponseReasoningSummaryPartWsAdded != null) { - return betaResponseReasoningSummaryPartWsAdded(BetaResponseReasoningSummaryPartWsAdded!); + return betaResponseReasoningSummaryPartWsAdded(__value29); } - else if (IsBetaResponseReasoningSummaryPartWsDone && betaResponseReasoningSummaryPartWsDone != null) + else if (BetaResponseReasoningSummaryPartWsDone is { } __value30 && betaResponseReasoningSummaryPartWsDone != null) { - return betaResponseReasoningSummaryPartWsDone(BetaResponseReasoningSummaryPartWsDone!); + return betaResponseReasoningSummaryPartWsDone(__value30); } - else if (IsBetaResponseReasoningSummaryTextWsDelta && betaResponseReasoningSummaryTextWsDelta != null) + else if (BetaResponseReasoningSummaryTextWsDelta is { } __value31 && betaResponseReasoningSummaryTextWsDelta != null) { - return betaResponseReasoningSummaryTextWsDelta(BetaResponseReasoningSummaryTextWsDelta!); + return betaResponseReasoningSummaryTextWsDelta(__value31); } - else if (IsBetaResponseReasoningSummaryTextWsDone && betaResponseReasoningSummaryTextWsDone != null) + else if (BetaResponseReasoningSummaryTextWsDone is { } __value32 && betaResponseReasoningSummaryTextWsDone != null) { - return betaResponseReasoningSummaryTextWsDone(BetaResponseReasoningSummaryTextWsDone!); + return betaResponseReasoningSummaryTextWsDone(__value32); } - else if (IsBetaResponseReasoningTextWsDelta && betaResponseReasoningTextWsDelta != null) + else if (BetaResponseReasoningTextWsDelta is { } __value33 && betaResponseReasoningTextWsDelta != null) { - return betaResponseReasoningTextWsDelta(BetaResponseReasoningTextWsDelta!); + return betaResponseReasoningTextWsDelta(__value33); } - else if (IsBetaResponseReasoningTextWsDone && betaResponseReasoningTextWsDone != null) + else if (BetaResponseReasoningTextWsDone is { } __value34 && betaResponseReasoningTextWsDone != null) { - return betaResponseReasoningTextWsDone(BetaResponseReasoningTextWsDone!); + return betaResponseReasoningTextWsDone(__value34); } - else if (IsBetaResponseRefusalWsDelta && betaResponseRefusalWsDelta != null) + else if (BetaResponseRefusalWsDelta is { } __value35 && betaResponseRefusalWsDelta != null) { - return betaResponseRefusalWsDelta(BetaResponseRefusalWsDelta!); + return betaResponseRefusalWsDelta(__value35); } - else if (IsBetaResponseRefusalWsDone && betaResponseRefusalWsDone != null) + else if (BetaResponseRefusalWsDone is { } __value36 && betaResponseRefusalWsDone != null) { - return betaResponseRefusalWsDone(BetaResponseRefusalWsDone!); + return betaResponseRefusalWsDone(__value36); } - else if (IsBetaResponseTextWsDelta && betaResponseTextWsDelta != null) + else if (BetaResponseTextWsDelta is { } __value37 && betaResponseTextWsDelta != null) { - return betaResponseTextWsDelta(BetaResponseTextWsDelta!); + return betaResponseTextWsDelta(__value37); } - else if (IsBetaResponseTextWsDone && betaResponseTextWsDone != null) + else if (BetaResponseTextWsDone is { } __value38 && betaResponseTextWsDone != null) { - return betaResponseTextWsDone(BetaResponseTextWsDone!); + return betaResponseTextWsDone(__value38); } - else if (IsBetaResponseWebSearchCallWsCompleted && betaResponseWebSearchCallWsCompleted != null) + else if (BetaResponseWebSearchCallWsCompleted is { } __value39 && betaResponseWebSearchCallWsCompleted != null) { - return betaResponseWebSearchCallWsCompleted(BetaResponseWebSearchCallWsCompleted!); + return betaResponseWebSearchCallWsCompleted(__value39); } - else if (IsBetaResponseWebSearchCallInWsProgress && betaResponseWebSearchCallInWsProgress != null) + else if (BetaResponseWebSearchCallInWsProgress is { } __value40 && betaResponseWebSearchCallInWsProgress != null) { - return betaResponseWebSearchCallInWsProgress(BetaResponseWebSearchCallInWsProgress!); + return betaResponseWebSearchCallInWsProgress(__value40); } - else if (IsBetaResponseWebSearchCallWsSearching && betaResponseWebSearchCallWsSearching != null) + else if (BetaResponseWebSearchCallWsSearching is { } __value41 && betaResponseWebSearchCallWsSearching != null) { - return betaResponseWebSearchCallWsSearching(BetaResponseWebSearchCallWsSearching!); + return betaResponseWebSearchCallWsSearching(__value41); } - else if (IsBetaResponseImageGenCallWsCompleted && betaResponseImageGenCallWsCompleted != null) + else if (BetaResponseImageGenCallWsCompleted is { } __value42 && betaResponseImageGenCallWsCompleted != null) { - return betaResponseImageGenCallWsCompleted(BetaResponseImageGenCallWsCompleted!); + return betaResponseImageGenCallWsCompleted(__value42); } - else if (IsBetaResponseImageGenCallWsGenerating && betaResponseImageGenCallWsGenerating != null) + else if (BetaResponseImageGenCallWsGenerating is { } __value43 && betaResponseImageGenCallWsGenerating != null) { - return betaResponseImageGenCallWsGenerating(BetaResponseImageGenCallWsGenerating!); + return betaResponseImageGenCallWsGenerating(__value43); } - else if (IsBetaResponseImageGenCallInWsProgress && betaResponseImageGenCallInWsProgress != null) + else if (BetaResponseImageGenCallInWsProgress is { } __value44 && betaResponseImageGenCallInWsProgress != null) { - return betaResponseImageGenCallInWsProgress(BetaResponseImageGenCallInWsProgress!); + return betaResponseImageGenCallInWsProgress(__value44); } - else if (IsBetaResponseImageGenCallPartialWsImage && betaResponseImageGenCallPartialWsImage != null) + else if (BetaResponseImageGenCallPartialWsImage is { } __value45 && betaResponseImageGenCallPartialWsImage != null) { - return betaResponseImageGenCallPartialWsImage(BetaResponseImageGenCallPartialWsImage!); + return betaResponseImageGenCallPartialWsImage(__value45); } - else if (IsBetaResponseMcpCallArgumentsWsDelta && betaResponseMcpCallArgumentsWsDelta != null) + else if (BetaResponseMcpCallArgumentsWsDelta is { } __value46 && betaResponseMcpCallArgumentsWsDelta != null) { - return betaResponseMcpCallArgumentsWsDelta(BetaResponseMcpCallArgumentsWsDelta!); + return betaResponseMcpCallArgumentsWsDelta(__value46); } - else if (IsBetaResponseMcpCallArgumentsWsDone && betaResponseMcpCallArgumentsWsDone != null) + else if (BetaResponseMcpCallArgumentsWsDone is { } __value47 && betaResponseMcpCallArgumentsWsDone != null) { - return betaResponseMcpCallArgumentsWsDone(BetaResponseMcpCallArgumentsWsDone!); + return betaResponseMcpCallArgumentsWsDone(__value47); } - else if (IsBetaResponseMcpCallWsCompleted && betaResponseMcpCallWsCompleted != null) + else if (BetaResponseMcpCallWsCompleted is { } __value48 && betaResponseMcpCallWsCompleted != null) { - return betaResponseMcpCallWsCompleted(BetaResponseMcpCallWsCompleted!); + return betaResponseMcpCallWsCompleted(__value48); } - else if (IsBetaResponseMcpCallWsFailed && betaResponseMcpCallWsFailed != null) + else if (BetaResponseMcpCallWsFailed is { } __value49 && betaResponseMcpCallWsFailed != null) { - return betaResponseMcpCallWsFailed(BetaResponseMcpCallWsFailed!); + return betaResponseMcpCallWsFailed(__value49); } - else if (IsBetaResponseMcpCallInWsProgress && betaResponseMcpCallInWsProgress != null) + else if (BetaResponseMcpCallInWsProgress is { } __value50 && betaResponseMcpCallInWsProgress != null) { - return betaResponseMcpCallInWsProgress(BetaResponseMcpCallInWsProgress!); + return betaResponseMcpCallInWsProgress(__value50); } - else if (IsBetaResponseMcpListToolsWsCompleted && betaResponseMcpListToolsWsCompleted != null) + else if (BetaResponseMcpListToolsWsCompleted is { } __value51 && betaResponseMcpListToolsWsCompleted != null) { - return betaResponseMcpListToolsWsCompleted(BetaResponseMcpListToolsWsCompleted!); + return betaResponseMcpListToolsWsCompleted(__value51); } - else if (IsBetaResponseMcpListToolsWsFailed && betaResponseMcpListToolsWsFailed != null) + else if (BetaResponseMcpListToolsWsFailed is { } __value52 && betaResponseMcpListToolsWsFailed != null) { - return betaResponseMcpListToolsWsFailed(BetaResponseMcpListToolsWsFailed!); + return betaResponseMcpListToolsWsFailed(__value52); } - else if (IsBetaResponseMcpListToolsInWsProgress && betaResponseMcpListToolsInWsProgress != null) + else if (BetaResponseMcpListToolsInWsProgress is { } __value53 && betaResponseMcpListToolsInWsProgress != null) { - return betaResponseMcpListToolsInWsProgress(BetaResponseMcpListToolsInWsProgress!); + return betaResponseMcpListToolsInWsProgress(__value53); } - else if (IsBetaResponseOutputTextAnnotationWsAdded && betaResponseOutputTextAnnotationWsAdded != null) + else if (BetaResponseOutputTextAnnotationWsAdded is { } __value54 && betaResponseOutputTextAnnotationWsAdded != null) { - return betaResponseOutputTextAnnotationWsAdded(BetaResponseOutputTextAnnotationWsAdded!); + return betaResponseOutputTextAnnotationWsAdded(__value54); } - else if (IsBetaResponseWsQueued && betaResponseWsQueued != null) + else if (BetaResponseWsQueued is { } __value55 && betaResponseWsQueued != null) { - return betaResponseWsQueued(BetaResponseWsQueued!); + return betaResponseWsQueued(__value55); } - else if (IsBetaResponseCustomToolCallInputWsDelta && betaResponseCustomToolCallInputWsDelta != null) + else if (BetaResponseCustomToolCallInputWsDelta is { } __value56 && betaResponseCustomToolCallInputWsDelta != null) { - return betaResponseCustomToolCallInputWsDelta(BetaResponseCustomToolCallInputWsDelta!); + return betaResponseCustomToolCallInputWsDelta(__value56); } - else if (IsBetaResponseCustomToolCallInputWsDone && betaResponseCustomToolCallInputWsDone != null) + else if (BetaResponseCustomToolCallInputWsDone is { } __value57 && betaResponseCustomToolCallInputWsDone != null) { - return betaResponseCustomToolCallInputWsDone(BetaResponseCustomToolCallInputWsDone!); + return betaResponseCustomToolCallInputWsDone(__value57); } - else if (IsError && error != null) + else if (Error is { } __value58 && error != null) { - return error(Error!); + return error(__value58); } - else if (IsResponseSteerAccepted && responseSteerAccepted != null) + else if (ResponseSteerAccepted is { } __value59 && responseSteerAccepted != null) { - return responseSteerAccepted(ResponseSteerAccepted!); + return responseSteerAccepted(__value59); } - else if (IsResponseSteerPending && responseSteerPending != null) + else if (ResponseSteerPending is { } __value60 && responseSteerPending != null) { - return responseSteerPending(ResponseSteerPending!); + return responseSteerPending(__value60); } - else if (IsResponseSteerFailed && responseSteerFailed != null) + else if (ResponseSteerFailed is { } __value61 && responseSteerFailed != null) { - return responseSteerFailed(ResponseSteerFailed!); + return responseSteerFailed(__value61); } - else if (IsResponseInjectCreated && responseInjectCreated != null) + else if (ResponseInjectCreated is { } __value62 && responseInjectCreated != null) { - return responseInjectCreated(ResponseInjectCreated!); + return responseInjectCreated(__value62); } - else if (IsResponseInjectFailed && responseInjectFailed != null) + else if (ResponseInjectFailed is { } __value63 && responseInjectFailed != null) { - return responseInjectFailed(ResponseInjectFailed!); + return responseInjectFailed(__value63); } return default(TResult); @@ -4638,261 +4638,261 @@ public void Match( Validate(); } - if (IsBetaResponseAudioWsDelta) + if (BetaResponseAudioWsDelta is { } __value0) { - betaResponseAudioWsDelta?.Invoke(BetaResponseAudioWsDelta!); + betaResponseAudioWsDelta?.Invoke(__value0); } - else if (IsBetaResponseAudioWsDone) + else if (BetaResponseAudioWsDone is { } __value1) { - betaResponseAudioWsDone?.Invoke(BetaResponseAudioWsDone!); + betaResponseAudioWsDone?.Invoke(__value1); } - else if (IsBetaResponseAudioTranscriptWsDelta) + else if (BetaResponseAudioTranscriptWsDelta is { } __value2) { - betaResponseAudioTranscriptWsDelta?.Invoke(BetaResponseAudioTranscriptWsDelta!); + betaResponseAudioTranscriptWsDelta?.Invoke(__value2); } - else if (IsBetaResponseAudioTranscriptWsDone) + else if (BetaResponseAudioTranscriptWsDone is { } __value3) { - betaResponseAudioTranscriptWsDone?.Invoke(BetaResponseAudioTranscriptWsDone!); + betaResponseAudioTranscriptWsDone?.Invoke(__value3); } - else if (IsBetaResponseCodeInterpreterCallCodeWsDelta) + else if (BetaResponseCodeInterpreterCallCodeWsDelta is { } __value4) { - betaResponseCodeInterpreterCallCodeWsDelta?.Invoke(BetaResponseCodeInterpreterCallCodeWsDelta!); + betaResponseCodeInterpreterCallCodeWsDelta?.Invoke(__value4); } - else if (IsBetaResponseCodeInterpreterCallCodeWsDone) + else if (BetaResponseCodeInterpreterCallCodeWsDone is { } __value5) { - betaResponseCodeInterpreterCallCodeWsDone?.Invoke(BetaResponseCodeInterpreterCallCodeWsDone!); + betaResponseCodeInterpreterCallCodeWsDone?.Invoke(__value5); } - else if (IsBetaResponseCodeInterpreterCallWsCompleted) + else if (BetaResponseCodeInterpreterCallWsCompleted is { } __value6) { - betaResponseCodeInterpreterCallWsCompleted?.Invoke(BetaResponseCodeInterpreterCallWsCompleted!); + betaResponseCodeInterpreterCallWsCompleted?.Invoke(__value6); } - else if (IsBetaResponseCodeInterpreterCallInWsProgress) + else if (BetaResponseCodeInterpreterCallInWsProgress is { } __value7) { - betaResponseCodeInterpreterCallInWsProgress?.Invoke(BetaResponseCodeInterpreterCallInWsProgress!); + betaResponseCodeInterpreterCallInWsProgress?.Invoke(__value7); } - else if (IsBetaResponseCodeInterpreterCallWsInterpreting) + else if (BetaResponseCodeInterpreterCallWsInterpreting is { } __value8) { - betaResponseCodeInterpreterCallWsInterpreting?.Invoke(BetaResponseCodeInterpreterCallWsInterpreting!); + betaResponseCodeInterpreterCallWsInterpreting?.Invoke(__value8); } - else if (IsBetaResponseCompactionWsCompacting) + else if (BetaResponseCompactionWsCompacting is { } __value9) { - betaResponseCompactionWsCompacting?.Invoke(BetaResponseCompactionWsCompacting!); + betaResponseCompactionWsCompacting?.Invoke(__value9); } - else if (IsBetaResponseWsCompleted) + else if (BetaResponseWsCompleted is { } __value10) { - betaResponseWsCompleted?.Invoke(BetaResponseWsCompleted!); + betaResponseWsCompleted?.Invoke(__value10); } - else if (IsBetaResponseContentPartWsAdded) + else if (BetaResponseContentPartWsAdded is { } __value11) { - betaResponseContentPartWsAdded?.Invoke(BetaResponseContentPartWsAdded!); + betaResponseContentPartWsAdded?.Invoke(__value11); } - else if (IsBetaResponseContentPartWsDone) + else if (BetaResponseContentPartWsDone is { } __value12) { - betaResponseContentPartWsDone?.Invoke(BetaResponseContentPartWsDone!); + betaResponseContentPartWsDone?.Invoke(__value12); } - else if (IsBetaResponseWsCreated) + else if (BetaResponseWsCreated is { } __value13) { - betaResponseWsCreated?.Invoke(BetaResponseWsCreated!); + betaResponseWsCreated?.Invoke(__value13); } - else if (IsBetaResponseFileSearchCallWsCompleted) + else if (BetaResponseFileSearchCallWsCompleted is { } __value14) { - betaResponseFileSearchCallWsCompleted?.Invoke(BetaResponseFileSearchCallWsCompleted!); + betaResponseFileSearchCallWsCompleted?.Invoke(__value14); } - else if (IsBetaResponseFileSearchCallInWsProgress) + else if (BetaResponseFileSearchCallInWsProgress is { } __value15) { - betaResponseFileSearchCallInWsProgress?.Invoke(BetaResponseFileSearchCallInWsProgress!); + betaResponseFileSearchCallInWsProgress?.Invoke(__value15); } - else if (IsBetaResponseFileSearchCallWsSearching) + else if (BetaResponseFileSearchCallWsSearching is { } __value16) { - betaResponseFileSearchCallWsSearching?.Invoke(BetaResponseFileSearchCallWsSearching!); + betaResponseFileSearchCallWsSearching?.Invoke(__value16); } - else if (IsBetaResponseFunctionCallArgumentsWsDelta) + else if (BetaResponseFunctionCallArgumentsWsDelta is { } __value17) { - betaResponseFunctionCallArgumentsWsDelta?.Invoke(BetaResponseFunctionCallArgumentsWsDelta!); + betaResponseFunctionCallArgumentsWsDelta?.Invoke(__value17); } - else if (IsBetaResponseFunctionCallArgumentsWsDone) + else if (BetaResponseFunctionCallArgumentsWsDone is { } __value18) { - betaResponseFunctionCallArgumentsWsDone?.Invoke(BetaResponseFunctionCallArgumentsWsDone!); + betaResponseFunctionCallArgumentsWsDone?.Invoke(__value18); } - else if (IsBetaResponseShellCallCommandWsAdded) + else if (BetaResponseShellCallCommandWsAdded is { } __value19) { - betaResponseShellCallCommandWsAdded?.Invoke(BetaResponseShellCallCommandWsAdded!); + betaResponseShellCallCommandWsAdded?.Invoke(__value19); } - else if (IsBetaResponseShellCallCommandWsDelta) + else if (BetaResponseShellCallCommandWsDelta is { } __value20) { - betaResponseShellCallCommandWsDelta?.Invoke(BetaResponseShellCallCommandWsDelta!); + betaResponseShellCallCommandWsDelta?.Invoke(__value20); } - else if (IsBetaResponseShellCallCommandWsDone) + else if (BetaResponseShellCallCommandWsDone is { } __value21) { - betaResponseShellCallCommandWsDone?.Invoke(BetaResponseShellCallCommandWsDone!); + betaResponseShellCallCommandWsDone?.Invoke(__value21); } - else if (IsBetaResponseShellCallOutputContentWsDelta) + else if (BetaResponseShellCallOutputContentWsDelta is { } __value22) { - betaResponseShellCallOutputContentWsDelta?.Invoke(BetaResponseShellCallOutputContentWsDelta!); + betaResponseShellCallOutputContentWsDelta?.Invoke(__value22); } - else if (IsBetaResponseShellCallOutputContentWsDone) + else if (BetaResponseShellCallOutputContentWsDone is { } __value23) { - betaResponseShellCallOutputContentWsDone?.Invoke(BetaResponseShellCallOutputContentWsDone!); + betaResponseShellCallOutputContentWsDone?.Invoke(__value23); } - else if (IsBetaResponseInWsProgress) + else if (BetaResponseInWsProgress is { } __value24) { - betaResponseInWsProgress?.Invoke(BetaResponseInWsProgress!); + betaResponseInWsProgress?.Invoke(__value24); } - else if (IsBetaResponseWsFailed) + else if (BetaResponseWsFailed is { } __value25) { - betaResponseWsFailed?.Invoke(BetaResponseWsFailed!); + betaResponseWsFailed?.Invoke(__value25); } - else if (IsBetaResponseWsIncomplete) + else if (BetaResponseWsIncomplete is { } __value26) { - betaResponseWsIncomplete?.Invoke(BetaResponseWsIncomplete!); + betaResponseWsIncomplete?.Invoke(__value26); } - else if (IsBetaResponseOutputItemWsAdded) + else if (BetaResponseOutputItemWsAdded is { } __value27) { - betaResponseOutputItemWsAdded?.Invoke(BetaResponseOutputItemWsAdded!); + betaResponseOutputItemWsAdded?.Invoke(__value27); } - else if (IsBetaResponseOutputItemWsDone) + else if (BetaResponseOutputItemWsDone is { } __value28) { - betaResponseOutputItemWsDone?.Invoke(BetaResponseOutputItemWsDone!); + betaResponseOutputItemWsDone?.Invoke(__value28); } - else if (IsBetaResponseReasoningSummaryPartWsAdded) + else if (BetaResponseReasoningSummaryPartWsAdded is { } __value29) { - betaResponseReasoningSummaryPartWsAdded?.Invoke(BetaResponseReasoningSummaryPartWsAdded!); + betaResponseReasoningSummaryPartWsAdded?.Invoke(__value29); } - else if (IsBetaResponseReasoningSummaryPartWsDone) + else if (BetaResponseReasoningSummaryPartWsDone is { } __value30) { - betaResponseReasoningSummaryPartWsDone?.Invoke(BetaResponseReasoningSummaryPartWsDone!); + betaResponseReasoningSummaryPartWsDone?.Invoke(__value30); } - else if (IsBetaResponseReasoningSummaryTextWsDelta) + else if (BetaResponseReasoningSummaryTextWsDelta is { } __value31) { - betaResponseReasoningSummaryTextWsDelta?.Invoke(BetaResponseReasoningSummaryTextWsDelta!); + betaResponseReasoningSummaryTextWsDelta?.Invoke(__value31); } - else if (IsBetaResponseReasoningSummaryTextWsDone) + else if (BetaResponseReasoningSummaryTextWsDone is { } __value32) { - betaResponseReasoningSummaryTextWsDone?.Invoke(BetaResponseReasoningSummaryTextWsDone!); + betaResponseReasoningSummaryTextWsDone?.Invoke(__value32); } - else if (IsBetaResponseReasoningTextWsDelta) + else if (BetaResponseReasoningTextWsDelta is { } __value33) { - betaResponseReasoningTextWsDelta?.Invoke(BetaResponseReasoningTextWsDelta!); + betaResponseReasoningTextWsDelta?.Invoke(__value33); } - else if (IsBetaResponseReasoningTextWsDone) + else if (BetaResponseReasoningTextWsDone is { } __value34) { - betaResponseReasoningTextWsDone?.Invoke(BetaResponseReasoningTextWsDone!); + betaResponseReasoningTextWsDone?.Invoke(__value34); } - else if (IsBetaResponseRefusalWsDelta) + else if (BetaResponseRefusalWsDelta is { } __value35) { - betaResponseRefusalWsDelta?.Invoke(BetaResponseRefusalWsDelta!); + betaResponseRefusalWsDelta?.Invoke(__value35); } - else if (IsBetaResponseRefusalWsDone) + else if (BetaResponseRefusalWsDone is { } __value36) { - betaResponseRefusalWsDone?.Invoke(BetaResponseRefusalWsDone!); + betaResponseRefusalWsDone?.Invoke(__value36); } - else if (IsBetaResponseTextWsDelta) + else if (BetaResponseTextWsDelta is { } __value37) { - betaResponseTextWsDelta?.Invoke(BetaResponseTextWsDelta!); + betaResponseTextWsDelta?.Invoke(__value37); } - else if (IsBetaResponseTextWsDone) + else if (BetaResponseTextWsDone is { } __value38) { - betaResponseTextWsDone?.Invoke(BetaResponseTextWsDone!); + betaResponseTextWsDone?.Invoke(__value38); } - else if (IsBetaResponseWebSearchCallWsCompleted) + else if (BetaResponseWebSearchCallWsCompleted is { } __value39) { - betaResponseWebSearchCallWsCompleted?.Invoke(BetaResponseWebSearchCallWsCompleted!); + betaResponseWebSearchCallWsCompleted?.Invoke(__value39); } - else if (IsBetaResponseWebSearchCallInWsProgress) + else if (BetaResponseWebSearchCallInWsProgress is { } __value40) { - betaResponseWebSearchCallInWsProgress?.Invoke(BetaResponseWebSearchCallInWsProgress!); + betaResponseWebSearchCallInWsProgress?.Invoke(__value40); } - else if (IsBetaResponseWebSearchCallWsSearching) + else if (BetaResponseWebSearchCallWsSearching is { } __value41) { - betaResponseWebSearchCallWsSearching?.Invoke(BetaResponseWebSearchCallWsSearching!); + betaResponseWebSearchCallWsSearching?.Invoke(__value41); } - else if (IsBetaResponseImageGenCallWsCompleted) + else if (BetaResponseImageGenCallWsCompleted is { } __value42) { - betaResponseImageGenCallWsCompleted?.Invoke(BetaResponseImageGenCallWsCompleted!); + betaResponseImageGenCallWsCompleted?.Invoke(__value42); } - else if (IsBetaResponseImageGenCallWsGenerating) + else if (BetaResponseImageGenCallWsGenerating is { } __value43) { - betaResponseImageGenCallWsGenerating?.Invoke(BetaResponseImageGenCallWsGenerating!); + betaResponseImageGenCallWsGenerating?.Invoke(__value43); } - else if (IsBetaResponseImageGenCallInWsProgress) + else if (BetaResponseImageGenCallInWsProgress is { } __value44) { - betaResponseImageGenCallInWsProgress?.Invoke(BetaResponseImageGenCallInWsProgress!); + betaResponseImageGenCallInWsProgress?.Invoke(__value44); } - else if (IsBetaResponseImageGenCallPartialWsImage) + else if (BetaResponseImageGenCallPartialWsImage is { } __value45) { - betaResponseImageGenCallPartialWsImage?.Invoke(BetaResponseImageGenCallPartialWsImage!); + betaResponseImageGenCallPartialWsImage?.Invoke(__value45); } - else if (IsBetaResponseMcpCallArgumentsWsDelta) + else if (BetaResponseMcpCallArgumentsWsDelta is { } __value46) { - betaResponseMcpCallArgumentsWsDelta?.Invoke(BetaResponseMcpCallArgumentsWsDelta!); + betaResponseMcpCallArgumentsWsDelta?.Invoke(__value46); } - else if (IsBetaResponseMcpCallArgumentsWsDone) + else if (BetaResponseMcpCallArgumentsWsDone is { } __value47) { - betaResponseMcpCallArgumentsWsDone?.Invoke(BetaResponseMcpCallArgumentsWsDone!); + betaResponseMcpCallArgumentsWsDone?.Invoke(__value47); } - else if (IsBetaResponseMcpCallWsCompleted) + else if (BetaResponseMcpCallWsCompleted is { } __value48) { - betaResponseMcpCallWsCompleted?.Invoke(BetaResponseMcpCallWsCompleted!); + betaResponseMcpCallWsCompleted?.Invoke(__value48); } - else if (IsBetaResponseMcpCallWsFailed) + else if (BetaResponseMcpCallWsFailed is { } __value49) { - betaResponseMcpCallWsFailed?.Invoke(BetaResponseMcpCallWsFailed!); + betaResponseMcpCallWsFailed?.Invoke(__value49); } - else if (IsBetaResponseMcpCallInWsProgress) + else if (BetaResponseMcpCallInWsProgress is { } __value50) { - betaResponseMcpCallInWsProgress?.Invoke(BetaResponseMcpCallInWsProgress!); + betaResponseMcpCallInWsProgress?.Invoke(__value50); } - else if (IsBetaResponseMcpListToolsWsCompleted) + else if (BetaResponseMcpListToolsWsCompleted is { } __value51) { - betaResponseMcpListToolsWsCompleted?.Invoke(BetaResponseMcpListToolsWsCompleted!); + betaResponseMcpListToolsWsCompleted?.Invoke(__value51); } - else if (IsBetaResponseMcpListToolsWsFailed) + else if (BetaResponseMcpListToolsWsFailed is { } __value52) { - betaResponseMcpListToolsWsFailed?.Invoke(BetaResponseMcpListToolsWsFailed!); + betaResponseMcpListToolsWsFailed?.Invoke(__value52); } - else if (IsBetaResponseMcpListToolsInWsProgress) + else if (BetaResponseMcpListToolsInWsProgress is { } __value53) { - betaResponseMcpListToolsInWsProgress?.Invoke(BetaResponseMcpListToolsInWsProgress!); + betaResponseMcpListToolsInWsProgress?.Invoke(__value53); } - else if (IsBetaResponseOutputTextAnnotationWsAdded) + else if (BetaResponseOutputTextAnnotationWsAdded is { } __value54) { - betaResponseOutputTextAnnotationWsAdded?.Invoke(BetaResponseOutputTextAnnotationWsAdded!); + betaResponseOutputTextAnnotationWsAdded?.Invoke(__value54); } - else if (IsBetaResponseWsQueued) + else if (BetaResponseWsQueued is { } __value55) { - betaResponseWsQueued?.Invoke(BetaResponseWsQueued!); + betaResponseWsQueued?.Invoke(__value55); } - else if (IsBetaResponseCustomToolCallInputWsDelta) + else if (BetaResponseCustomToolCallInputWsDelta is { } __value56) { - betaResponseCustomToolCallInputWsDelta?.Invoke(BetaResponseCustomToolCallInputWsDelta!); + betaResponseCustomToolCallInputWsDelta?.Invoke(__value56); } - else if (IsBetaResponseCustomToolCallInputWsDone) + else if (BetaResponseCustomToolCallInputWsDone is { } __value57) { - betaResponseCustomToolCallInputWsDone?.Invoke(BetaResponseCustomToolCallInputWsDone!); + betaResponseCustomToolCallInputWsDone?.Invoke(__value57); } - else if (IsError) + else if (Error is { } __value58) { - error?.Invoke(Error!); + error?.Invoke(__value58); } - else if (IsResponseSteerAccepted) + else if (ResponseSteerAccepted is { } __value59) { - responseSteerAccepted?.Invoke(ResponseSteerAccepted!); + responseSteerAccepted?.Invoke(__value59); } - else if (IsResponseSteerPending) + else if (ResponseSteerPending is { } __value60) { - responseSteerPending?.Invoke(ResponseSteerPending!); + responseSteerPending?.Invoke(__value60); } - else if (IsResponseSteerFailed) + else if (ResponseSteerFailed is { } __value61) { - responseSteerFailed?.Invoke(ResponseSteerFailed!); + responseSteerFailed?.Invoke(__value61); } - else if (IsResponseInjectCreated) + else if (ResponseInjectCreated is { } __value62) { - responseInjectCreated?.Invoke(ResponseInjectCreated!); + responseInjectCreated?.Invoke(__value62); } - else if (IsResponseInjectFailed) + else if (ResponseInjectFailed is { } __value63) { - responseInjectFailed?.Invoke(ResponseInjectFailed!); + responseInjectFailed?.Invoke(__value63); } } @@ -4971,261 +4971,261 @@ public void Switch( Validate(); } - if (IsBetaResponseAudioWsDelta) + if (BetaResponseAudioWsDelta is { } __value0) { - betaResponseAudioWsDelta?.Invoke(BetaResponseAudioWsDelta!); + betaResponseAudioWsDelta?.Invoke(__value0); } - else if (IsBetaResponseAudioWsDone) + else if (BetaResponseAudioWsDone is { } __value1) { - betaResponseAudioWsDone?.Invoke(BetaResponseAudioWsDone!); + betaResponseAudioWsDone?.Invoke(__value1); } - else if (IsBetaResponseAudioTranscriptWsDelta) + else if (BetaResponseAudioTranscriptWsDelta is { } __value2) { - betaResponseAudioTranscriptWsDelta?.Invoke(BetaResponseAudioTranscriptWsDelta!); + betaResponseAudioTranscriptWsDelta?.Invoke(__value2); } - else if (IsBetaResponseAudioTranscriptWsDone) + else if (BetaResponseAudioTranscriptWsDone is { } __value3) { - betaResponseAudioTranscriptWsDone?.Invoke(BetaResponseAudioTranscriptWsDone!); + betaResponseAudioTranscriptWsDone?.Invoke(__value3); } - else if (IsBetaResponseCodeInterpreterCallCodeWsDelta) + else if (BetaResponseCodeInterpreterCallCodeWsDelta is { } __value4) { - betaResponseCodeInterpreterCallCodeWsDelta?.Invoke(BetaResponseCodeInterpreterCallCodeWsDelta!); + betaResponseCodeInterpreterCallCodeWsDelta?.Invoke(__value4); } - else if (IsBetaResponseCodeInterpreterCallCodeWsDone) + else if (BetaResponseCodeInterpreterCallCodeWsDone is { } __value5) { - betaResponseCodeInterpreterCallCodeWsDone?.Invoke(BetaResponseCodeInterpreterCallCodeWsDone!); + betaResponseCodeInterpreterCallCodeWsDone?.Invoke(__value5); } - else if (IsBetaResponseCodeInterpreterCallWsCompleted) + else if (BetaResponseCodeInterpreterCallWsCompleted is { } __value6) { - betaResponseCodeInterpreterCallWsCompleted?.Invoke(BetaResponseCodeInterpreterCallWsCompleted!); + betaResponseCodeInterpreterCallWsCompleted?.Invoke(__value6); } - else if (IsBetaResponseCodeInterpreterCallInWsProgress) + else if (BetaResponseCodeInterpreterCallInWsProgress is { } __value7) { - betaResponseCodeInterpreterCallInWsProgress?.Invoke(BetaResponseCodeInterpreterCallInWsProgress!); + betaResponseCodeInterpreterCallInWsProgress?.Invoke(__value7); } - else if (IsBetaResponseCodeInterpreterCallWsInterpreting) + else if (BetaResponseCodeInterpreterCallWsInterpreting is { } __value8) { - betaResponseCodeInterpreterCallWsInterpreting?.Invoke(BetaResponseCodeInterpreterCallWsInterpreting!); + betaResponseCodeInterpreterCallWsInterpreting?.Invoke(__value8); } - else if (IsBetaResponseCompactionWsCompacting) + else if (BetaResponseCompactionWsCompacting is { } __value9) { - betaResponseCompactionWsCompacting?.Invoke(BetaResponseCompactionWsCompacting!); + betaResponseCompactionWsCompacting?.Invoke(__value9); } - else if (IsBetaResponseWsCompleted) + else if (BetaResponseWsCompleted is { } __value10) { - betaResponseWsCompleted?.Invoke(BetaResponseWsCompleted!); + betaResponseWsCompleted?.Invoke(__value10); } - else if (IsBetaResponseContentPartWsAdded) + else if (BetaResponseContentPartWsAdded is { } __value11) { - betaResponseContentPartWsAdded?.Invoke(BetaResponseContentPartWsAdded!); + betaResponseContentPartWsAdded?.Invoke(__value11); } - else if (IsBetaResponseContentPartWsDone) + else if (BetaResponseContentPartWsDone is { } __value12) { - betaResponseContentPartWsDone?.Invoke(BetaResponseContentPartWsDone!); + betaResponseContentPartWsDone?.Invoke(__value12); } - else if (IsBetaResponseWsCreated) + else if (BetaResponseWsCreated is { } __value13) { - betaResponseWsCreated?.Invoke(BetaResponseWsCreated!); + betaResponseWsCreated?.Invoke(__value13); } - else if (IsBetaResponseFileSearchCallWsCompleted) + else if (BetaResponseFileSearchCallWsCompleted is { } __value14) { - betaResponseFileSearchCallWsCompleted?.Invoke(BetaResponseFileSearchCallWsCompleted!); + betaResponseFileSearchCallWsCompleted?.Invoke(__value14); } - else if (IsBetaResponseFileSearchCallInWsProgress) + else if (BetaResponseFileSearchCallInWsProgress is { } __value15) { - betaResponseFileSearchCallInWsProgress?.Invoke(BetaResponseFileSearchCallInWsProgress!); + betaResponseFileSearchCallInWsProgress?.Invoke(__value15); } - else if (IsBetaResponseFileSearchCallWsSearching) + else if (BetaResponseFileSearchCallWsSearching is { } __value16) { - betaResponseFileSearchCallWsSearching?.Invoke(BetaResponseFileSearchCallWsSearching!); + betaResponseFileSearchCallWsSearching?.Invoke(__value16); } - else if (IsBetaResponseFunctionCallArgumentsWsDelta) + else if (BetaResponseFunctionCallArgumentsWsDelta is { } __value17) { - betaResponseFunctionCallArgumentsWsDelta?.Invoke(BetaResponseFunctionCallArgumentsWsDelta!); + betaResponseFunctionCallArgumentsWsDelta?.Invoke(__value17); } - else if (IsBetaResponseFunctionCallArgumentsWsDone) + else if (BetaResponseFunctionCallArgumentsWsDone is { } __value18) { - betaResponseFunctionCallArgumentsWsDone?.Invoke(BetaResponseFunctionCallArgumentsWsDone!); + betaResponseFunctionCallArgumentsWsDone?.Invoke(__value18); } - else if (IsBetaResponseShellCallCommandWsAdded) + else if (BetaResponseShellCallCommandWsAdded is { } __value19) { - betaResponseShellCallCommandWsAdded?.Invoke(BetaResponseShellCallCommandWsAdded!); + betaResponseShellCallCommandWsAdded?.Invoke(__value19); } - else if (IsBetaResponseShellCallCommandWsDelta) + else if (BetaResponseShellCallCommandWsDelta is { } __value20) { - betaResponseShellCallCommandWsDelta?.Invoke(BetaResponseShellCallCommandWsDelta!); + betaResponseShellCallCommandWsDelta?.Invoke(__value20); } - else if (IsBetaResponseShellCallCommandWsDone) + else if (BetaResponseShellCallCommandWsDone is { } __value21) { - betaResponseShellCallCommandWsDone?.Invoke(BetaResponseShellCallCommandWsDone!); + betaResponseShellCallCommandWsDone?.Invoke(__value21); } - else if (IsBetaResponseShellCallOutputContentWsDelta) + else if (BetaResponseShellCallOutputContentWsDelta is { } __value22) { - betaResponseShellCallOutputContentWsDelta?.Invoke(BetaResponseShellCallOutputContentWsDelta!); + betaResponseShellCallOutputContentWsDelta?.Invoke(__value22); } - else if (IsBetaResponseShellCallOutputContentWsDone) + else if (BetaResponseShellCallOutputContentWsDone is { } __value23) { - betaResponseShellCallOutputContentWsDone?.Invoke(BetaResponseShellCallOutputContentWsDone!); + betaResponseShellCallOutputContentWsDone?.Invoke(__value23); } - else if (IsBetaResponseInWsProgress) + else if (BetaResponseInWsProgress is { } __value24) { - betaResponseInWsProgress?.Invoke(BetaResponseInWsProgress!); + betaResponseInWsProgress?.Invoke(__value24); } - else if (IsBetaResponseWsFailed) + else if (BetaResponseWsFailed is { } __value25) { - betaResponseWsFailed?.Invoke(BetaResponseWsFailed!); + betaResponseWsFailed?.Invoke(__value25); } - else if (IsBetaResponseWsIncomplete) + else if (BetaResponseWsIncomplete is { } __value26) { - betaResponseWsIncomplete?.Invoke(BetaResponseWsIncomplete!); + betaResponseWsIncomplete?.Invoke(__value26); } - else if (IsBetaResponseOutputItemWsAdded) + else if (BetaResponseOutputItemWsAdded is { } __value27) { - betaResponseOutputItemWsAdded?.Invoke(BetaResponseOutputItemWsAdded!); + betaResponseOutputItemWsAdded?.Invoke(__value27); } - else if (IsBetaResponseOutputItemWsDone) + else if (BetaResponseOutputItemWsDone is { } __value28) { - betaResponseOutputItemWsDone?.Invoke(BetaResponseOutputItemWsDone!); + betaResponseOutputItemWsDone?.Invoke(__value28); } - else if (IsBetaResponseReasoningSummaryPartWsAdded) + else if (BetaResponseReasoningSummaryPartWsAdded is { } __value29) { - betaResponseReasoningSummaryPartWsAdded?.Invoke(BetaResponseReasoningSummaryPartWsAdded!); + betaResponseReasoningSummaryPartWsAdded?.Invoke(__value29); } - else if (IsBetaResponseReasoningSummaryPartWsDone) + else if (BetaResponseReasoningSummaryPartWsDone is { } __value30) { - betaResponseReasoningSummaryPartWsDone?.Invoke(BetaResponseReasoningSummaryPartWsDone!); + betaResponseReasoningSummaryPartWsDone?.Invoke(__value30); } - else if (IsBetaResponseReasoningSummaryTextWsDelta) + else if (BetaResponseReasoningSummaryTextWsDelta is { } __value31) { - betaResponseReasoningSummaryTextWsDelta?.Invoke(BetaResponseReasoningSummaryTextWsDelta!); + betaResponseReasoningSummaryTextWsDelta?.Invoke(__value31); } - else if (IsBetaResponseReasoningSummaryTextWsDone) + else if (BetaResponseReasoningSummaryTextWsDone is { } __value32) { - betaResponseReasoningSummaryTextWsDone?.Invoke(BetaResponseReasoningSummaryTextWsDone!); + betaResponseReasoningSummaryTextWsDone?.Invoke(__value32); } - else if (IsBetaResponseReasoningTextWsDelta) + else if (BetaResponseReasoningTextWsDelta is { } __value33) { - betaResponseReasoningTextWsDelta?.Invoke(BetaResponseReasoningTextWsDelta!); + betaResponseReasoningTextWsDelta?.Invoke(__value33); } - else if (IsBetaResponseReasoningTextWsDone) + else if (BetaResponseReasoningTextWsDone is { } __value34) { - betaResponseReasoningTextWsDone?.Invoke(BetaResponseReasoningTextWsDone!); + betaResponseReasoningTextWsDone?.Invoke(__value34); } - else if (IsBetaResponseRefusalWsDelta) + else if (BetaResponseRefusalWsDelta is { } __value35) { - betaResponseRefusalWsDelta?.Invoke(BetaResponseRefusalWsDelta!); + betaResponseRefusalWsDelta?.Invoke(__value35); } - else if (IsBetaResponseRefusalWsDone) + else if (BetaResponseRefusalWsDone is { } __value36) { - betaResponseRefusalWsDone?.Invoke(BetaResponseRefusalWsDone!); + betaResponseRefusalWsDone?.Invoke(__value36); } - else if (IsBetaResponseTextWsDelta) + else if (BetaResponseTextWsDelta is { } __value37) { - betaResponseTextWsDelta?.Invoke(BetaResponseTextWsDelta!); + betaResponseTextWsDelta?.Invoke(__value37); } - else if (IsBetaResponseTextWsDone) + else if (BetaResponseTextWsDone is { } __value38) { - betaResponseTextWsDone?.Invoke(BetaResponseTextWsDone!); + betaResponseTextWsDone?.Invoke(__value38); } - else if (IsBetaResponseWebSearchCallWsCompleted) + else if (BetaResponseWebSearchCallWsCompleted is { } __value39) { - betaResponseWebSearchCallWsCompleted?.Invoke(BetaResponseWebSearchCallWsCompleted!); + betaResponseWebSearchCallWsCompleted?.Invoke(__value39); } - else if (IsBetaResponseWebSearchCallInWsProgress) + else if (BetaResponseWebSearchCallInWsProgress is { } __value40) { - betaResponseWebSearchCallInWsProgress?.Invoke(BetaResponseWebSearchCallInWsProgress!); + betaResponseWebSearchCallInWsProgress?.Invoke(__value40); } - else if (IsBetaResponseWebSearchCallWsSearching) + else if (BetaResponseWebSearchCallWsSearching is { } __value41) { - betaResponseWebSearchCallWsSearching?.Invoke(BetaResponseWebSearchCallWsSearching!); + betaResponseWebSearchCallWsSearching?.Invoke(__value41); } - else if (IsBetaResponseImageGenCallWsCompleted) + else if (BetaResponseImageGenCallWsCompleted is { } __value42) { - betaResponseImageGenCallWsCompleted?.Invoke(BetaResponseImageGenCallWsCompleted!); + betaResponseImageGenCallWsCompleted?.Invoke(__value42); } - else if (IsBetaResponseImageGenCallWsGenerating) + else if (BetaResponseImageGenCallWsGenerating is { } __value43) { - betaResponseImageGenCallWsGenerating?.Invoke(BetaResponseImageGenCallWsGenerating!); + betaResponseImageGenCallWsGenerating?.Invoke(__value43); } - else if (IsBetaResponseImageGenCallInWsProgress) + else if (BetaResponseImageGenCallInWsProgress is { } __value44) { - betaResponseImageGenCallInWsProgress?.Invoke(BetaResponseImageGenCallInWsProgress!); + betaResponseImageGenCallInWsProgress?.Invoke(__value44); } - else if (IsBetaResponseImageGenCallPartialWsImage) + else if (BetaResponseImageGenCallPartialWsImage is { } __value45) { - betaResponseImageGenCallPartialWsImage?.Invoke(BetaResponseImageGenCallPartialWsImage!); + betaResponseImageGenCallPartialWsImage?.Invoke(__value45); } - else if (IsBetaResponseMcpCallArgumentsWsDelta) + else if (BetaResponseMcpCallArgumentsWsDelta is { } __value46) { - betaResponseMcpCallArgumentsWsDelta?.Invoke(BetaResponseMcpCallArgumentsWsDelta!); + betaResponseMcpCallArgumentsWsDelta?.Invoke(__value46); } - else if (IsBetaResponseMcpCallArgumentsWsDone) + else if (BetaResponseMcpCallArgumentsWsDone is { } __value47) { - betaResponseMcpCallArgumentsWsDone?.Invoke(BetaResponseMcpCallArgumentsWsDone!); + betaResponseMcpCallArgumentsWsDone?.Invoke(__value47); } - else if (IsBetaResponseMcpCallWsCompleted) + else if (BetaResponseMcpCallWsCompleted is { } __value48) { - betaResponseMcpCallWsCompleted?.Invoke(BetaResponseMcpCallWsCompleted!); + betaResponseMcpCallWsCompleted?.Invoke(__value48); } - else if (IsBetaResponseMcpCallWsFailed) + else if (BetaResponseMcpCallWsFailed is { } __value49) { - betaResponseMcpCallWsFailed?.Invoke(BetaResponseMcpCallWsFailed!); + betaResponseMcpCallWsFailed?.Invoke(__value49); } - else if (IsBetaResponseMcpCallInWsProgress) + else if (BetaResponseMcpCallInWsProgress is { } __value50) { - betaResponseMcpCallInWsProgress?.Invoke(BetaResponseMcpCallInWsProgress!); + betaResponseMcpCallInWsProgress?.Invoke(__value50); } - else if (IsBetaResponseMcpListToolsWsCompleted) + else if (BetaResponseMcpListToolsWsCompleted is { } __value51) { - betaResponseMcpListToolsWsCompleted?.Invoke(BetaResponseMcpListToolsWsCompleted!); + betaResponseMcpListToolsWsCompleted?.Invoke(__value51); } - else if (IsBetaResponseMcpListToolsWsFailed) + else if (BetaResponseMcpListToolsWsFailed is { } __value52) { - betaResponseMcpListToolsWsFailed?.Invoke(BetaResponseMcpListToolsWsFailed!); + betaResponseMcpListToolsWsFailed?.Invoke(__value52); } - else if (IsBetaResponseMcpListToolsInWsProgress) + else if (BetaResponseMcpListToolsInWsProgress is { } __value53) { - betaResponseMcpListToolsInWsProgress?.Invoke(BetaResponseMcpListToolsInWsProgress!); + betaResponseMcpListToolsInWsProgress?.Invoke(__value53); } - else if (IsBetaResponseOutputTextAnnotationWsAdded) + else if (BetaResponseOutputTextAnnotationWsAdded is { } __value54) { - betaResponseOutputTextAnnotationWsAdded?.Invoke(BetaResponseOutputTextAnnotationWsAdded!); + betaResponseOutputTextAnnotationWsAdded?.Invoke(__value54); } - else if (IsBetaResponseWsQueued) + else if (BetaResponseWsQueued is { } __value55) { - betaResponseWsQueued?.Invoke(BetaResponseWsQueued!); + betaResponseWsQueued?.Invoke(__value55); } - else if (IsBetaResponseCustomToolCallInputWsDelta) + else if (BetaResponseCustomToolCallInputWsDelta is { } __value56) { - betaResponseCustomToolCallInputWsDelta?.Invoke(BetaResponseCustomToolCallInputWsDelta!); + betaResponseCustomToolCallInputWsDelta?.Invoke(__value56); } - else if (IsBetaResponseCustomToolCallInputWsDone) + else if (BetaResponseCustomToolCallInputWsDone is { } __value57) { - betaResponseCustomToolCallInputWsDone?.Invoke(BetaResponseCustomToolCallInputWsDone!); + betaResponseCustomToolCallInputWsDone?.Invoke(__value57); } - else if (IsError) + else if (Error is { } __value58) { - error?.Invoke(Error!); + error?.Invoke(__value58); } - else if (IsResponseSteerAccepted) + else if (ResponseSteerAccepted is { } __value59) { - responseSteerAccepted?.Invoke(ResponseSteerAccepted!); + responseSteerAccepted?.Invoke(__value59); } - else if (IsResponseSteerPending) + else if (ResponseSteerPending is { } __value60) { - responseSteerPending?.Invoke(ResponseSteerPending!); + responseSteerPending?.Invoke(__value60); } - else if (IsResponseSteerFailed) + else if (ResponseSteerFailed is { } __value61) { - responseSteerFailed?.Invoke(ResponseSteerFailed!); + responseSteerFailed?.Invoke(__value61); } - else if (IsResponseInjectCreated) + else if (ResponseInjectCreated is { } __value62) { - responseInjectCreated?.Invoke(ResponseInjectCreated!); + responseInjectCreated?.Invoke(__value62); } - else if (IsResponseInjectFailed) + else if (ResponseInjectFailed is { } __value63) { - responseInjectFailed?.Invoke(ResponseInjectFailed!); + responseInjectFailed?.Invoke(__value63); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesWebSocketStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesWebSocketStreamEvent.g.cs index 64f5b0325..5858cdde0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesWebSocketStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaResponsesWebSocketStreamEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickBetaResponsesWebSocketStreamEventVariant1( /// /// /// - public global::tryAGI.OpenAI.AnyOf PickBetaResponsesWebSocketStreamEventVariant1() => IsBetaResponsesWebSocketStreamEventVariant1 - ? BetaResponsesWebSocketStreamEventVariant1!.Value + public global::tryAGI.OpenAI.AnyOf PickBetaResponsesWebSocketStreamEventVariant1() => BetaResponsesWebSocketStreamEventVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponsesWebSocketStreamEventVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickBetaResponsesWebSocketStreamEventVariant2( /// /// /// - public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2 PickBetaResponsesWebSocketStreamEventVariant2() => IsBetaResponsesWebSocketStreamEventVariant2 - ? BetaResponsesWebSocketStreamEventVariant2! + public global::tryAGI.OpenAI.BetaResponsesWebSocketStreamEventVariant2 PickBetaResponsesWebSocketStreamEventVariant2() => BetaResponsesWebSocketStreamEventVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'BetaResponsesWebSocketStreamEventVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsBetaResponsesWebSocketStreamEventVariant1 && betaResponsesWebSocketStreamEventVariant1 != null) + if (BetaResponsesWebSocketStreamEventVariant1 is { } __value0 && betaResponsesWebSocketStreamEventVariant1 != null) { - return betaResponsesWebSocketStreamEventVariant1(BetaResponsesWebSocketStreamEventVariant1!); + return betaResponsesWebSocketStreamEventVariant1(__value0); } - else if (IsBetaResponsesWebSocketStreamEventVariant2 && betaResponsesWebSocketStreamEventVariant2 != null) + else if (BetaResponsesWebSocketStreamEventVariant2 is { } __value1 && betaResponsesWebSocketStreamEventVariant2 != null) { - return betaResponsesWebSocketStreamEventVariant2(BetaResponsesWebSocketStreamEventVariant2!); + return betaResponsesWebSocketStreamEventVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsBetaResponsesWebSocketStreamEventVariant1) + if (BetaResponsesWebSocketStreamEventVariant1 is { } __value0) { - betaResponsesWebSocketStreamEventVariant1?.Invoke(BetaResponsesWebSocketStreamEventVariant1!); + betaResponsesWebSocketStreamEventVariant1?.Invoke(__value0); } - else if (IsBetaResponsesWebSocketStreamEventVariant2) + else if (BetaResponsesWebSocketStreamEventVariant2 is { } __value1) { - betaResponsesWebSocketStreamEventVariant2?.Invoke(BetaResponsesWebSocketStreamEventVariant2!); + betaResponsesWebSocketStreamEventVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsBetaResponsesWebSocketStreamEventVariant1) + if (BetaResponsesWebSocketStreamEventVariant1 is { } __value0) { - betaResponsesWebSocketStreamEventVariant1?.Invoke(BetaResponsesWebSocketStreamEventVariant1!); + betaResponsesWebSocketStreamEventVariant1?.Invoke(__value0); } - else if (IsBetaResponsesWebSocketStreamEventVariant2) + else if (BetaResponsesWebSocketStreamEventVariant2 is { } __value1) { - betaResponsesWebSocketStreamEventVariant2?.Invoke(BetaResponsesWebSocketStreamEventVariant2!); + betaResponsesWebSocketStreamEventVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTextResponseFormatConfiguration.g.cs index f524b143b..36e6568c0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTextResponseFormatConfiguration.g.cs @@ -50,8 +50,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.BetaResponseFormatText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickJsonSchema( /// /// /// - public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema PickJsonSchema() => IsJsonSchema - ? JsonSchema! + public global::tryAGI.OpenAI.BetaTextResponseFormatJsonSchema PickJsonSchema() => JsonSchema is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonSchema' but the value was {ToString()}."); /// @@ -128,8 +128,8 @@ public bool TryPickJsonObject( /// /// /// - public global::tryAGI.OpenAI.BetaResponseFormatJsonObject PickJsonObject() => IsJsonObject - ? JsonObject! + public global::tryAGI.OpenAI.BetaResponseFormatJsonObject PickJsonObject() => JsonObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonObject' but the value was {ToString()}."); /// /// @@ -254,17 +254,17 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsJsonSchema && jsonSchema != null) + else if (JsonSchema is { } __value1 && jsonSchema != null) { - return jsonSchema(JsonSchema!); + return jsonSchema(__value1); } - else if (IsJsonObject && jsonObject != null) + else if (JsonObject is { } __value2 && jsonObject != null) { - return jsonObject(JsonObject!); + return jsonObject(__value2); } return default(TResult); @@ -286,17 +286,17 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } } @@ -314,17 +314,17 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTool.g.cs index c54d6b704..764f34dee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaTool.g.cs @@ -42,8 +42,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionTool PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.BetaFunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFileSearch( /// /// /// - public global::tryAGI.OpenAI.BetaFileSearchTool PickFileSearch() => IsFileSearch - ? FileSearch! + public global::tryAGI.OpenAI.BetaFileSearchTool PickFileSearch() => FileSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickComputer( /// /// /// - public global::tryAGI.OpenAI.BetaComputerTool PickComputer() => IsComputer - ? Computer! + public global::tryAGI.OpenAI.BetaComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickComputerUsePreview( /// /// /// - public global::tryAGI.OpenAI.BetaComputerUsePreviewTool PickComputerUsePreview() => IsComputerUsePreview - ? ComputerUsePreview! + public global::tryAGI.OpenAI.BetaComputerUsePreviewTool PickComputerUsePreview() => ComputerUsePreview is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerUsePreview' but the value was {ToString()}."); /// @@ -191,8 +191,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchTool PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.BetaWebSearchTool PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// @@ -229,8 +229,8 @@ public bool TryPickMcp( /// /// /// - public global::tryAGI.OpenAI.BetaMCPTool PickMcp() => IsMcp - ? Mcp! + public global::tryAGI.OpenAI.BetaMCPTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -266,8 +266,8 @@ public bool TryPickCodeInterpreter( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterTool PickCodeInterpreter() => IsCodeInterpreter - ? CodeInterpreter! + public global::tryAGI.OpenAI.BetaCodeInterpreterTool PickCodeInterpreter() => CodeInterpreter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreter' but the value was {ToString()}."); /// @@ -303,8 +303,8 @@ public bool TryPickProgrammaticToolCalling( /// /// /// - public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam PickProgrammaticToolCalling() => IsProgrammaticToolCalling - ? ProgrammaticToolCalling! + public global::tryAGI.OpenAI.BetaProgrammaticToolCallingParam PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); /// @@ -340,8 +340,8 @@ public bool TryPickImageGeneration( /// /// /// - public global::tryAGI.OpenAI.BetaImageGenTool PickImageGeneration() => IsImageGeneration - ? ImageGeneration! + public global::tryAGI.OpenAI.BetaImageGenTool PickImageGeneration() => ImageGeneration is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGeneration' but the value was {ToString()}."); /// @@ -377,8 +377,8 @@ public bool TryPickLocalShell( /// /// /// - public global::tryAGI.OpenAI.BetaLocalShellToolParam PickLocalShell() => IsLocalShell - ? LocalShell! + public global::tryAGI.OpenAI.BetaLocalShellToolParam PickLocalShell() => LocalShell is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShell' but the value was {ToString()}."); /// @@ -414,8 +414,8 @@ public bool TryPickShell( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellToolParam PickShell() => IsShell - ? Shell! + public global::tryAGI.OpenAI.BetaFunctionShellToolParam PickShell() => Shell is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shell' but the value was {ToString()}."); /// @@ -451,8 +451,8 @@ public bool TryPickCustom( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => IsCustom - ? Custom! + public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => Custom is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// @@ -488,8 +488,8 @@ public bool TryPickNamespace( /// /// /// - public global::tryAGI.OpenAI.BetaNamespaceToolParam PickNamespace() => IsNamespace - ? Namespace! + public global::tryAGI.OpenAI.BetaNamespaceToolParam PickNamespace() => Namespace is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Namespace' but the value was {ToString()}."); /// @@ -525,8 +525,8 @@ public bool TryPickToolSearch( /// /// /// - public global::tryAGI.OpenAI.BetaToolSearchToolParam PickToolSearch() => IsToolSearch - ? ToolSearch! + public global::tryAGI.OpenAI.BetaToolSearchToolParam PickToolSearch() => ToolSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); /// @@ -562,8 +562,8 @@ public bool TryPickWebSearchPreview( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchPreviewTool PickWebSearchPreview() => IsWebSearchPreview - ? WebSearchPreview! + public global::tryAGI.OpenAI.BetaWebSearchPreviewTool PickWebSearchPreview() => WebSearchPreview is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchPreview' but the value was {ToString()}."); /// @@ -599,8 +599,8 @@ public bool TryPickApplyPatch( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchToolParam PickApplyPatch() => IsApplyPatch - ? ApplyPatch! + public global::tryAGI.OpenAI.BetaApplyPatchToolParam PickApplyPatch() => ApplyPatch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatch' but the value was {ToString()}."); /// /// @@ -1089,69 +1089,69 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsFileSearch && fileSearch != null) + else if (FileSearch is { } __value1 && fileSearch != null) { - return fileSearch(FileSearch!); + return fileSearch(__value1); } - else if (IsComputer && computer != null) + else if (Computer is { } __value2 && computer != null) { - return computer(Computer!); + return computer(__value2); } - else if (IsComputerUsePreview && computerUsePreview != null) + else if (ComputerUsePreview is { } __value3 && computerUsePreview != null) { - return computerUsePreview(ComputerUsePreview!); + return computerUsePreview(__value3); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value4 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value4); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value5 && mcp != null) { - return mcp(Mcp!); + return mcp(__value5); } - else if (IsCodeInterpreter && codeInterpreter != null) + else if (CodeInterpreter is { } __value6 && codeInterpreter != null) { - return codeInterpreter(CodeInterpreter!); + return codeInterpreter(__value6); } - else if (IsProgrammaticToolCalling && programmaticToolCalling != null) + else if (ProgrammaticToolCalling is { } __value7 && programmaticToolCalling != null) { - return programmaticToolCalling(ProgrammaticToolCalling!); + return programmaticToolCalling(__value7); } - else if (IsImageGeneration && imageGeneration != null) + else if (ImageGeneration is { } __value8 && imageGeneration != null) { - return imageGeneration(ImageGeneration!); + return imageGeneration(__value8); } - else if (IsLocalShell && localShell != null) + else if (LocalShell is { } __value9 && localShell != null) { - return localShell(LocalShell!); + return localShell(__value9); } - else if (IsShell && shell != null) + else if (Shell is { } __value10 && shell != null) { - return shell(Shell!); + return shell(__value10); } - else if (IsCustom && custom != null) + else if (Custom is { } __value11 && custom != null) { - return custom(Custom!); + return custom(__value11); } - else if (IsNamespace && @namespace != null) + else if (Namespace is { } __value12 && @namespace != null) { - return @namespace(Namespace!); + return @namespace(__value12); } - else if (IsToolSearch && toolSearch != null) + else if (ToolSearch is { } __value13 && toolSearch != null) { - return toolSearch(ToolSearch!); + return toolSearch(__value13); } - else if (IsWebSearchPreview && webSearchPreview != null) + else if (WebSearchPreview is { } __value14 && webSearchPreview != null) { - return webSearchPreview(WebSearchPreview!); + return webSearchPreview(__value14); } - else if (IsApplyPatch && applyPatch != null) + else if (ApplyPatch is { } __value15 && applyPatch != null) { - return applyPatch(ApplyPatch!); + return applyPatch(__value15); } return default(TResult); @@ -1199,69 +1199,69 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsFileSearch) + else if (FileSearch is { } __value1) { - fileSearch?.Invoke(FileSearch!); + fileSearch?.Invoke(__value1); } - else if (IsComputer) + else if (Computer is { } __value2) { - computer?.Invoke(Computer!); + computer?.Invoke(__value2); } - else if (IsComputerUsePreview) + else if (ComputerUsePreview is { } __value3) { - computerUsePreview?.Invoke(ComputerUsePreview!); + computerUsePreview?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } - else if (IsMcp) + else if (Mcp is { } __value5) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value5); } - else if (IsCodeInterpreter) + else if (CodeInterpreter is { } __value6) { - codeInterpreter?.Invoke(CodeInterpreter!); + codeInterpreter?.Invoke(__value6); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value7) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value7); } - else if (IsImageGeneration) + else if (ImageGeneration is { } __value8) { - imageGeneration?.Invoke(ImageGeneration!); + imageGeneration?.Invoke(__value8); } - else if (IsLocalShell) + else if (LocalShell is { } __value9) { - localShell?.Invoke(LocalShell!); + localShell?.Invoke(__value9); } - else if (IsShell) + else if (Shell is { } __value10) { - shell?.Invoke(Shell!); + shell?.Invoke(__value10); } - else if (IsCustom) + else if (Custom is { } __value11) { - custom?.Invoke(Custom!); + custom?.Invoke(__value11); } - else if (IsNamespace) + else if (Namespace is { } __value12) { - @namespace?.Invoke(Namespace!); + @namespace?.Invoke(__value12); } - else if (IsToolSearch) + else if (ToolSearch is { } __value13) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value13); } - else if (IsWebSearchPreview) + else if (WebSearchPreview is { } __value14) { - webSearchPreview?.Invoke(WebSearchPreview!); + webSearchPreview?.Invoke(__value14); } - else if (IsApplyPatch) + else if (ApplyPatch is { } __value15) { - applyPatch?.Invoke(ApplyPatch!); + applyPatch?.Invoke(__value15); } } @@ -1292,69 +1292,69 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsFileSearch) + else if (FileSearch is { } __value1) { - fileSearch?.Invoke(FileSearch!); + fileSearch?.Invoke(__value1); } - else if (IsComputer) + else if (Computer is { } __value2) { - computer?.Invoke(Computer!); + computer?.Invoke(__value2); } - else if (IsComputerUsePreview) + else if (ComputerUsePreview is { } __value3) { - computerUsePreview?.Invoke(ComputerUsePreview!); + computerUsePreview?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } - else if (IsMcp) + else if (Mcp is { } __value5) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value5); } - else if (IsCodeInterpreter) + else if (CodeInterpreter is { } __value6) { - codeInterpreter?.Invoke(CodeInterpreter!); + codeInterpreter?.Invoke(__value6); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value7) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value7); } - else if (IsImageGeneration) + else if (ImageGeneration is { } __value8) { - imageGeneration?.Invoke(ImageGeneration!); + imageGeneration?.Invoke(__value8); } - else if (IsLocalShell) + else if (LocalShell is { } __value9) { - localShell?.Invoke(LocalShell!); + localShell?.Invoke(__value9); } - else if (IsShell) + else if (Shell is { } __value10) { - shell?.Invoke(Shell!); + shell?.Invoke(__value10); } - else if (IsCustom) + else if (Custom is { } __value11) { - custom?.Invoke(Custom!); + custom?.Invoke(__value11); } - else if (IsNamespace) + else if (Namespace is { } __value12) { - @namespace?.Invoke(Namespace!); + @namespace?.Invoke(__value12); } - else if (IsToolSearch) + else if (ToolSearch is { } __value13) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value13); } - else if (IsWebSearchPreview) + else if (WebSearchPreview is { } __value14) { - webSearchPreview?.Invoke(WebSearchPreview!); + webSearchPreview?.Invoke(__value14); } - else if (IsApplyPatch) + else if (ApplyPatch is { } __value15) { - applyPatch?.Invoke(ApplyPatch!); + applyPatch?.Invoke(__value15); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCaller.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCaller.g.cs index 3d4af6f0f..a0af94e94 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCaller.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCaller.g.cs @@ -47,8 +47,8 @@ public bool TryPickDirect( /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCaller PickDirect() => IsDirect - ? Direct! + public global::tryAGI.OpenAI.BetaDirectToolCallCaller PickDirect() => Direct is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Direct' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCaller PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.BetaProgramToolCallCaller PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDirect && direct != null) + if (Direct is { } __value0 && direct != null) { - return direct(Direct!); + return direct(__value0); } - else if (IsProgram && program != null) + else if (Program is { } __value1 && program != null) { - return program(Program!); + return program(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCallerParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCallerParam.g.cs index d29f9dd0c..4ce2865c9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCallerParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolCallCallerParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickDirect( /// /// /// - public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam PickDirect() => IsDirect - ? Direct! + public global::tryAGI.OpenAI.BetaDirectToolCallCallerParam PickDirect() => Direct is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Direct' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.BetaProgramToolCallCallerParam PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDirect && direct != null) + if (Direct is { } __value0 && direct != null) { - return direct(Direct!); + return direct(__value0); } - else if (IsProgram && program != null) + else if (Program is { } __value1 && program != null) { - return program(Program!); + return program(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolChoiceParam.g.cs index b78ff88b9..204a9ef57 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolChoiceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaToolChoiceParam.g.cs @@ -48,8 +48,8 @@ public bool TryPickToolChoiceMode( /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceOptions PickToolChoiceMode() => IsToolChoiceMode - ? ToolChoiceMode!.Value + public global::tryAGI.OpenAI.BetaToolChoiceOptions PickToolChoiceMode() => ToolChoiceMode is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolChoiceMode' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickAllowedTools( /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceAllowed PickAllowedTools() => IsAllowedTools - ? AllowedTools! + public global::tryAGI.OpenAI.BetaToolChoiceAllowed PickAllowedTools() => AllowedTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AllowedTools' but the value was {ToString()}."); /// @@ -123,8 +123,8 @@ public bool TryPickHostedTool( /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceTypes PickHostedTool() => IsHostedTool - ? HostedTool! + public global::tryAGI.OpenAI.BetaToolChoiceTypes PickHostedTool() => HostedTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'HostedTool' but the value was {ToString()}."); /// @@ -160,8 +160,8 @@ public bool TryPickFunctionTool( /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceFunction PickFunctionTool() => IsFunctionTool - ? FunctionTool! + public global::tryAGI.OpenAI.BetaToolChoiceFunction PickFunctionTool() => FunctionTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionTool' but the value was {ToString()}."); /// @@ -197,8 +197,8 @@ public bool TryPickMcpTool( /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceMCP PickMcpTool() => IsMcpTool - ? McpTool! + public global::tryAGI.OpenAI.BetaToolChoiceMCP PickMcpTool() => McpTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpTool' but the value was {ToString()}."); /// @@ -234,8 +234,8 @@ public bool TryPickCustomTool( /// /// /// - public global::tryAGI.OpenAI.BetaToolChoiceCustom PickCustomTool() => IsCustomTool - ? CustomTool! + public global::tryAGI.OpenAI.BetaToolChoiceCustom PickCustomTool() => CustomTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomTool' but the value was {ToString()}."); /// @@ -271,8 +271,8 @@ public bool TryPickSpecificProgrammaticCalling( /// /// /// - public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam PickSpecificProgrammaticCalling() => IsSpecificProgrammaticCalling - ? SpecificProgrammaticCalling! + public global::tryAGI.OpenAI.BetaSpecificProgrammaticToolCallingParam PickSpecificProgrammaticCalling() => SpecificProgrammaticCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpecificProgrammaticCalling' but the value was {ToString()}."); /// @@ -308,8 +308,8 @@ public bool TryPickSpecificApplyPatchToolChoice( /// /// /// - public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam PickSpecificApplyPatchToolChoice() => IsSpecificApplyPatchToolChoice - ? SpecificApplyPatchToolChoice! + public global::tryAGI.OpenAI.BetaSpecificApplyPatchParam PickSpecificApplyPatchToolChoice() => SpecificApplyPatchToolChoice is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpecificApplyPatchToolChoice' but the value was {ToString()}."); /// @@ -345,8 +345,8 @@ public bool TryPickSpecificShellToolChoice( /// /// /// - public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam PickSpecificShellToolChoice() => IsSpecificShellToolChoice - ? SpecificShellToolChoice! + public global::tryAGI.OpenAI.BetaSpecificFunctionShellParam PickSpecificShellToolChoice() => SpecificShellToolChoice is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpecificShellToolChoice' but the value was {ToString()}."); /// /// @@ -639,41 +639,41 @@ public bool Validate() Validate(); } - if (IsToolChoiceMode && toolChoiceMode != null) + if (ToolChoiceMode is { } __value0 && toolChoiceMode != null) { - return toolChoiceMode(ToolChoiceMode!); + return toolChoiceMode(__value0); } - else if (IsAllowedTools && allowedTools != null) + else if (AllowedTools is { } __value1 && allowedTools != null) { - return allowedTools(AllowedTools!); + return allowedTools(__value1); } - else if (IsHostedTool && hostedTool != null) + else if (HostedTool is { } __value2 && hostedTool != null) { - return hostedTool(HostedTool!); + return hostedTool(__value2); } - else if (IsFunctionTool && functionTool != null) + else if (FunctionTool is { } __value3 && functionTool != null) { - return functionTool(FunctionTool!); + return functionTool(__value3); } - else if (IsMcpTool && mcpTool != null) + else if (McpTool is { } __value4 && mcpTool != null) { - return mcpTool(McpTool!); + return mcpTool(__value4); } - else if (IsCustomTool && customTool != null) + else if (CustomTool is { } __value5 && customTool != null) { - return customTool(CustomTool!); + return customTool(__value5); } - else if (IsSpecificProgrammaticCalling && specificProgrammaticCalling != null) + else if (SpecificProgrammaticCalling is { } __value6 && specificProgrammaticCalling != null) { - return specificProgrammaticCalling(SpecificProgrammaticCalling!); + return specificProgrammaticCalling(__value6); } - else if (IsSpecificApplyPatchToolChoice && specificApplyPatchToolChoice != null) + else if (SpecificApplyPatchToolChoice is { } __value7 && specificApplyPatchToolChoice != null) { - return specificApplyPatchToolChoice(SpecificApplyPatchToolChoice!); + return specificApplyPatchToolChoice(__value7); } - else if (IsSpecificShellToolChoice && specificShellToolChoice != null) + else if (SpecificShellToolChoice is { } __value8 && specificShellToolChoice != null) { - return specificShellToolChoice(SpecificShellToolChoice!); + return specificShellToolChoice(__value8); } return default(TResult); @@ -707,41 +707,41 @@ public void Match( Validate(); } - if (IsToolChoiceMode) + if (ToolChoiceMode is { } __value0) { - toolChoiceMode?.Invoke(ToolChoiceMode!); + toolChoiceMode?.Invoke(__value0); } - else if (IsAllowedTools) + else if (AllowedTools is { } __value1) { - allowedTools?.Invoke(AllowedTools!); + allowedTools?.Invoke(__value1); } - else if (IsHostedTool) + else if (HostedTool is { } __value2) { - hostedTool?.Invoke(HostedTool!); + hostedTool?.Invoke(__value2); } - else if (IsFunctionTool) + else if (FunctionTool is { } __value3) { - functionTool?.Invoke(FunctionTool!); + functionTool?.Invoke(__value3); } - else if (IsMcpTool) + else if (McpTool is { } __value4) { - mcpTool?.Invoke(McpTool!); + mcpTool?.Invoke(__value4); } - else if (IsCustomTool) + else if (CustomTool is { } __value5) { - customTool?.Invoke(CustomTool!); + customTool?.Invoke(__value5); } - else if (IsSpecificProgrammaticCalling) + else if (SpecificProgrammaticCalling is { } __value6) { - specificProgrammaticCalling?.Invoke(SpecificProgrammaticCalling!); + specificProgrammaticCalling?.Invoke(__value6); } - else if (IsSpecificApplyPatchToolChoice) + else if (SpecificApplyPatchToolChoice is { } __value7) { - specificApplyPatchToolChoice?.Invoke(SpecificApplyPatchToolChoice!); + specificApplyPatchToolChoice?.Invoke(__value7); } - else if (IsSpecificShellToolChoice) + else if (SpecificShellToolChoice is { } __value8) { - specificShellToolChoice?.Invoke(SpecificShellToolChoice!); + specificShellToolChoice?.Invoke(__value8); } } @@ -765,41 +765,41 @@ public void Switch( Validate(); } - if (IsToolChoiceMode) + if (ToolChoiceMode is { } __value0) { - toolChoiceMode?.Invoke(ToolChoiceMode!); + toolChoiceMode?.Invoke(__value0); } - else if (IsAllowedTools) + else if (AllowedTools is { } __value1) { - allowedTools?.Invoke(AllowedTools!); + allowedTools?.Invoke(__value1); } - else if (IsHostedTool) + else if (HostedTool is { } __value2) { - hostedTool?.Invoke(HostedTool!); + hostedTool?.Invoke(__value2); } - else if (IsFunctionTool) + else if (FunctionTool is { } __value3) { - functionTool?.Invoke(FunctionTool!); + functionTool?.Invoke(__value3); } - else if (IsMcpTool) + else if (McpTool is { } __value4) { - mcpTool?.Invoke(McpTool!); + mcpTool?.Invoke(__value4); } - else if (IsCustomTool) + else if (CustomTool is { } __value5) { - customTool?.Invoke(CustomTool!); + customTool?.Invoke(__value5); } - else if (IsSpecificProgrammaticCalling) + else if (SpecificProgrammaticCalling is { } __value6) { - specificProgrammaticCalling?.Invoke(SpecificProgrammaticCalling!); + specificProgrammaticCalling?.Invoke(__value6); } - else if (IsSpecificApplyPatchToolChoice) + else if (SpecificApplyPatchToolChoice is { } __value7) { - specificApplyPatchToolChoice?.Invoke(SpecificApplyPatchToolChoice!); + specificApplyPatchToolChoice?.Invoke(__value7); } - else if (IsSpecificShellToolChoice) + else if (SpecificShellToolChoice is { } __value8) { - specificShellToolChoice?.Invoke(SpecificShellToolChoice!); + specificShellToolChoice?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCall.g.cs index e3273d9ca..4d994b188 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCall.g.cs @@ -43,8 +43,7 @@ public sealed partial class BetaWebSearchToolCall /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.BetaWebSearchToolCallActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.BetaWebSearchToolCallAction Action { get; set; } + public global::tryAGI.OpenAI.BetaWebSearchToolCallAction? Action { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -61,25 +60,25 @@ public sealed partial class BetaWebSearchToolCall /// /// The status of the web search tool call. /// - /// - /// An object describing the specific action taken in this web search call.
- /// Includes details on how the model used the web (search, open_page, find_in_page). - /// /// /// The agent that produced this item. /// /// /// The type of the web search tool call. Always `web_search_call`. /// + /// + /// An object describing the specific action taken in this web search call.
+ /// Includes details on how the model used the web (search, open_page, find_in_page). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BetaWebSearchToolCall( string id, global::tryAGI.OpenAI.BetaWebSearchCallStatus status, - global::tryAGI.OpenAI.BetaWebSearchToolCallAction action, global::tryAGI.OpenAI.BetaAgentTag? agent, - global::tryAGI.OpenAI.BetaWebSearchToolCallType type) + global::tryAGI.OpenAI.BetaWebSearchToolCallType type, + global::tryAGI.OpenAI.BetaWebSearchToolCallAction? action) { this.Agent = agent; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCallAction.g.cs index 99b92957b..1e3de95d3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaWebSearchToolCallAction.g.cs @@ -48,8 +48,8 @@ public bool TryPickSearch( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionSearch PickSearch() => IsSearch - ? Search! + public global::tryAGI.OpenAI.BetaWebSearchActionSearch PickSearch() => Search is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Search' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickOpenPage( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage PickOpenPage() => IsOpenPage - ? OpenPage! + public global::tryAGI.OpenAI.BetaWebSearchActionOpenPage PickOpenPage() => OpenPage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OpenPage' but the value was {ToString()}."); /// @@ -122,8 +122,8 @@ public bool TryPickFindInPage( /// /// /// - public global::tryAGI.OpenAI.BetaWebSearchActionFind PickFindInPage() => IsFindInPage - ? FindInPage! + public global::tryAGI.OpenAI.BetaWebSearchActionFind PickFindInPage() => FindInPage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FindInPage' but the value was {ToString()}."); /// /// @@ -251,17 +251,17 @@ public bool Validate() Validate(); } - if (IsSearch && search != null) + if (Search is { } __value0 && search != null) { - return search(Search!); + return search(__value0); } - else if (IsOpenPage && openPage != null) + else if (OpenPage is { } __value1 && openPage != null) { - return openPage(OpenPage!); + return openPage(__value1); } - else if (IsFindInPage && findInPage != null) + else if (FindInPage is { } __value2 && findInPage != null) { - return findInPage(FindInPage!); + return findInPage(__value2); } return default(TResult); @@ -283,17 +283,17 @@ public void Match( Validate(); } - if (IsSearch) + if (Search is { } __value0) { - search?.Invoke(Search!); + search?.Invoke(__value0); } - else if (IsOpenPage) + else if (OpenPage is { } __value1) { - openPage?.Invoke(OpenPage!); + openPage?.Invoke(__value1); } - else if (IsFindInPage) + else if (FindInPage is { } __value2) { - findInPage?.Invoke(FindInPage!); + findInPage?.Invoke(__value2); } } @@ -311,17 +311,17 @@ public void Switch( Validate(); } - if (IsSearch) + if (Search is { } __value0) { - search?.Invoke(Search!); + search?.Invoke(__value0); } - else if (IsOpenPage) + else if (OpenPage is { } __value1) { - openPage?.Invoke(OpenPage!); + openPage?.Invoke(__value1); } - else if (IsFindInPage) + else if (FindInPage is { } __value2) { - findInPage?.Invoke(FindInPage!); + findInPage?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageList.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageList.g.cs index 3bd44cb6f..3e682166c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageList.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageList.g.cs @@ -22,21 +22,19 @@ public sealed partial class ChatCompletionMessageList /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Data { get; set; } + public required global::System.Collections.Generic.IList Data { get; set; } /// /// The identifier of the first chat message in the data array. /// [global::System.Text.Json.Serialization.JsonPropertyName("first_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string FirstId { get; set; } + public string? FirstId { get; set; } /// /// The identifier of the last chat message in the data array. /// [global::System.Text.Json.Serialization.JsonPropertyName("last_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string LastId { get; set; } + public string? LastId { get; set; } /// /// Indicates whether there are more chat messages available. @@ -57,15 +55,15 @@ public sealed partial class ChatCompletionMessageList /// /// An array of chat completion message objects. /// + /// + /// Indicates whether there are more chat messages available. + /// /// /// The identifier of the first chat message in the data array. /// /// /// The identifier of the last chat message in the data array. /// - /// - /// Indicates whether there are more chat messages available. - /// /// /// The type of this object. It is always set to "list".
/// Default Value: list @@ -74,16 +72,16 @@ public sealed partial class ChatCompletionMessageList [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionMessageList( - global::System.Collections.Generic.IList> data, - string firstId, - string lastId, + global::System.Collections.Generic.IList data, bool hasMore, + string? firstId, + string? lastId, global::tryAGI.OpenAI.ChatCompletionMessageListObject @object = global::tryAGI.OpenAI.ChatCompletionMessageListObject.List) { this.Object = @object; this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); - this.FirstId = firstId ?? throw new global::System.ArgumentNullException(nameof(firstId)); - this.LastId = lastId ?? throw new global::System.ArgumentNullException(nameof(lastId)); + this.FirstId = firstId; + this.LastId = lastId; this.HasMore = hasMore; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs index 23ace0509..bf9049b04 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItem.g.cs @@ -9,17 +9,37 @@ namespace tryAGI.OpenAI public sealed partial class ChatCompletionMessageListDataItem { /// - /// The identifier of the chat message. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content_parts")] - public global::System.Collections.Generic.IList>? ContentParts { get; set; } + public global::System.Collections.Generic.IList? ContentParts { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,19 +50,26 @@ public sealed partial class ChatCompletionMessageListDataItem /// /// Initializes a new instance of the class. /// - /// - /// The identifier of the chat message. - /// + /// + /// + /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionMessageListDataItem( string id, - global::System.Collections.Generic.IList>? contentParts) + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemRole role, + string? content, + global::System.Collections.Generic.IList? contentParts, + string? name) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Role = role; + this.Content = content; this.ContentParts = contentParts; + this.Name = name; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.Json.g.cs new file mode 100644 index 000000000..06d6fb972 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1Item + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1Item; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.g.cs new file mode 100644 index 000000000..3b103a825 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1Item.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1Item + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image_url")] + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl? ImageUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_audio")] + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio? InputAudio { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + public global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile? File { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatCompletionMessageListDataItemContentPartsVariant1Item( + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemType type, + string? text, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl? imageUrl, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio? inputAudio, + global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile? file) + { + this.Type = type; + this.Text = text; + this.ImageUrl = imageUrl; + this.InputAudio = inputAudio; + this.File = file; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionMessageListDataItemContentPartsVariant1Item() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.Json.g.cs new file mode 100644 index 000000000..a10e3c236 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1ItemFile + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.g.cs new file mode 100644 index 000000000..548187e2a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemFile.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1ItemFile + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_data")] + public string? FileData { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file_id")] + public string? FileId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatCompletionMessageListDataItemContentPartsVariant1ItemFile( + string? fileData, + string? filename, + string? fileId) + { + this.FileData = fileData; + this.Filename = filename; + this.FileId = fileId; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionMessageListDataItemContentPartsVariant1ItemFile() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.Json.g.cs new file mode 100644 index 000000000..70dc24a31 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.g.cs new file mode 100644 index 000000000..6887379d3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Url { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detail")] + public string? Detail { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl( + string url, + string? detail) + { + this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); + this.Detail = detail; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionMessageListDataItemContentPartsVariant1ItemImageUrl() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.Json.g.cs new file mode 100644 index 000000000..321f475fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio), + jsonSerializerContext) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.g.cs new file mode 100644 index 000000000..3842f382f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Data { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Format { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio( + string data, + string format) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.Format = format ?? throw new global::System.ArgumentNullException(nameof(format)); + } + + /// + /// Initializes a new instance of the class. + /// + public ChatCompletionMessageListDataItemContentPartsVariant1ItemInputAudio() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs new file mode 100644 index 000000000..538936f4f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemContentPartsVariant1ItemType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChatCompletionMessageListDataItemContentPartsVariant1ItemType + { + /// + /// + /// + File, + /// + /// + /// + ImageUrl, + /// + /// + /// + InputAudio, + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatCompletionMessageListDataItemContentPartsVariant1ItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatCompletionMessageListDataItemContentPartsVariant1ItemType value) + { + return value switch + { + ChatCompletionMessageListDataItemContentPartsVariant1ItemType.File => "file", + ChatCompletionMessageListDataItemContentPartsVariant1ItemType.ImageUrl => "image_url", + ChatCompletionMessageListDataItemContentPartsVariant1ItemType.InputAudio => "input_audio", + ChatCompletionMessageListDataItemContentPartsVariant1ItemType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatCompletionMessageListDataItemContentPartsVariant1ItemType? ToEnum(string value) + { + return value switch + { + "file" => ChatCompletionMessageListDataItemContentPartsVariant1ItemType.File, + "image_url" => ChatCompletionMessageListDataItemContentPartsVariant1ItemType.ImageUrl, + "input_audio" => ChatCompletionMessageListDataItemContentPartsVariant1ItemType.InputAudio, + "text" => ChatCompletionMessageListDataItemContentPartsVariant1ItemType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemRole.g.cs new file mode 100644 index 000000000..1a321905e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageListDataItemRole.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChatCompletionMessageListDataItemRole + { + /// + /// + /// + Assistant, + /// + /// + /// + Developer, + /// + /// + /// + Function, + /// + /// + /// + System, + /// + /// + /// + Tool, + /// + /// + /// + User, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatCompletionMessageListDataItemRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatCompletionMessageListDataItemRole value) + { + return value switch + { + ChatCompletionMessageListDataItemRole.Assistant => "assistant", + ChatCompletionMessageListDataItemRole.Developer => "developer", + ChatCompletionMessageListDataItemRole.Function => "function", + ChatCompletionMessageListDataItemRole.System => "system", + ChatCompletionMessageListDataItemRole.Tool => "tool", + ChatCompletionMessageListDataItemRole.User => "user", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatCompletionMessageListDataItemRole? ToEnum(string value) + { + return value switch + { + "assistant" => ChatCompletionMessageListDataItemRole.Assistant, + "developer" => ChatCompletionMessageListDataItemRole.Developer, + "function" => ChatCompletionMessageListDataItemRole.Function, + "system" => ChatCompletionMessageListDataItemRole.System, + "tool" => ChatCompletionMessageListDataItemRole.Tool, + "user" => ChatCompletionMessageListDataItemRole.User, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs index 9e27cb59d..50a6929d7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageToolCall PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.ChatCompletionMessageToolCall PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCustom( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall PickCustom() => IsCustom - ? Custom! + public global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall PickCustom() => Custom is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsCustom && custom != null) + else if (Custom is { } __value1 && custom != null) { - return custom(Custom!); + return custom(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsCustom) + else if (Custom is { } __value1) { - custom?.Invoke(Custom!); + custom?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsCustom) + else if (Custom is { } __value1) { - custom?.Invoke(Custom!); + custom?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs index 71dbbce35..31fbc6662 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value1 && refusal != null) { - return refusal(Refusal!); + return refusal(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs index 3f5f8ec13..7d31333fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs @@ -49,8 +49,8 @@ public bool TryPickDeveloper( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage PickDeveloper() => IsDeveloper - ? Developer! + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage PickDeveloper() => Developer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Developer' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickSystem( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage PickSystem() => IsSystem - ? System! + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage PickSystem() => System is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'System' but the value was {ToString()}."); /// @@ -126,8 +126,8 @@ public bool TryPickUser( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage PickUser() => IsUser - ? User! + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage PickUser() => User is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'User' but the value was {ToString()}."); /// @@ -163,8 +163,8 @@ public bool TryPickAssistant( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage PickAssistant() => IsAssistant - ? Assistant! + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage PickAssistant() => Assistant is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Assistant' but the value was {ToString()}."); /// @@ -200,8 +200,8 @@ public bool TryPickTool( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage PickTool() => IsTool - ? Tool! + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage PickTool() => Tool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tool' but the value was {ToString()}."); /// @@ -237,8 +237,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// /// @@ -450,29 +450,29 @@ public bool Validate() Validate(); } - if (IsDeveloper && developer != null) + if (Developer is { } __value0 && developer != null) { - return developer(Developer!); + return developer(__value0); } - else if (IsSystem && system != null) + else if (System is { } __value1 && system != null) { - return system(System!); + return system(__value1); } - else if (IsUser && user != null) + else if (User is { } __value2 && user != null) { - return user(User!); + return user(__value2); } - else if (IsAssistant && assistant != null) + else if (Assistant is { } __value3 && assistant != null) { - return assistant(Assistant!); + return assistant(__value3); } - else if (IsTool && tool != null) + else if (Tool is { } __value4 && tool != null) { - return tool(Tool!); + return tool(__value4); } - else if (IsFunction && function != null) + else if (Function is { } __value5 && function != null) { - return function(Function!); + return function(__value5); } return default(TResult); @@ -500,29 +500,29 @@ public void Match( Validate(); } - if (IsDeveloper) + if (Developer is { } __value0) { - developer?.Invoke(Developer!); + developer?.Invoke(__value0); } - else if (IsSystem) + else if (System is { } __value1) { - system?.Invoke(System!); + system?.Invoke(__value1); } - else if (IsUser) + else if (User is { } __value2) { - user?.Invoke(User!); + user?.Invoke(__value2); } - else if (IsAssistant) + else if (Assistant is { } __value3) { - assistant?.Invoke(Assistant!); + assistant?.Invoke(__value3); } - else if (IsTool) + else if (Tool is { } __value4) { - tool?.Invoke(Tool!); + tool?.Invoke(__value4); } - else if (IsFunction) + else if (Function is { } __value5) { - function?.Invoke(Function!); + function?.Invoke(__value5); } } @@ -543,29 +543,29 @@ public void Switch( Validate(); } - if (IsDeveloper) + if (Developer is { } __value0) { - developer?.Invoke(Developer!); + developer?.Invoke(__value0); } - else if (IsSystem) + else if (System is { } __value1) { - system?.Invoke(System!); + system?.Invoke(__value1); } - else if (IsUser) + else if (User is { } __value2) { - user?.Invoke(User!); + user?.Invoke(__value2); } - else if (IsAssistant) + else if (Assistant is { } __value3) { - assistant?.Invoke(Assistant!); + assistant?.Invoke(__value3); } - else if (IsTool) + else if (Tool is { } __value4) { - tool?.Invoke(Tool!); + tool?.Invoke(__value4); } - else if (IsFunction) + else if (Function is { } __value5) { - function?.Invoke(Function!); + function?.Invoke(__value5); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs index ca88aacca..18f1ff99f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestSystemMessageContentPart.g.cs @@ -42,8 +42,8 @@ public bool TryPickTextContentPart( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickTextContentPart() => IsTextContentPart - ? TextContentPart! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickTextContentPart() => TextContentPart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextContentPart' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsTextContentPart && textContentPart != null) + if (TextContentPart is { } __value0 && textContentPart != null) { - return textContentPart(TextContentPart!); + return textContentPart(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsTextContentPart) + if (TextContentPart is { } __value0) { - textContentPart?.Invoke(TextContentPart!); + textContentPart?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsTextContentPart) + if (TextContentPart is { } __value0) { - textContentPart?.Invoke(TextContentPart!); + textContentPart?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs index e723ae381..2424a3fdf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestToolMessageContentPart.g.cs @@ -42,8 +42,8 @@ public bool TryPickTextContentPart( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickTextContentPart() => IsTextContentPart - ? TextContentPart! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickTextContentPart() => TextContentPart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextContentPart' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsTextContentPart && textContentPart != null) + if (TextContentPart is { } __value0 && textContentPart != null) { - return textContentPart(TextContentPart!); + return textContentPart(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsTextContentPart) + if (TextContentPart is { } __value0) { - textContentPart?.Invoke(TextContentPart!); + textContentPart?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsTextContentPart) + if (TextContentPart is { } __value0) { - textContentPart?.Invoke(TextContentPart!); + textContentPart?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs index 65cc85600..ff310f5f2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestUserMessageContentPart.g.cs @@ -42,8 +42,8 @@ public bool TryPickTextContentPart( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickTextContentPart() => IsTextContentPart - ? TextContentPart! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText PickTextContentPart() => TextContentPart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextContentPart' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickImageContentPart( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage PickImageContentPart() => IsImageContentPart - ? ImageContentPart! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage PickImageContentPart() => ImageContentPart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageContentPart' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickAudioContentPart( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio PickAudioContentPart() => IsAudioContentPart - ? AudioContentPart! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio PickAudioContentPart() => AudioContentPart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioContentPart' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickFileContentPart( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile PickFileContentPart() => IsFileContentPart - ? FileContentPart! + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile PickFileContentPart() => FileContentPart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileContentPart' but the value was {ToString()}."); /// /// @@ -307,21 +307,21 @@ public bool Validate() Validate(); } - if (IsTextContentPart && textContentPart != null) + if (TextContentPart is { } __value0 && textContentPart != null) { - return textContentPart(TextContentPart!); + return textContentPart(__value0); } - else if (IsImageContentPart && imageContentPart != null) + else if (ImageContentPart is { } __value1 && imageContentPart != null) { - return imageContentPart(ImageContentPart!); + return imageContentPart(__value1); } - else if (IsAudioContentPart && audioContentPart != null) + else if (AudioContentPart is { } __value2 && audioContentPart != null) { - return audioContentPart(AudioContentPart!); + return audioContentPart(__value2); } - else if (IsFileContentPart && fileContentPart != null) + else if (FileContentPart is { } __value3 && fileContentPart != null) { - return fileContentPart(FileContentPart!); + return fileContentPart(__value3); } return default(TResult); @@ -345,21 +345,21 @@ public void Match( Validate(); } - if (IsTextContentPart) + if (TextContentPart is { } __value0) { - textContentPart?.Invoke(TextContentPart!); + textContentPart?.Invoke(__value0); } - else if (IsImageContentPart) + else if (ImageContentPart is { } __value1) { - imageContentPart?.Invoke(ImageContentPart!); + imageContentPart?.Invoke(__value1); } - else if (IsAudioContentPart) + else if (AudioContentPart is { } __value2) { - audioContentPart?.Invoke(AudioContentPart!); + audioContentPart?.Invoke(__value2); } - else if (IsFileContentPart) + else if (FileContentPart is { } __value3) { - fileContentPart?.Invoke(FileContentPart!); + fileContentPart?.Invoke(__value3); } } @@ -378,21 +378,21 @@ public void Switch( Validate(); } - if (IsTextContentPart) + if (TextContentPart is { } __value0) { - textContentPart?.Invoke(TextContentPart!); + textContentPart?.Invoke(__value0); } - else if (IsImageContentPart) + else if (ImageContentPart is { } __value1) { - imageContentPart?.Invoke(ImageContentPart!); + imageContentPart?.Invoke(__value1); } - else if (IsAudioContentPart) + else if (AudioContentPart is { } __value2) { - audioContentPart?.Invoke(AudioContentPart!); + audioContentPart?.Invoke(__value2); } - else if (IsFileContentPart) + else if (FileContentPart is { } __value3) { - fileContentPart?.Invoke(FileContentPart!); + fileContentPart?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs index 1f5f637d8..8a72117f0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionToolChoiceOption.g.cs @@ -47,8 +47,8 @@ public bool TryPickToolChoiceMode( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum PickToolChoiceMode() => IsToolChoiceMode - ? ToolChoiceMode!.Value + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum PickToolChoiceMode() => ToolChoiceMode is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolChoiceMode' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAllowedTools( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice PickAllowedTools() => IsAllowedTools - ? AllowedTools! + public global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice PickAllowedTools() => AllowedTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AllowedTools' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickFunctionToolChoice( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice PickFunctionToolChoice() => IsFunctionToolChoice - ? FunctionToolChoice! + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice PickFunctionToolChoice() => FunctionToolChoice is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolChoice' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickCustomToolChoice( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom PickCustomToolChoice() => IsCustomToolChoice - ? CustomToolChoice! + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom PickCustomToolChoice() => CustomToolChoice is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolChoice' but the value was {ToString()}."); /// /// @@ -312,21 +312,21 @@ public bool Validate() Validate(); } - if (IsToolChoiceMode && toolChoiceMode != null) + if (ToolChoiceMode is { } __value0 && toolChoiceMode != null) { - return toolChoiceMode(ToolChoiceMode!); + return toolChoiceMode(__value0); } - else if (IsAllowedTools && allowedTools != null) + else if (AllowedTools is { } __value1 && allowedTools != null) { - return allowedTools(AllowedTools!); + return allowedTools(__value1); } - else if (IsFunctionToolChoice && functionToolChoice != null) + else if (FunctionToolChoice is { } __value2 && functionToolChoice != null) { - return functionToolChoice(FunctionToolChoice!); + return functionToolChoice(__value2); } - else if (IsCustomToolChoice && customToolChoice != null) + else if (CustomToolChoice is { } __value3 && customToolChoice != null) { - return customToolChoice(CustomToolChoice!); + return customToolChoice(__value3); } return default(TResult); @@ -350,21 +350,21 @@ public void Match( Validate(); } - if (IsToolChoiceMode) + if (ToolChoiceMode is { } __value0) { - toolChoiceMode?.Invoke(ToolChoiceMode!); + toolChoiceMode?.Invoke(__value0); } - else if (IsAllowedTools) + else if (AllowedTools is { } __value1) { - allowedTools?.Invoke(AllowedTools!); + allowedTools?.Invoke(__value1); } - else if (IsFunctionToolChoice) + else if (FunctionToolChoice is { } __value2) { - functionToolChoice?.Invoke(FunctionToolChoice!); + functionToolChoice?.Invoke(__value2); } - else if (IsCustomToolChoice) + else if (CustomToolChoice is { } __value3) { - customToolChoice?.Invoke(CustomToolChoice!); + customToolChoice?.Invoke(__value3); } } @@ -383,21 +383,21 @@ public void Switch( Validate(); } - if (IsToolChoiceMode) + if (ToolChoiceMode is { } __value0) { - toolChoiceMode?.Invoke(ToolChoiceMode!); + toolChoiceMode?.Invoke(__value0); } - else if (IsAllowedTools) + else if (AllowedTools is { } __value1) { - allowedTools?.Invoke(AllowedTools!); + allowedTools?.Invoke(__value1); } - else if (IsFunctionToolChoice) + else if (FunctionToolChoice is { } __value2) { - functionToolChoice?.Invoke(FunctionToolChoice!); + functionToolChoice?.Invoke(__value2); } - else if (IsCustomToolChoice) + else if (CustomToolChoice is { } __value3) { - customToolChoice?.Invoke(CustomToolChoice!); + customToolChoice?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs index 1b87b8760..54578031d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickAuto( /// /// /// - public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam PickAuto() => IsAuto - ? Auto! + public global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam PickAuto() => Auto is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Auto' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStatic( /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam PickStatic() => IsStatic - ? Static! + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam PickStatic() => Static is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Static' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsAuto && auto != null) + if (Auto is { } __value0 && auto != null) { - return auto(Auto!); + return auto(__value0); } - else if (IsStatic && @static != null) + else if (Static is { } __value1 && @static != null) { - return @static(Static!); + return @static(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsAuto) + if (Auto is { } __value0) { - auto?.Invoke(Auto!); + auto?.Invoke(__value0); } - else if (IsStatic) + else if (Static is { } __value1) { - @static?.Invoke(Static!); + @static?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsAuto) + if (Auto is { } __value0) { - auto?.Invoke(Auto!); + auto?.Invoke(__value0); } - else if (IsStatic) + else if (Static is { } __value1) { - @static?.Invoke(Static!); + @static?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs index abc8152bc..773bab944 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs @@ -47,8 +47,8 @@ public bool TryPickClick( /// /// /// - public global::tryAGI.OpenAI.ClickParam PickClick() => IsClick - ? Click! + public global::tryAGI.OpenAI.ClickParam PickClick() => Click is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Click' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDoubleClick( /// /// /// - public global::tryAGI.OpenAI.DoubleClickAction PickDoubleClick() => IsDoubleClick - ? DoubleClick! + public global::tryAGI.OpenAI.DoubleClickAction PickDoubleClick() => DoubleClick is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DoubleClick' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDrag( /// /// /// - public global::tryAGI.OpenAI.DragParam PickDrag() => IsDrag - ? Drag! + public global::tryAGI.OpenAI.DragParam PickDrag() => Drag is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Drag' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickKeypress( /// /// /// - public global::tryAGI.OpenAI.KeyPressAction PickKeypress() => IsKeypress - ? Keypress! + public global::tryAGI.OpenAI.KeyPressAction PickKeypress() => Keypress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Keypress' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickMove( /// /// /// - public global::tryAGI.OpenAI.MoveParam PickMove() => IsMove - ? Move! + public global::tryAGI.OpenAI.MoveParam PickMove() => Move is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Move' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickScreenshot( /// /// /// - public global::tryAGI.OpenAI.ScreenshotParam PickScreenshot() => IsScreenshot - ? Screenshot! + public global::tryAGI.OpenAI.ScreenshotParam PickScreenshot() => Screenshot is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Screenshot' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickScroll( /// /// /// - public global::tryAGI.OpenAI.ScrollParam PickScroll() => IsScroll - ? Scroll! + public global::tryAGI.OpenAI.ScrollParam PickScroll() => Scroll is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Scroll' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTypeValue( /// /// /// - public global::tryAGI.OpenAI.TypeParam PickTypeValue() => IsTypeValue - ? TypeValue! + public global::tryAGI.OpenAI.TypeParam PickTypeValue() => TypeValue is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TypeValue' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickWait( /// /// /// - public global::tryAGI.OpenAI.WaitParam PickWait() => IsWait - ? Wait! + public global::tryAGI.OpenAI.WaitParam PickWait() => Wait is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wait' but the value was {ToString()}."); /// /// @@ -640,41 +640,41 @@ public bool Validate() Validate(); } - if (IsClick && click != null) + if (Click is { } __value0 && click != null) { - return click(Click!); + return click(__value0); } - else if (IsDoubleClick && doubleClick != null) + else if (DoubleClick is { } __value1 && doubleClick != null) { - return doubleClick(DoubleClick!); + return doubleClick(__value1); } - else if (IsDrag && drag != null) + else if (Drag is { } __value2 && drag != null) { - return drag(Drag!); + return drag(__value2); } - else if (IsKeypress && keypress != null) + else if (Keypress is { } __value3 && keypress != null) { - return keypress(Keypress!); + return keypress(__value3); } - else if (IsMove && move != null) + else if (Move is { } __value4 && move != null) { - return move(Move!); + return move(__value4); } - else if (IsScreenshot && screenshot != null) + else if (Screenshot is { } __value5 && screenshot != null) { - return screenshot(Screenshot!); + return screenshot(__value5); } - else if (IsScroll && scroll != null) + else if (Scroll is { } __value6 && scroll != null) { - return scroll(Scroll!); + return scroll(__value6); } - else if (IsTypeValue && typeValue != null) + else if (TypeValue is { } __value7 && typeValue != null) { - return typeValue(TypeValue!); + return typeValue(__value7); } - else if (IsWait && wait != null) + else if (Wait is { } __value8 && wait != null) { - return wait(Wait!); + return wait(__value8); } return default(TResult); @@ -708,41 +708,41 @@ public void Match( Validate(); } - if (IsClick) + if (Click is { } __value0) { - click?.Invoke(Click!); + click?.Invoke(__value0); } - else if (IsDoubleClick) + else if (DoubleClick is { } __value1) { - doubleClick?.Invoke(DoubleClick!); + doubleClick?.Invoke(__value1); } - else if (IsDrag) + else if (Drag is { } __value2) { - drag?.Invoke(Drag!); + drag?.Invoke(__value2); } - else if (IsKeypress) + else if (Keypress is { } __value3) { - keypress?.Invoke(Keypress!); + keypress?.Invoke(__value3); } - else if (IsMove) + else if (Move is { } __value4) { - move?.Invoke(Move!); + move?.Invoke(__value4); } - else if (IsScreenshot) + else if (Screenshot is { } __value5) { - screenshot?.Invoke(Screenshot!); + screenshot?.Invoke(__value5); } - else if (IsScroll) + else if (Scroll is { } __value6) { - scroll?.Invoke(Scroll!); + scroll?.Invoke(__value6); } - else if (IsTypeValue) + else if (TypeValue is { } __value7) { - typeValue?.Invoke(TypeValue!); + typeValue?.Invoke(__value7); } - else if (IsWait) + else if (Wait is { } __value8) { - wait?.Invoke(Wait!); + wait?.Invoke(__value8); } } @@ -766,41 +766,41 @@ public void Switch( Validate(); } - if (IsClick) + if (Click is { } __value0) { - click?.Invoke(Click!); + click?.Invoke(__value0); } - else if (IsDoubleClick) + else if (DoubleClick is { } __value1) { - doubleClick?.Invoke(DoubleClick!); + doubleClick?.Invoke(__value1); } - else if (IsDrag) + else if (Drag is { } __value2) { - drag?.Invoke(Drag!); + drag?.Invoke(__value2); } - else if (IsKeypress) + else if (Keypress is { } __value3) { - keypress?.Invoke(Keypress!); + keypress?.Invoke(__value3); } - else if (IsMove) + else if (Move is { } __value4) { - move?.Invoke(Move!); + move?.Invoke(__value4); } - else if (IsScreenshot) + else if (Screenshot is { } __value5) { - screenshot?.Invoke(Screenshot!); + screenshot?.Invoke(__value5); } - else if (IsScroll) + else if (Scroll is { } __value6) { - scroll?.Invoke(Scroll!); + scroll?.Invoke(__value6); } - else if (IsTypeValue) + else if (TypeValue is { } __value7) { - typeValue?.Invoke(TypeValue!); + typeValue?.Invoke(__value7); } - else if (IsWait) + else if (Wait is { } __value8) { - wait?.Invoke(Wait!); + wait?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs index c94a97965..d220e470f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickComputerToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutput PickComputerToolCallOutput() => IsComputerToolCallOutput - ? ComputerToolCallOutput! + public global::tryAGI.OpenAI.ComputerToolCallOutput PickComputerToolCallOutput() => ComputerToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickComputerToolCallOutputResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2 PickComputerToolCallOutputResourceVariant2() => IsComputerToolCallOutputResourceVariant2 - ? ComputerToolCallOutputResourceVariant2! + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2 PickComputerToolCallOutputResourceVariant2() => ComputerToolCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsComputerToolCallOutput && computerToolCallOutput != null) + if (ComputerToolCallOutput is { } __value0 && computerToolCallOutput != null) { - return computerToolCallOutput(ComputerToolCallOutput!); + return computerToolCallOutput(__value0); } - else if (IsComputerToolCallOutputResourceVariant2 && computerToolCallOutputResourceVariant2 != null) + else if (ComputerToolCallOutputResourceVariant2 is { } __value1 && computerToolCallOutputResourceVariant2 != null) { - return computerToolCallOutputResourceVariant2(ComputerToolCallOutputResourceVariant2!); + return computerToolCallOutputResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsComputerToolCallOutput) + if (ComputerToolCallOutput is { } __value0) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value0); } - else if (IsComputerToolCallOutputResourceVariant2) + else if (ComputerToolCallOutputResourceVariant2 is { } __value1) { - computerToolCallOutputResourceVariant2?.Invoke(ComputerToolCallOutputResourceVariant2!); + computerToolCallOutputResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsComputerToolCallOutput) + if (ComputerToolCallOutput is { } __value0) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value0); } - else if (IsComputerToolCallOutputResourceVariant2) + else if (ComputerToolCallOutputResourceVariant2 is { } __value1) { - computerToolCallOutputResourceVariant2?.Invoke(ComputerToolCallOutputResourceVariant2!); + computerToolCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs index e55e21b4c..8e6167255 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Content5.g.cs @@ -42,8 +42,8 @@ public bool TryPickInputContentTypes( /// /// /// - public global::tryAGI.OpenAI.InputContent PickInputContentTypes() => IsInputContentTypes - ? InputContentTypes!.Value + public global::tryAGI.OpenAI.InputContent PickInputContentTypes() => InputContentTypes is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputContentTypes' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickOutputContentTypes( /// /// /// - public global::tryAGI.OpenAI.OutputContent PickOutputContentTypes() => IsOutputContentTypes - ? OutputContentTypes!.Value + public global::tryAGI.OpenAI.OutputContent PickOutputContentTypes() => OutputContentTypes is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputContentTypes' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsInputContentTypes && inputContentTypes != null) + if (InputContentTypes is { } __value0 && inputContentTypes != null) { - return inputContentTypes(InputContentTypes!); + return inputContentTypes(__value0); } - else if (IsOutputContentTypes && outputContentTypes != null) + else if (OutputContentTypes is { } __value1 && outputContentTypes != null) { - return outputContentTypes(OutputContentTypes!); + return outputContentTypes(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsInputContentTypes) + if (InputContentTypes is { } __value0) { - inputContentTypes?.Invoke(InputContentTypes!); + inputContentTypes?.Invoke(__value0); } - else if (IsOutputContentTypes) + else if (OutputContentTypes is { } __value1) { - outputContentTypes?.Invoke(OutputContentTypes!); + outputContentTypes?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsInputContentTypes) + if (InputContentTypes is { } __value0) { - inputContentTypes?.Invoke(InputContentTypes!); + inputContentTypes?.Invoke(__value0); } - else if (IsOutputContentTypes) + else if (OutputContentTypes is { } __value1) { - outputContentTypes?.Invoke(OutputContentTypes!); + outputContentTypes?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs index 5f67d7bb8..815c0e700 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.OutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.OutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.TextContent PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.TextContent PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickSummaryText( /// /// /// - public global::tryAGI.OpenAI.SummaryTextContent PickSummaryText() => IsSummaryText - ? SummaryText! + public global::tryAGI.OpenAI.SummaryTextContent PickSummaryText() => SummaryText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SummaryText' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickReasoningText( /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContent PickReasoningText() => IsReasoningText - ? ReasoningText! + public global::tryAGI.OpenAI.ReasoningTextContent PickReasoningText() => ReasoningText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningText' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.RefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.RefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickComputerScreenshot( /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent PickComputerScreenshot() => IsComputerScreenshot - ? ComputerScreenshot! + public global::tryAGI.OpenAI.ComputerScreenshotContent PickComputerScreenshot() => ComputerScreenshot is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerScreenshot' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.InputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.InputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -640,41 +640,41 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsOutputText && outputText != null) + else if (OutputText is { } __value1 && outputText != null) { - return outputText(OutputText!); + return outputText(__value1); } - else if (IsText && text != null) + else if (Text is { } __value2 && text != null) { - return text(Text!); + return text(__value2); } - else if (IsSummaryText && summaryText != null) + else if (SummaryText is { } __value3 && summaryText != null) { - return summaryText(SummaryText!); + return summaryText(__value3); } - else if (IsReasoningText && reasoningText != null) + else if (ReasoningText is { } __value4 && reasoningText != null) { - return reasoningText(ReasoningText!); + return reasoningText(__value4); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value5 && refusal != null) { - return refusal(Refusal!); + return refusal(__value5); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value6 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value6); } - else if (IsComputerScreenshot && computerScreenshot != null) + else if (ComputerScreenshot is { } __value7 && computerScreenshot != null) { - return computerScreenshot(ComputerScreenshot!); + return computerScreenshot(__value7); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value8 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value8); } return default(TResult); @@ -708,41 +708,41 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsSummaryText) + else if (SummaryText is { } __value3) { - summaryText?.Invoke(SummaryText!); + summaryText?.Invoke(__value3); } - else if (IsReasoningText) + else if (ReasoningText is { } __value4) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value4); } - else if (IsRefusal) + else if (Refusal is { } __value5) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value5); } - else if (IsInputImage) + else if (InputImage is { } __value6) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value6); } - else if (IsComputerScreenshot) + else if (ComputerScreenshot is { } __value7) { - computerScreenshot?.Invoke(ComputerScreenshot!); + computerScreenshot?.Invoke(__value7); } - else if (IsInputFile) + else if (InputFile is { } __value8) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value8); } } @@ -766,41 +766,41 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsSummaryText) + else if (SummaryText is { } __value3) { - summaryText?.Invoke(SummaryText!); + summaryText?.Invoke(__value3); } - else if (IsReasoningText) + else if (ReasoningText is { } __value4) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value4); } - else if (IsRefusal) + else if (Refusal is { } __value5) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value5); } - else if (IsInputImage) + else if (InputImage is { } __value6) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value6); } - else if (IsComputerScreenshot) + else if (ComputerScreenshot is { } __value7) { - computerScreenshot?.Invoke(ComputerScreenshot!); + computerScreenshot?.Invoke(__value7); } - else if (IsInputFile) + else if (InputFile is { } __value8) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs index c58761b56..dcd9210fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.LiveInitialTextContentPartParam PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.LiveInitialTextContentPartParam PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.LiveInitialOutputTextContentPartParam PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsOutputText && outputText != null) + else if (OutputText is { } __value1 && outputText != null) { - return outputText(OutputText!); + return outputText(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem5.g.cs index 54aa1a546..b289f6309 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem5.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.UserMessageInputText PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickQuotedText( /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText PickQuotedText() => IsQuotedText - ? QuotedText! + public global::tryAGI.OpenAI.UserMessageQuotedText PickQuotedText() => QuotedText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'QuotedText' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsQuotedText && quotedText != null) + else if (QuotedText is { } __value1 && quotedText != null) { - return quotedText(QuotedText!); + return quotedText(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsQuotedText) + else if (QuotedText is { } __value1) { - quotedText?.Invoke(QuotedText!); + quotedText?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsQuotedText) + else if (QuotedText is { } __value1) { - quotedText?.Invoke(QuotedText!); + quotedText?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem6.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem6.g.cs index f72fcf960..dee6d0691 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem6.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem6.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContentParam PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickEncryptedContent( /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContentParam PickEncryptedContent() => IsEncryptedContent - ? EncryptedContent! + public global::tryAGI.OpenAI.BetaEncryptedContentParam PickEncryptedContent() => EncryptedContent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EncryptedContent' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsEncryptedContent && encryptedContent != null) + else if (EncryptedContent is { } __value2 && encryptedContent != null) { - return encryptedContent(EncryptedContent!); + return encryptedContent(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value2) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value2) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem7.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem7.g.cs index 6ac1ef494..8a14adcf1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem7.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem7.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.BetaTextContent PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.BetaTextContent PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickSummaryText( /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContent PickSummaryText() => IsSummaryText - ? SummaryText! + public global::tryAGI.OpenAI.BetaSummaryTextContent PickSummaryText() => SummaryText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SummaryText' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickReasoningText( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent PickReasoningText() => IsReasoningText - ? ReasoningText! + public global::tryAGI.OpenAI.BetaReasoningTextContent PickReasoningText() => ReasoningText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningText' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickComputerScreenshot( /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContent PickComputerScreenshot() => IsComputerScreenshot - ? ComputerScreenshot! + public global::tryAGI.OpenAI.BetaComputerScreenshotContent PickComputerScreenshot() => ComputerScreenshot is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerScreenshot' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickEncryptedContent( /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContent PickEncryptedContent() => IsEncryptedContent - ? EncryptedContent! + public global::tryAGI.OpenAI.BetaEncryptedContent PickEncryptedContent() => EncryptedContent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EncryptedContent' but the value was {ToString()}."); /// /// @@ -705,45 +705,45 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsOutputText && outputText != null) + else if (OutputText is { } __value1 && outputText != null) { - return outputText(OutputText!); + return outputText(__value1); } - else if (IsText && text != null) + else if (Text is { } __value2 && text != null) { - return text(Text!); + return text(__value2); } - else if (IsSummaryText && summaryText != null) + else if (SummaryText is { } __value3 && summaryText != null) { - return summaryText(SummaryText!); + return summaryText(__value3); } - else if (IsReasoningText && reasoningText != null) + else if (ReasoningText is { } __value4 && reasoningText != null) { - return reasoningText(ReasoningText!); + return reasoningText(__value4); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value5 && refusal != null) { - return refusal(Refusal!); + return refusal(__value5); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value6 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value6); } - else if (IsComputerScreenshot && computerScreenshot != null) + else if (ComputerScreenshot is { } __value7 && computerScreenshot != null) { - return computerScreenshot(ComputerScreenshot!); + return computerScreenshot(__value7); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value8 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value8); } - else if (IsEncryptedContent && encryptedContent != null) + else if (EncryptedContent is { } __value9 && encryptedContent != null) { - return encryptedContent(EncryptedContent!); + return encryptedContent(__value9); } return default(TResult); @@ -779,45 +779,45 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsSummaryText) + else if (SummaryText is { } __value3) { - summaryText?.Invoke(SummaryText!); + summaryText?.Invoke(__value3); } - else if (IsReasoningText) + else if (ReasoningText is { } __value4) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value4); } - else if (IsRefusal) + else if (Refusal is { } __value5) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value5); } - else if (IsInputImage) + else if (InputImage is { } __value6) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value6); } - else if (IsComputerScreenshot) + else if (ComputerScreenshot is { } __value7) { - computerScreenshot?.Invoke(ComputerScreenshot!); + computerScreenshot?.Invoke(__value7); } - else if (IsInputFile) + else if (InputFile is { } __value8) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value8); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value9) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value9); } } @@ -842,45 +842,45 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsSummaryText) + else if (SummaryText is { } __value3) { - summaryText?.Invoke(SummaryText!); + summaryText?.Invoke(__value3); } - else if (IsReasoningText) + else if (ReasoningText is { } __value4) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value4); } - else if (IsRefusal) + else if (Refusal is { } __value5) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value5); } - else if (IsInputImage) + else if (InputImage is { } __value6) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value6); } - else if (IsComputerScreenshot) + else if (ComputerScreenshot is { } __value7) { - computerScreenshot?.Invoke(ComputerScreenshot!); + computerScreenshot?.Invoke(__value7); } - else if (IsInputFile) + else if (InputFile is { } __value8) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value8); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value9) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value9); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem8.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem8.g.cs index b9e1251ba..1c4e86bc1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem8.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem8.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.BetaOutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.BetaTextContent PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.BetaTextContent PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickSummaryText( /// /// /// - public global::tryAGI.OpenAI.BetaSummaryTextContent PickSummaryText() => IsSummaryText - ? SummaryText! + public global::tryAGI.OpenAI.BetaSummaryTextContent PickSummaryText() => SummaryText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SummaryText' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickReasoningText( /// /// /// - public global::tryAGI.OpenAI.BetaReasoningTextContent PickReasoningText() => IsReasoningText - ? ReasoningText! + public global::tryAGI.OpenAI.BetaReasoningTextContent PickReasoningText() => ReasoningText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningText' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.BetaRefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickComputerScreenshot( /// /// /// - public global::tryAGI.OpenAI.BetaComputerScreenshotContent PickComputerScreenshot() => IsComputerScreenshot - ? ComputerScreenshot! + public global::tryAGI.OpenAI.BetaComputerScreenshotContent PickComputerScreenshot() => ComputerScreenshot is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerScreenshot' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.BetaInputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickEncryptedContent( /// /// /// - public global::tryAGI.OpenAI.BetaEncryptedContent PickEncryptedContent() => IsEncryptedContent - ? EncryptedContent! + public global::tryAGI.OpenAI.BetaEncryptedContent PickEncryptedContent() => EncryptedContent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EncryptedContent' but the value was {ToString()}."); /// /// @@ -705,45 +705,45 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsOutputText && outputText != null) + else if (OutputText is { } __value1 && outputText != null) { - return outputText(OutputText!); + return outputText(__value1); } - else if (IsText && text != null) + else if (Text is { } __value2 && text != null) { - return text(Text!); + return text(__value2); } - else if (IsSummaryText && summaryText != null) + else if (SummaryText is { } __value3 && summaryText != null) { - return summaryText(SummaryText!); + return summaryText(__value3); } - else if (IsReasoningText && reasoningText != null) + else if (ReasoningText is { } __value4 && reasoningText != null) { - return reasoningText(ReasoningText!); + return reasoningText(__value4); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value5 && refusal != null) { - return refusal(Refusal!); + return refusal(__value5); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value6 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value6); } - else if (IsComputerScreenshot && computerScreenshot != null) + else if (ComputerScreenshot is { } __value7 && computerScreenshot != null) { - return computerScreenshot(ComputerScreenshot!); + return computerScreenshot(__value7); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value8 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value8); } - else if (IsEncryptedContent && encryptedContent != null) + else if (EncryptedContent is { } __value9 && encryptedContent != null) { - return encryptedContent(EncryptedContent!); + return encryptedContent(__value9); } return default(TResult); @@ -779,45 +779,45 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsSummaryText) + else if (SummaryText is { } __value3) { - summaryText?.Invoke(SummaryText!); + summaryText?.Invoke(__value3); } - else if (IsReasoningText) + else if (ReasoningText is { } __value4) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value4); } - else if (IsRefusal) + else if (Refusal is { } __value5) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value5); } - else if (IsInputImage) + else if (InputImage is { } __value6) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value6); } - else if (IsComputerScreenshot) + else if (ComputerScreenshot is { } __value7) { - computerScreenshot?.Invoke(ComputerScreenshot!); + computerScreenshot?.Invoke(__value7); } - else if (IsInputFile) + else if (InputFile is { } __value8) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value8); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value9) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value9); } } @@ -842,45 +842,45 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsOutputText) + else if (OutputText is { } __value1) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value1); } - else if (IsText) + else if (Text is { } __value2) { - text?.Invoke(Text!); + text?.Invoke(__value2); } - else if (IsSummaryText) + else if (SummaryText is { } __value3) { - summaryText?.Invoke(SummaryText!); + summaryText?.Invoke(__value3); } - else if (IsReasoningText) + else if (ReasoningText is { } __value4) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value4); } - else if (IsRefusal) + else if (Refusal is { } __value5) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value5); } - else if (IsInputImage) + else if (InputImage is { } __value6) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value6); } - else if (IsComputerScreenshot) + else if (ComputerScreenshot is { } __value7) { - computerScreenshot?.Invoke(ComputerScreenshot!); + computerScreenshot?.Invoke(__value7); } - else if (IsInputFile) + else if (InputFile is { } __value8) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value8); } - else if (IsEncryptedContent) + else if (EncryptedContent is { } __value9) { - encryptedContent?.Invoke(EncryptedContent!); + encryptedContent?.Invoke(__value9); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item.g.cs index 6ad937472..512e0874a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputTextContentParam PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputImageContentParamAutoParam PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.InputFileContentParam PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item2.g.cs index 487ad7515..1807175aa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentVariant1Item2.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContentParam PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParam PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.BetaInputFileContentParam PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs index 66ea92b9e..e482b69ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItem.g.cs @@ -42,8 +42,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.Message PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.Message PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFunctionToolCallResource( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResource PickFunctionToolCallResource() => IsFunctionToolCallResource - ? FunctionToolCallResource!.Value + public global::tryAGI.OpenAI.FunctionToolCallResource PickFunctionToolCallResource() => FunctionToolCallResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallResource' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickFunctionToolCallOutputResource( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource PickFunctionToolCallOutputResource() => IsFunctionToolCallOutputResource - ? FunctionToolCallOutputResource!.Value + public global::tryAGI.OpenAI.FunctionToolCallOutputResource PickFunctionToolCallOutputResource() => FunctionToolCallOutputResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallOutputResource' but the value was {ToString()}."); /// @@ -154,8 +154,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -192,8 +192,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -229,8 +229,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -267,8 +267,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -304,8 +304,8 @@ public bool TryPickComputerToolCallOutputResource( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallOutputResource() => IsComputerToolCallOutputResource - ? ComputerToolCallOutputResource!.Value + public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallOutputResource() => ComputerToolCallOutputResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutputResource' but the value was {ToString()}."); /// @@ -341,8 +341,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -378,8 +378,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -415,8 +415,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -453,8 +453,8 @@ public bool TryPickConfigurationUpdate( /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdate PickConfigurationUpdate() => IsConfigurationUpdate - ? ConfigurationUpdate! + public global::tryAGI.OpenAI.ResponseConfigurationUpdate PickConfigurationUpdate() => ConfigurationUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConfigurationUpdate' but the value was {ToString()}."); /// @@ -493,8 +493,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -530,8 +530,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.Program PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.Program PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -567,8 +567,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -604,8 +604,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.CompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.CompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -1085,8 +1085,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// /// @@ -1939,121 +1939,121 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsFunctionToolCallResource && functionToolCallResource != null) + else if (FunctionToolCallResource is { } __value1 && functionToolCallResource != null) { - return functionToolCallResource(FunctionToolCallResource!); + return functionToolCallResource(__value1); } - else if (IsFunctionToolCallOutputResource && functionToolCallOutputResource != null) + else if (FunctionToolCallOutputResource is { } __value2 && functionToolCallOutputResource != null) { - return functionToolCallOutputResource(FunctionToolCallOutputResource!); + return functionToolCallOutputResource(__value2); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value3 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value3); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value4 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value4); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value5 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value5); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value6 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value6); } - else if (IsComputerToolCallOutputResource && computerToolCallOutputResource != null) + else if (ComputerToolCallOutputResource is { } __value7 && computerToolCallOutputResource != null) { - return computerToolCallOutputResource(ComputerToolCallOutputResource!); + return computerToolCallOutputResource(__value7); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value8 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value8); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value9 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value9); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value10 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value10); } - else if (IsConfigurationUpdate && configurationUpdate != null) + else if (ConfigurationUpdate is { } __value11 && configurationUpdate != null) { - return configurationUpdate(ConfigurationUpdate!); + return configurationUpdate(__value11); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value12 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value12); } - else if (IsProgram && program != null) + else if (Program is { } __value13 && program != null) { - return program(Program!); + return program(__value13); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value14 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value14); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value15 && compaction != null) { - return compaction(Compaction!); + return compaction(__value15); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value16 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value16); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value17 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value17); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value18 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value18); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value19 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value19); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value20 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value20); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value21 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value21); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value22 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value22); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value23 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value23); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value24 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value24); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value25 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value25); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value26 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value26); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value27 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value27); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value28 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value28); } return default(TResult); @@ -2127,121 +2127,121 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFunctionToolCallResource) + else if (FunctionToolCallResource is { } __value1) { - functionToolCallResource?.Invoke(FunctionToolCallResource!); + functionToolCallResource?.Invoke(__value1); } - else if (IsFunctionToolCallOutputResource) + else if (FunctionToolCallOutputResource is { } __value2) { - functionToolCallOutputResource?.Invoke(FunctionToolCallOutputResource!); + functionToolCallOutputResource?.Invoke(__value2); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value3) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value3); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value4) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value4); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value5) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value5); } - else if (IsComputerCall) + else if (ComputerCall is { } __value6) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value6); } - else if (IsComputerToolCallOutputResource) + else if (ComputerToolCallOutputResource is { } __value7) { - computerToolCallOutputResource?.Invoke(ComputerToolCallOutputResource!); + computerToolCallOutputResource?.Invoke(__value7); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value8) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value8); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value9) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value9); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value10) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value10); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value11) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value11); } - else if (IsReasoning) + else if (Reasoning is { } __value12) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value12); } - else if (IsProgram) + else if (Program is { } __value13) { - program?.Invoke(Program!); + program?.Invoke(__value13); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value14) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value14); } - else if (IsCompaction) + else if (Compaction is { } __value15) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value15); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value16) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value16); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value17) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value17); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value18) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value18); } - else if (IsShellCall) + else if (ShellCall is { } __value19) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value19); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value20) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value20); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value21) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value21); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value22) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value22); } - else if (IsMcpListTools) + else if (McpListTools is { } __value23) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value23); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value24) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value24); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value25) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value25); } - else if (IsMcpCall) + else if (McpCall is { } __value26) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value26); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value27) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value27); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value28) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value28); } } @@ -2285,121 +2285,121 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFunctionToolCallResource) + else if (FunctionToolCallResource is { } __value1) { - functionToolCallResource?.Invoke(FunctionToolCallResource!); + functionToolCallResource?.Invoke(__value1); } - else if (IsFunctionToolCallOutputResource) + else if (FunctionToolCallOutputResource is { } __value2) { - functionToolCallOutputResource?.Invoke(FunctionToolCallOutputResource!); + functionToolCallOutputResource?.Invoke(__value2); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value3) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value3); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value4) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value4); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value5) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value5); } - else if (IsComputerCall) + else if (ComputerCall is { } __value6) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value6); } - else if (IsComputerToolCallOutputResource) + else if (ComputerToolCallOutputResource is { } __value7) { - computerToolCallOutputResource?.Invoke(ComputerToolCallOutputResource!); + computerToolCallOutputResource?.Invoke(__value7); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value8) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value8); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value9) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value9); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value10) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value10); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value11) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value11); } - else if (IsReasoning) + else if (Reasoning is { } __value12) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value12); } - else if (IsProgram) + else if (Program is { } __value13) { - program?.Invoke(Program!); + program?.Invoke(__value13); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value14) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value14); } - else if (IsCompaction) + else if (Compaction is { } __value15) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value15); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value16) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value16); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value17) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value17); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value18) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value18); } - else if (IsShellCall) + else if (ShellCall is { } __value19) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value19); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value20) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value20); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value21) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value21); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value22) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value22); } - else if (IsMcpListTools) + else if (McpListTools is { } __value23) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value23); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value24) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value24); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value25) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value25); } - else if (IsMcpCall) + else if (McpCall is { } __value26) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value26); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value27) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value27); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value28) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value28); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs index 437c61d11..ac82453f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationParam.g.cs @@ -44,8 +44,8 @@ public bool TryPickConversationId( /// /// /// - public string PickConversationId() => IsConversationId - ? ConversationId! + public string PickConversationId() => ConversationId is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationId' but the value was {ToString()}."); /// @@ -81,8 +81,8 @@ public bool TryPickConversationObject( /// /// /// - public global::tryAGI.OpenAI.ConversationParam2 PickConversationObject() => IsConversationObject - ? ConversationObject! + public global::tryAGI.OpenAI.ConversationParam2 PickConversationObject() => ConversationObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationObject' but the value was {ToString()}."); /// /// @@ -179,13 +179,13 @@ public bool Validate() Validate(); } - if (IsConversationId && conversationId != null) + if (ConversationId is { } __value0 && conversationId != null) { - return conversationId(ConversationId!); + return conversationId(__value0); } - else if (IsConversationObject && conversationObject != null) + else if (ConversationObject is { } __value1 && conversationObject != null) { - return conversationObject(ConversationObject!); + return conversationObject(__value1); } return default(TResult); @@ -205,13 +205,13 @@ public void Match( Validate(); } - if (IsConversationId) + if (ConversationId is { } __value0) { - conversationId?.Invoke(ConversationId!); + conversationId?.Invoke(__value0); } - else if (IsConversationObject) + else if (ConversationObject is { } __value1) { - conversationObject?.Invoke(ConversationObject!); + conversationObject?.Invoke(__value1); } } @@ -228,13 +228,13 @@ public void Switch( Validate(); } - if (IsConversationId) + if (ConversationId is { } __value0) { - conversationId?.Invoke(ConversationId!); + conversationId?.Invoke(__value0); } - else if (IsConversationObject) + else if (ConversationObject is { } __value1) { - conversationObject?.Invoke(ConversationObject!); + conversationObject?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs index 140ee9d70..15b95ac7b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs @@ -42,8 +42,8 @@ public bool TryPickModelResponseProperties( /// /// /// - public global::tryAGI.OpenAI.CreateModelResponseProperties PickModelResponseProperties() => IsModelResponseProperties - ? ModelResponseProperties!.Value + public global::tryAGI.OpenAI.CreateModelResponseProperties PickModelResponseProperties() => ModelResponseProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelResponseProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCreateChatCompletionRequestVariant2( /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2 PickCreateChatCompletionRequestVariant2() => IsCreateChatCompletionRequestVariant2 - ? CreateChatCompletionRequestVariant2! + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2 PickCreateChatCompletionRequestVariant2() => CreateChatCompletionRequestVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateChatCompletionRequestVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsModelResponseProperties && modelResponseProperties != null) + if (ModelResponseProperties is { } __value0 && modelResponseProperties != null) { - return modelResponseProperties(ModelResponseProperties!); + return modelResponseProperties(__value0); } - else if (IsCreateChatCompletionRequestVariant2 && createChatCompletionRequestVariant2 != null) + else if (CreateChatCompletionRequestVariant2 is { } __value1 && createChatCompletionRequestVariant2 != null) { - return createChatCompletionRequestVariant2(CreateChatCompletionRequestVariant2!); + return createChatCompletionRequestVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsModelResponseProperties) + if (ModelResponseProperties is { } __value0) { - modelResponseProperties?.Invoke(ModelResponseProperties!); + modelResponseProperties?.Invoke(__value0); } - else if (IsCreateChatCompletionRequestVariant2) + else if (CreateChatCompletionRequestVariant2 is { } __value1) { - createChatCompletionRequestVariant2?.Invoke(CreateChatCompletionRequestVariant2!); + createChatCompletionRequestVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsModelResponseProperties) + if (ModelResponseProperties is { } __value0) { - modelResponseProperties?.Invoke(ModelResponseProperties!); + modelResponseProperties?.Invoke(__value0); } - else if (IsCreateChatCompletionRequestVariant2) + else if (CreateChatCompletionRequestVariant2 is { } __value1) { - createChatCompletionRequestVariant2?.Invoke(CreateChatCompletionRequestVariant2!); + createChatCompletionRequestVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponseChoiceFinishReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponseChoiceFinishReason.g.cs index c05672645..8b833ec33 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponseChoiceFinishReason.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionStreamResponseChoiceFinishReason.g.cs @@ -26,6 +26,10 @@ public enum CreateChatCompletionStreamResponseChoiceFinishReason /// /// /// + OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464, + /// + /// + /// Stop, /// /// @@ -48,6 +52,7 @@ public static string ToValueString(this CreateChatCompletionStreamResponseChoice CreateChatCompletionStreamResponseChoiceFinishReason.ContentFilter => "content_filter", CreateChatCompletionStreamResponseChoiceFinishReason.FunctionCall => "function_call", CreateChatCompletionStreamResponseChoiceFinishReason.Length => "length", + CreateChatCompletionStreamResponseChoiceFinishReason.OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464 => "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464", CreateChatCompletionStreamResponseChoiceFinishReason.Stop => "stop", CreateChatCompletionStreamResponseChoiceFinishReason.ToolCalls => "tool_calls", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -63,6 +68,7 @@ public static string ToValueString(this CreateChatCompletionStreamResponseChoice "content_filter" => CreateChatCompletionStreamResponseChoiceFinishReason.ContentFilter, "function_call" => CreateChatCompletionStreamResponseChoiceFinishReason.FunctionCall, "length" => CreateChatCompletionStreamResponseChoiceFinishReason.Length, + "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464" => CreateChatCompletionStreamResponseChoiceFinishReason.OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464, "stop" => CreateChatCompletionStreamResponseChoiceFinishReason.Stop, "tool_calls" => CreateChatCompletionStreamResponseChoiceFinishReason.ToolCalls, _ => null, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs index a60bbaad8..32c88b623 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateEvalItem.g.cs @@ -42,8 +42,8 @@ public bool TryPickSimpleInputMessage( /// /// /// - public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage PickSimpleInputMessage() => IsSimpleInputMessage - ? SimpleInputMessage! + public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage PickSimpleInputMessage() => SimpleInputMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SimpleInputMessage' but the value was {ToString()}."); /// @@ -83,8 +83,8 @@ public bool TryPickEvalMessageObject( /// /// /// - public global::tryAGI.OpenAI.EvalItem PickEvalMessageObject() => IsEvalMessageObject - ? EvalMessageObject! + public global::tryAGI.OpenAI.EvalItem PickEvalMessageObject() => EvalMessageObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EvalMessageObject' but the value was {ToString()}."); /// /// @@ -181,13 +181,13 @@ public bool Validate() Validate(); } - if (IsSimpleInputMessage && simpleInputMessage != null) + if (SimpleInputMessage is { } __value0 && simpleInputMessage != null) { - return simpleInputMessage(SimpleInputMessage!); + return simpleInputMessage(__value0); } - else if (IsEvalMessageObject && evalMessageObject != null) + else if (EvalMessageObject is { } __value1 && evalMessageObject != null) { - return evalMessageObject(EvalMessageObject!); + return evalMessageObject(__value1); } return default(TResult); @@ -207,13 +207,13 @@ public void Match( Validate(); } - if (IsSimpleInputMessage) + if (SimpleInputMessage is { } __value0) { - simpleInputMessage?.Invoke(SimpleInputMessage!); + simpleInputMessage?.Invoke(__value0); } - else if (IsEvalMessageObject) + else if (EvalMessageObject is { } __value1) { - evalMessageObject?.Invoke(EvalMessageObject!); + evalMessageObject?.Invoke(__value1); } } @@ -230,13 +230,13 @@ public void Switch( Validate(); } - if (IsSimpleInputMessage) + if (SimpleInputMessage is { } __value0) { - simpleInputMessage?.Invoke(SimpleInputMessage!); + simpleInputMessage?.Invoke(__value0); } - else if (IsEvalMessageObject) + else if (EvalMessageObject is { } __value1) { - evalMessageObject?.Invoke(EvalMessageObject!); + evalMessageObject?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMcpOauthTokenEndpointAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMcpOauthTokenEndpointAuthParam.g.cs index 5aaec7e93..7834c79ad 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMcpOauthTokenEndpointAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateMcpOauthTokenEndpointAuthParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickNone( /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone PickNone() => IsNone - ? None! + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamNone PickNone() => None is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'None' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickClientSecretBasic( /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic PickClientSecretBasic() => IsClientSecretBasic - ? ClientSecretBasic! + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretBasic PickClientSecretBasic() => ClientSecretBasic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ClientSecretBasic' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickClientSecretPost( /// /// /// - public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost PickClientSecretPost() => IsClientSecretPost - ? ClientSecretPost! + public global::tryAGI.OpenAI.CreateMcpOauthTokenEndpointAuthParamClientSecretPost PickClientSecretPost() => ClientSecretPost is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ClientSecretPost' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsNone && none != null) + if (None is { } __value0 && none != null) { - return none(None!); + return none(__value0); } - else if (IsClientSecretBasic && clientSecretBasic != null) + else if (ClientSecretBasic is { } __value1 && clientSecretBasic != null) { - return clientSecretBasic(ClientSecretBasic!); + return clientSecretBasic(__value1); } - else if (IsClientSecretPost && clientSecretPost != null) + else if (ClientSecretPost is { } __value2 && clientSecretPost != null) { - return clientSecretPost(ClientSecretPost!); + return clientSecretPost(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsClientSecretBasic) + else if (ClientSecretBasic is { } __value1) { - clientSecretBasic?.Invoke(ClientSecretBasic!); + clientSecretBasic?.Invoke(__value1); } - else if (IsClientSecretPost) + else if (ClientSecretPost is { } __value2) { - clientSecretPost?.Invoke(ClientSecretPost!); + clientSecretPost?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsClientSecretBasic) + else if (ClientSecretBasic is { } __value1) { - clientSecretBasic?.Invoke(ClientSecretBasic!); + clientSecretBasic?.Invoke(__value1); } - else if (IsClientSecretPost) + else if (ClientSecretPost is { } __value2) { - clientSecretPost?.Invoke(ClientSecretPost!); + clientSecretPost?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs index c68176b5a..fb9ff658b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs @@ -42,8 +42,8 @@ public bool TryPickModelResponseProperties( /// /// /// - public global::tryAGI.OpenAI.ModelResponseProperties PickModelResponseProperties() => IsModelResponseProperties - ? ModelResponseProperties! + public global::tryAGI.OpenAI.ModelResponseProperties PickModelResponseProperties() => ModelResponseProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelResponseProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCreateModelResponsePropertiesVariant2( /// /// /// - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2 PickCreateModelResponsePropertiesVariant2() => IsCreateModelResponsePropertiesVariant2 - ? CreateModelResponsePropertiesVariant2! + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2 PickCreateModelResponsePropertiesVariant2() => CreateModelResponsePropertiesVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateModelResponsePropertiesVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsModelResponseProperties && modelResponseProperties != null) + if (ModelResponseProperties is { } __value0 && modelResponseProperties != null) { - return modelResponseProperties(ModelResponseProperties!); + return modelResponseProperties(__value0); } - else if (IsCreateModelResponsePropertiesVariant2 && createModelResponsePropertiesVariant2 != null) + else if (CreateModelResponsePropertiesVariant2 is { } __value1 && createModelResponsePropertiesVariant2 != null) { - return createModelResponsePropertiesVariant2(CreateModelResponsePropertiesVariant2!); + return createModelResponsePropertiesVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsModelResponseProperties) + if (ModelResponseProperties is { } __value0) { - modelResponseProperties?.Invoke(ModelResponseProperties!); + modelResponseProperties?.Invoke(__value0); } - else if (IsCreateModelResponsePropertiesVariant2) + else if (CreateModelResponsePropertiesVariant2 is { } __value1) { - createModelResponsePropertiesVariant2?.Invoke(CreateModelResponsePropertiesVariant2!); + createModelResponsePropertiesVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsModelResponseProperties) + if (ModelResponseProperties is { } __value0) { - modelResponseProperties?.Invoke(ModelResponseProperties!); + modelResponseProperties?.Invoke(__value0); } - else if (IsCreateModelResponsePropertiesVariant2) + else if (CreateModelResponsePropertiesVariant2 is { } __value1) { - createModelResponsePropertiesVariant2?.Invoke(CreateModelResponsePropertiesVariant2!); + createModelResponsePropertiesVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs index eb44a90e0..e3d2e7485 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs @@ -42,8 +42,8 @@ public bool TryPickModelProperties( /// /// /// - public global::tryAGI.OpenAI.CreateModelResponseProperties PickModelProperties() => IsModelProperties - ? ModelProperties!.Value + public global::tryAGI.OpenAI.CreateModelResponseProperties PickModelProperties() => ModelProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickProperties( /// /// /// - public global::tryAGI.OpenAI.ResponseProperties PickProperties() => IsProperties - ? Properties! + public global::tryAGI.OpenAI.ResponseProperties PickProperties() => Properties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Properties' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickCreateResponseVariant3( /// /// /// - public global::tryAGI.OpenAI.CreateResponseVariant3 PickCreateResponseVariant3() => IsCreateResponseVariant3 - ? CreateResponseVariant3! + public global::tryAGI.OpenAI.CreateResponseVariant3 PickCreateResponseVariant3() => CreateResponseVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateResponseVariant3' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsModelProperties && modelProperties != null) + if (ModelProperties is { } __value0 && modelProperties != null) { - return modelProperties(ModelProperties!); + return modelProperties(__value0); } - else if (IsProperties && properties != null) + else if (Properties is { } __value1 && properties != null) { - return properties(Properties!); + return properties(__value1); } - else if (IsCreateResponseVariant3 && createResponseVariant3 != null) + else if (CreateResponseVariant3 is { } __value2 && createResponseVariant3 != null) { - return createResponseVariant3(CreateResponseVariant3!); + return createResponseVariant3(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsCreateResponseVariant3) + else if (CreateResponseVariant3 is { } __value2) { - createResponseVariant3?.Invoke(CreateResponseVariant3!); + createResponseVariant3?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsCreateResponseVariant3) + else if (CreateResponseVariant3 is { } __value2) { - createResponseVariant3?.Invoke(CreateResponseVariant3!); + createResponseVariant3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSessionInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSessionInputParam.g.cs index 023fcecf0..a9090b5fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSessionInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSessionInputParam.g.cs @@ -42,8 +42,8 @@ public bool TryPickCreateSessionInputParamVariant1( /// /// /// - public string PickCreateSessionInputParamVariant1() => IsCreateSessionInputParamVariant1 - ? CreateSessionInputParamVariant1! + public string PickCreateSessionInputParamVariant1() => CreateSessionInputParamVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateSessionInputParamVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCreateSessionInputParamVariant2( /// /// /// - public global::System.Collections.Generic.IList PickCreateSessionInputParamVariant2() => IsCreateSessionInputParamVariant2 - ? CreateSessionInputParamVariant2! + public global::System.Collections.Generic.IList PickCreateSessionInputParamVariant2() => CreateSessionInputParamVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateSessionInputParamVariant2' but the value was {ToString()}."); /// /// @@ -154,13 +154,13 @@ public bool Validate() Validate(); } - if (IsCreateSessionInputParamVariant1 && createSessionInputParamVariant1 != null) + if (CreateSessionInputParamVariant1 is { } __value0 && createSessionInputParamVariant1 != null) { - return createSessionInputParamVariant1(CreateSessionInputParamVariant1!); + return createSessionInputParamVariant1(__value0); } - else if (IsCreateSessionInputParamVariant2 && createSessionInputParamVariant2 != null) + else if (CreateSessionInputParamVariant2 is { } __value1 && createSessionInputParamVariant2 != null) { - return createSessionInputParamVariant2(CreateSessionInputParamVariant2!); + return createSessionInputParamVariant2(__value1); } return default(TResult); @@ -180,13 +180,13 @@ public void Match( Validate(); } - if (IsCreateSessionInputParamVariant1) + if (CreateSessionInputParamVariant1 is { } __value0) { - createSessionInputParamVariant1?.Invoke(CreateSessionInputParamVariant1!); + createSessionInputParamVariant1?.Invoke(__value0); } - else if (IsCreateSessionInputParamVariant2) + else if (CreateSessionInputParamVariant2 is { } __value1) { - createSessionInputParamVariant2?.Invoke(CreateSessionInputParamVariant2!); + createSessionInputParamVariant2?.Invoke(__value1); } } @@ -203,13 +203,13 @@ public void Switch( Validate(); } - if (IsCreateSessionInputParamVariant1) + if (CreateSessionInputParamVariant1 is { } __value0) { - createSessionInputParamVariant1?.Invoke(CreateSessionInputParamVariant1!); + createSessionInputParamVariant1?.Invoke(__value0); } - else if (IsCreateSessionInputParamVariant2) + else if (CreateSessionInputParamVariant2 is { } __value1) { - createSessionInputParamVariant2?.Invoke(CreateSessionInputParamVariant2!); + createSessionInputParamVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs index 52f303564..3c624423a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickSpeechAudioDelta( /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent PickSpeechAudioDelta() => IsSpeechAudioDelta - ? SpeechAudioDelta! + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent PickSpeechAudioDelta() => SpeechAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpeechAudioDelta' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickSpeechAudioDone( /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent PickSpeechAudioDone() => IsSpeechAudioDone - ? SpeechAudioDone! + public global::tryAGI.OpenAI.SpeechAudioDoneEvent PickSpeechAudioDone() => SpeechAudioDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpeechAudioDone' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSpeechAudioDelta && speechAudioDelta != null) + if (SpeechAudioDelta is { } __value0 && speechAudioDelta != null) { - return speechAudioDelta(SpeechAudioDelta!); + return speechAudioDelta(__value0); } - else if (IsSpeechAudioDone && speechAudioDone != null) + else if (SpeechAudioDone is { } __value1 && speechAudioDone != null) { - return speechAudioDone(SpeechAudioDone!); + return speechAudioDone(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSpeechAudioDelta) + if (SpeechAudioDelta is { } __value0) { - speechAudioDelta?.Invoke(SpeechAudioDelta!); + speechAudioDelta?.Invoke(__value0); } - else if (IsSpeechAudioDone) + else if (SpeechAudioDone is { } __value1) { - speechAudioDone?.Invoke(SpeechAudioDone!); + speechAudioDone?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSpeechAudioDelta) + if (SpeechAudioDelta is { } __value0) { - speechAudioDelta?.Invoke(SpeechAudioDelta!); + speechAudioDelta?.Invoke(__value0); } - else if (IsSpeechAudioDone) + else if (SpeechAudioDone is { } __value1) { - speechAudioDone?.Invoke(SpeechAudioDone!); + speechAudioDone?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs index faf0d2afd..734a969d9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs @@ -47,8 +47,8 @@ public bool TryPickTokens( /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens PickTokens() => IsTokens - ? Tokens! + public global::tryAGI.OpenAI.TranscriptTextUsageTokens PickTokens() => Tokens is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tokens' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDuration( /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration PickDuration() => IsDuration - ? Duration! + public global::tryAGI.OpenAI.TranscriptTextUsageDuration PickDuration() => Duration is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Duration' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsTokens && tokens != null) + if (Tokens is { } __value0 && tokens != null) { - return tokens(Tokens!); + return tokens(__value0); } - else if (IsDuration && duration != null) + else if (Duration is { } __value1 && duration != null) { - return duration(Duration!); + return duration(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsTokens) + if (Tokens is { } __value0) { - tokens?.Invoke(Tokens!); + tokens?.Invoke(__value0); } - else if (IsDuration) + else if (Duration is { } __value1) { - duration?.Invoke(Duration!); + duration?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsTokens) + if (Tokens is { } __value0) { - tokens?.Invoke(Tokens!); + tokens?.Invoke(__value0); } - else if (IsDuration) + else if (Duration is { } __value1) { - duration?.Invoke(Duration!); + duration?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs index ddd7dac93..1508edf00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickTranscriptTextSegment( /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEvent PickTranscriptTextSegment() => IsTranscriptTextSegment - ? TranscriptTextSegment! + public global::tryAGI.OpenAI.TranscriptTextSegmentEvent PickTranscriptTextSegment() => TranscriptTextSegment is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TranscriptTextSegment' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTranscriptTextDelta( /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent PickTranscriptTextDelta() => IsTranscriptTextDelta - ? TranscriptTextDelta! + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent PickTranscriptTextDelta() => TranscriptTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TranscriptTextDelta' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickTranscriptTextDone( /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent PickTranscriptTextDone() => IsTranscriptTextDone - ? TranscriptTextDone! + public global::tryAGI.OpenAI.TranscriptTextDoneEvent PickTranscriptTextDone() => TranscriptTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TranscriptTextDone' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsTranscriptTextSegment && transcriptTextSegment != null) + if (TranscriptTextSegment is { } __value0 && transcriptTextSegment != null) { - return transcriptTextSegment(TranscriptTextSegment!); + return transcriptTextSegment(__value0); } - else if (IsTranscriptTextDelta && transcriptTextDelta != null) + else if (TranscriptTextDelta is { } __value1 && transcriptTextDelta != null) { - return transcriptTextDelta(TranscriptTextDelta!); + return transcriptTextDelta(__value1); } - else if (IsTranscriptTextDone && transcriptTextDone != null) + else if (TranscriptTextDone is { } __value2 && transcriptTextDone != null) { - return transcriptTextDone(TranscriptTextDone!); + return transcriptTextDone(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsTranscriptTextSegment) + if (TranscriptTextSegment is { } __value0) { - transcriptTextSegment?.Invoke(TranscriptTextSegment!); + transcriptTextSegment?.Invoke(__value0); } - else if (IsTranscriptTextDelta) + else if (TranscriptTextDelta is { } __value1) { - transcriptTextDelta?.Invoke(TranscriptTextDelta!); + transcriptTextDelta?.Invoke(__value1); } - else if (IsTranscriptTextDone) + else if (TranscriptTextDone is { } __value2) { - transcriptTextDone?.Invoke(TranscriptTextDone!); + transcriptTextDone?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsTranscriptTextSegment) + if (TranscriptTextSegment is { } __value0) { - transcriptTextSegment?.Invoke(TranscriptTextSegment!); + transcriptTextSegment?.Invoke(__value0); } - else if (IsTranscriptTextDelta) + else if (TranscriptTextDelta is { } __value1) { - transcriptTextDelta?.Invoke(TranscriptTextDelta!); + transcriptTextDelta?.Invoke(__value1); } - else if (IsTranscriptTextDone) + else if (TranscriptTextDone is { } __value2) { - transcriptTextDone?.Invoke(TranscriptTextDone!); + transcriptTextDone?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVaultCredentialAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVaultCredentialAuthParam.g.cs index 33915df5a..0ab28715b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVaultCredentialAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateVaultCredentialAuthParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickMcpOauth( /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth PickMcpOauth() => IsMcpOauth - ? McpOauth! + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamMcpOauth PickMcpOauth() => McpOauth is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpOauth' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStaticBearer( /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer PickStaticBearer() => IsStaticBearer - ? StaticBearer! + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamStaticBearer PickStaticBearer() => StaticBearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StaticBearer' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickEnvironmentVariable( /// /// /// - public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable PickEnvironmentVariable() => IsEnvironmentVariable - ? EnvironmentVariable! + public global::tryAGI.OpenAI.CreateVaultCredentialAuthParamEnvironmentVariable PickEnvironmentVariable() => EnvironmentVariable is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EnvironmentVariable' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsMcpOauth && mcpOauth != null) + if (McpOauth is { } __value0 && mcpOauth != null) { - return mcpOauth(McpOauth!); + return mcpOauth(__value0); } - else if (IsStaticBearer && staticBearer != null) + else if (StaticBearer is { } __value1 && staticBearer != null) { - return staticBearer(StaticBearer!); + return staticBearer(__value1); } - else if (IsEnvironmentVariable && environmentVariable != null) + else if (EnvironmentVariable is { } __value2 && environmentVariable != null) { - return environmentVariable(EnvironmentVariable!); + return environmentVariable(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsMcpOauth) + if (McpOauth is { } __value0) { - mcpOauth?.Invoke(McpOauth!); + mcpOauth?.Invoke(__value0); } - else if (IsStaticBearer) + else if (StaticBearer is { } __value1) { - staticBearer?.Invoke(StaticBearer!); + staticBearer?.Invoke(__value1); } - else if (IsEnvironmentVariable) + else if (EnvironmentVariable is { } __value2) { - environmentVariable?.Invoke(EnvironmentVariable!); + environmentVariable?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsMcpOauth) + if (McpOauth is { } __value0) { - mcpOauth?.Invoke(McpOauth!); + mcpOauth?.Invoke(__value0); } - else if (IsStaticBearer) + else if (StaticBearer is { } __value1) { - staticBearer?.Invoke(StaticBearer!); + staticBearer?.Invoke(__value1); } - else if (IsEnvironmentVariable) + else if (EnvironmentVariable is { } __value2) { - environmentVariable?.Invoke(EnvironmentVariable!); + environmentVariable?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs index 92002f5bb..85fcc06a4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCustomToolCallOutputResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2 PickCustomToolCallOutputResourceVariant2() => IsCustomToolCallOutputResourceVariant2 - ? CustomToolCallOutputResourceVariant2! + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2 PickCustomToolCallOutputResourceVariant2() => CustomToolCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsCustomToolCallOutput && customToolCallOutput != null) + if (CustomToolCallOutput is { } __value0 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value0); } - else if (IsCustomToolCallOutputResourceVariant2 && customToolCallOutputResourceVariant2 != null) + else if (CustomToolCallOutputResourceVariant2 is { } __value1 && customToolCallOutputResourceVariant2 != null) { - return customToolCallOutputResourceVariant2(CustomToolCallOutputResourceVariant2!); + return customToolCallOutputResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsCustomToolCallOutput) + if (CustomToolCallOutput is { } __value0) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value0); } - else if (IsCustomToolCallOutputResourceVariant2) + else if (CustomToolCallOutputResourceVariant2 is { } __value1) { - customToolCallOutputResourceVariant2?.Invoke(CustomToolCallOutputResourceVariant2!); + customToolCallOutputResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsCustomToolCallOutput) + if (CustomToolCallOutput is { } __value0) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value0); } - else if (IsCustomToolCallOutputResourceVariant2) + else if (CustomToolCallOutputResourceVariant2 is { } __value1) { - customToolCallOutputResourceVariant2?.Invoke(CustomToolCallOutputResourceVariant2!); + customToolCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs index 7d0e37ffe..bb34a68f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCustomToolCallResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2 PickCustomToolCallResourceVariant2() => IsCustomToolCallResourceVariant2 - ? CustomToolCallResourceVariant2! + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2 PickCustomToolCallResourceVariant2() => CustomToolCallResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsCustomToolCall && customToolCall != null) + if (CustomToolCall is { } __value0 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value0); } - else if (IsCustomToolCallResourceVariant2 && customToolCallResourceVariant2 != null) + else if (CustomToolCallResourceVariant2 is { } __value1 && customToolCallResourceVariant2 != null) { - return customToolCallResourceVariant2(CustomToolCallResourceVariant2!); + return customToolCallResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsCustomToolCall) + if (CustomToolCall is { } __value0) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value0); } - else if (IsCustomToolCallResourceVariant2) + else if (CustomToolCallResourceVariant2 is { } __value1) { - customToolCallResourceVariant2?.Invoke(CustomToolCallResourceVariant2!); + customToolCallResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsCustomToolCall) + if (CustomToolCall is { } __value0) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value0); } - else if (IsCustomToolCallResourceVariant2) + else if (CustomToolCallResourceVariant2 is { } __value1) { - customToolCallResourceVariant2?.Invoke(CustomToolCallResourceVariant2!); + customToolCallResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant1.g.cs index 2b32e3ff4..d31e5c49f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant1.g.cs @@ -47,8 +47,8 @@ public bool TryPickClient( /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => IsClient - ? Client! + public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParam PickResponses() => IsResponses - ? Responses! + public global::tryAGI.OpenAI.LiveResponsesDelegationParam PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsClient && client != null) + if (Client is { } __value0 && client != null) { - return client(Client!); + return client(__value0); } - else if (IsResponses && responses != null) + else if (Responses is { } __value1 && responses != null) { - return responses(Responses!); + return responses(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant12.g.cs index 7e491ff89..9177d56ce 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant12.g.cs @@ -47,8 +47,8 @@ public bool TryPickClient( /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => IsClient - ? Client! + public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParam PickResponses() => IsResponses - ? Responses! + public global::tryAGI.OpenAI.LiveResponsesDelegationParam PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsClient && client != null) + if (Client is { } __value0 && client != null) { - return client(Client!); + return client(__value0); } - else if (IsResponses && responses != null) + else if (Responses is { } __value1 && responses != null) { - return responses(Responses!); + return responses(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant13.g.cs index bbdc845eb..028b7645d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant13.g.cs @@ -47,8 +47,8 @@ public bool TryPickClient( /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => IsClient - ? Client! + public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam PickResponses() => IsResponses - ? Responses! + public global::tryAGI.OpenAI.LiveResponsesDelegationUpdateParam PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsClient && client != null) + if (Client is { } __value0 && client != null) { - return client(Client!); + return client(__value0); } - else if (IsResponses && responses != null) + else if (Responses is { } __value1 && responses != null) { - return responses(Responses!); + return responses(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant14.g.cs index 99ba7ebbd..dd30de0cd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DelegationVariant14.g.cs @@ -47,8 +47,8 @@ public bool TryPickClient( /// /// /// - public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => IsClient - ? Client! + public global::tryAGI.OpenAI.LiveClientDelegationParam PickClient() => Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Client' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.LiveResponsesDelegationParam PickResponses() => IsResponses - ? Responses! + public global::tryAGI.OpenAI.LiveResponsesDelegationParam PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsClient && client != null) + if (Client is { } __value0 && client != null) { - return client(Client!); + return client(__value0); } - else if (IsResponses && responses != null) + else if (Responses is { } __value1 && responses != null) { - return responses(Responses!); + return responses(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsClient) + if (Client is { } __value0) { - client?.Invoke(Client!); + client?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.Json.g.cs new file mode 100644 index 000000000..819c39543 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DeleteContainerFileResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DeleteContainerFileResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DeleteContainerFileResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.DeleteContainerFileResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DeleteContainerFileResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DeleteContainerFileResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DeleteContainerFileResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DeleteContainerFileResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.g.cs new file mode 100644 index 000000000..efb490879 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DeleteContainerFileResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DeleteContainerFileResponseObjectJsonConverter))] + public global::tryAGI.OpenAI.DeleteContainerFileResponseObject Object { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteContainerFileResponse( + bool deleted, + string id, + global::tryAGI.OpenAI.DeleteContainerFileResponseObject @object) + { + this.Object = @object; + this.Deleted = deleted; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContainerFileResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponseObject.g.cs new file mode 100644 index 000000000..6cecdc5dc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerFileResponseObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum DeleteContainerFileResponseObject + { + /// + /// + /// + ContainerFileDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContainerFileResponseObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContainerFileResponseObject value) + { + return value switch + { + DeleteContainerFileResponseObject.ContainerFileDeleted => "container.file.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContainerFileResponseObject? ToEnum(string value) + { + return value switch + { + "container.file.deleted" => DeleteContainerFileResponseObject.ContainerFileDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.Json.g.cs new file mode 100644 index 000000000..501361ab2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class DeleteContainerResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DeleteContainerResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.DeleteContainerResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.DeleteContainerResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.DeleteContainerResponse? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.DeleteContainerResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.DeleteContainerResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DeleteContainerResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.g.cs new file mode 100644 index 000000000..db353a506 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponse.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DeleteContainerResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DeleteContainerResponseObjectJsonConverter))] + public global::tryAGI.OpenAI.DeleteContainerResponseObject Object { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteContainerResponse( + bool deleted, + string id, + global::tryAGI.OpenAI.DeleteContainerResponseObject @object) + { + this.Object = @object; + this.Deleted = deleted; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteContainerResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponseObject.g.cs new file mode 100644 index 000000000..bf0a7bb08 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteContainerResponseObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum DeleteContainerResponseObject + { + /// + /// + /// + ContainerDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteContainerResponseObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteContainerResponseObject value) + { + return value switch + { + DeleteContainerResponseObject.ContainerDeleted => "container.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteContainerResponseObject? ToEnum(string value) + { + return value switch + { + "container.deleted" => DeleteContainerResponseObject.ContainerDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobError.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.Json.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobError.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.Json.g.cs index 8931faaef..99b9355e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobError.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class FineTuningJobError + public sealed partial class DeleteResponseResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.FineTuningJobError? FromJson( + public static global::tryAGI.OpenAI.DeleteResponseResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.FineTuningJobError), - jsonSerializerContext) as global::tryAGI.OpenAI.FineTuningJobError; + typeof(global::tryAGI.OpenAI.DeleteResponseResponse), + jsonSerializerContext) as global::tryAGI.OpenAI.DeleteResponseResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::tryAGI.OpenAI.FineTuningJobError? FromJson( + public static global::tryAGI.OpenAI.DeleteResponseResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::tryAGI.OpenAI.FineTuningJobError? FromJson( + public static global::tryAGI.OpenAI.DeleteResponseResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::tryAGI.OpenAI.FineTuningJobError), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.FineTuningJobError; + typeof(global::tryAGI.OpenAI.DeleteResponseResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.DeleteResponseResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.g.cs new file mode 100644 index 000000000..4b049a690 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponse.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public sealed partial class DeleteResponseResponse + { + /// + /// Default Value: response.deleted + /// + /// global::tryAGI.OpenAI.DeleteResponseResponseObject.ResponseDeleted + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DeleteResponseResponseObjectJsonConverter))] + public global::tryAGI.OpenAI.DeleteResponseResponseObject Object { get; set; } = global::tryAGI.OpenAI.DeleteResponseResponseObject.ResponseDeleted; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Default Value: response.deleted + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteResponseResponse( + bool deleted, + string id, + global::tryAGI.OpenAI.DeleteResponseResponseObject @object = global::tryAGI.OpenAI.DeleteResponseResponseObject.ResponseDeleted) + { + this.Object = @object; + this.Deleted = deleted; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteResponseResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponseObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponseObject.g.cs new file mode 100644 index 000000000..461b01289 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeleteResponseResponseObject.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// Default Value: response.deleted + /// + public enum DeleteResponseResponseObject + { + /// + /// + /// + ResponseDeleted, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class DeleteResponseResponseObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this DeleteResponseResponseObject value) + { + return value switch + { + DeleteResponseResponseObject.ResponseDeleted => "response.deleted", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static DeleteResponseResponseObject? ToEnum(string value) + { + return value switch + { + "response.deleted" => DeleteResponseResponseObject.ResponseDeleted, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs index 48e93fd5e..17efbc0bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.DeletedConversation.g.cs @@ -42,8 +42,8 @@ public bool TryPickResource( /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResource PickResource() => IsResource - ? Resource! + public global::tryAGI.OpenAI.DeletedConversationResource PickResource() => Resource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Resource' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsResource && resource != null) + if (Resource is { } __value0 && resource != null) { - return resource(Resource!); + return resource(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsResource) + if (Resource is { } __value0) { - resource?.Invoke(Resource!); + resource?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsResource) + if (Resource is { } __value0) { - resource?.Invoke(Resource!); + resource?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs index a18dec9f8..4ff96846b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Embedding.g.cs @@ -16,11 +16,12 @@ public sealed partial class Embedding public required int Index { get; set; } /// - /// The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](https://developers.openai.com/api/docs/guides/embeddings). + /// The embedding vector, returned as a list of floats when `encoding_format` is `float` (the default), or as a base64-encoded string when `encoding_format` is `base64`. The length of the vector depends on the model as listed in the [embedding guide](https://developers.openai.com/api/docs/guides/embeddings). /// [global::System.Text.Json.Serialization.JsonPropertyName("embedding")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter, string>))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Embedding1 { get; set; } + public required global::tryAGI.OpenAI.AnyOf, string> Embedding1 { get; set; } /// /// The object type, which is always "embedding". @@ -42,7 +43,7 @@ public sealed partial class Embedding /// The index of the embedding in the list of embeddings. /// /// - /// The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](https://developers.openai.com/api/docs/guides/embeddings). + /// The embedding vector, returned as a list of floats when `encoding_format` is `float` (the default), or as a base64-encoded string when `encoding_format` is `base64`. The length of the vector depends on the model as listed in the [embedding guide](https://developers.openai.com/api/docs/guides/embeddings). /// /// /// The object type, which is always "embedding". @@ -52,11 +53,11 @@ public sealed partial class Embedding #endif public Embedding( int index, - global::System.Collections.Generic.IList embedding1, + global::tryAGI.OpenAI.AnyOf, string> embedding1, global::tryAGI.OpenAI.EmbeddingObject @object) { this.Index = index; - this.Embedding1 = embedding1 ?? throw new global::System.ArgumentNullException(nameof(embedding1)); + this.Embedding1 = embedding1; this.Object = @object; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParam.g.cs index 854fc4497..35586e4f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickNone( /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamNone PickNone() => IsNone - ? None! + public global::tryAGI.OpenAI.EnvironmentParamNone PickNone() => None is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'None' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOpenaiHosted( /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted PickOpenaiHosted() => IsOpenaiHosted - ? OpenaiHosted! + public global::tryAGI.OpenAI.EnvironmentParamOpenaiHosted PickOpenaiHosted() => OpenaiHosted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OpenaiHosted' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickSelfHosted( /// /// /// - public global::tryAGI.OpenAI.EnvironmentParamSelfHosted PickSelfHosted() => IsSelfHosted - ? SelfHosted! + public global::tryAGI.OpenAI.EnvironmentParamSelfHosted PickSelfHosted() => SelfHosted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SelfHosted' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsNone && none != null) + if (None is { } __value0 && none != null) { - return none(None!); + return none(__value0); } - else if (IsOpenaiHosted && openaiHosted != null) + else if (OpenaiHosted is { } __value1 && openaiHosted != null) { - return openaiHosted(OpenaiHosted!); + return openaiHosted(__value1); } - else if (IsSelfHosted && selfHosted != null) + else if (SelfHosted is { } __value2 && selfHosted != null) { - return selfHosted(SelfHosted!); + return selfHosted(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsOpenaiHosted) + else if (OpenaiHosted is { } __value1) { - openaiHosted?.Invoke(OpenaiHosted!); + openaiHosted?.Invoke(__value1); } - else if (IsSelfHosted) + else if (SelfHosted is { } __value2) { - selfHosted?.Invoke(SelfHosted!); + selfHosted?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsOpenaiHosted) + else if (OpenaiHosted is { } __value1) { - openaiHosted?.Invoke(OpenaiHosted!); + openaiHosted?.Invoke(__value1); } - else if (IsSelfHosted) + else if (SelfHosted is { } __value2) { - selfHosted?.Invoke(SelfHosted!); + selfHosted?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentResource.g.cs index 2750d0ce0..36154952e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickNone( /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceNone PickNone() => IsNone - ? None! + public global::tryAGI.OpenAI.EnvironmentResourceNone PickNone() => None is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'None' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOpenaiHosted( /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted PickOpenaiHosted() => IsOpenaiHosted - ? OpenaiHosted! + public global::tryAGI.OpenAI.EnvironmentResourceOpenaiHosted PickOpenaiHosted() => OpenaiHosted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OpenaiHosted' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickSelfHosted( /// /// /// - public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted PickSelfHosted() => IsSelfHosted - ? SelfHosted! + public global::tryAGI.OpenAI.EnvironmentResourceSelfHosted PickSelfHosted() => SelfHosted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SelfHosted' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsNone && none != null) + if (None is { } __value0 && none != null) { - return none(None!); + return none(__value0); } - else if (IsOpenaiHosted && openaiHosted != null) + else if (OpenaiHosted is { } __value1 && openaiHosted != null) { - return openaiHosted(OpenaiHosted!); + return openaiHosted(__value1); } - else if (IsSelfHosted && selfHosted != null) + else if (SelfHosted is { } __value2 && selfHosted != null) { - return selfHosted(SelfHosted!); + return selfHosted(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsOpenaiHosted) + else if (OpenaiHosted is { } __value1) { - openaiHosted?.Invoke(OpenaiHosted!); + openaiHosted?.Invoke(__value1); } - else if (IsSelfHosted) + else if (SelfHosted is { } __value2) { - selfHosted?.Invoke(SelfHosted!); + selfHosted?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsOpenaiHosted) + else if (OpenaiHosted is { } __value1) { - openaiHosted?.Invoke(OpenaiHosted!); + openaiHosted?.Invoke(__value1); } - else if (IsSelfHosted) + else if (SelfHosted is { } __value2) { - selfHosted?.Invoke(SelfHosted!); + selfHosted?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs index 7af7d1a3f..52814c0de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs @@ -47,8 +47,8 @@ public bool TryPickContainerAuto( /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParam PickContainerAuto() => IsContainerAuto - ? ContainerAuto! + public global::tryAGI.OpenAI.ContainerAutoParam PickContainerAuto() => ContainerAuto is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerAuto' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickLocal( /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam PickLocal() => IsLocal - ? Local! + public global::tryAGI.OpenAI.LocalEnvironmentParam PickLocal() => Local is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Local' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickContainerReference( /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam PickContainerReference() => IsContainerReference - ? ContainerReference! + public global::tryAGI.OpenAI.ContainerReferenceParam PickContainerReference() => ContainerReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerReference' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsContainerAuto && containerAuto != null) + if (ContainerAuto is { } __value0 && containerAuto != null) { - return containerAuto(ContainerAuto!); + return containerAuto(__value0); } - else if (IsLocal && local != null) + else if (Local is { } __value1 && local != null) { - return local(Local!); + return local(__value1); } - else if (IsContainerReference && containerReference != null) + else if (ContainerReference is { } __value2 && containerReference != null) { - return containerReference(ContainerReference!); + return containerReference(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsContainerAuto) + if (ContainerAuto is { } __value0) { - containerAuto?.Invoke(ContainerAuto!); + containerAuto?.Invoke(__value0); } - else if (IsLocal) + else if (Local is { } __value1) { - local?.Invoke(Local!); + local?.Invoke(__value1); } - else if (IsContainerReference) + else if (ContainerReference is { } __value2) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsContainerAuto) + if (ContainerAuto is { } __value0) { - containerAuto?.Invoke(ContainerAuto!); + containerAuto?.Invoke(__value0); } - else if (IsLocal) + else if (Local is { } __value1) { - local?.Invoke(Local!); + local?.Invoke(__value1); } - else if (IsContainerReference) + else if (ContainerReference is { } __value2) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs index b5e7e76a8..ad4c3de19 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs @@ -47,8 +47,8 @@ public bool TryPickLocal( /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResource PickLocal() => IsLocal - ? Local! + public global::tryAGI.OpenAI.LocalEnvironmentResource PickLocal() => Local is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Local' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickContainerReference( /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResource PickContainerReference() => IsContainerReference - ? ContainerReference! + public global::tryAGI.OpenAI.ContainerReferenceResource PickContainerReference() => ContainerReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerReference' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsLocal && local != null) + if (Local is { } __value0 && local != null) { - return local(Local!); + return local(__value0); } - else if (IsContainerReference && containerReference != null) + else if (ContainerReference is { } __value1 && containerReference != null) { - return containerReference(ContainerReference!); + return containerReference(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs index 75da532ee..cc029514a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs @@ -47,8 +47,8 @@ public bool TryPickLocal( /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam PickLocal() => IsLocal - ? Local! + public global::tryAGI.OpenAI.LocalEnvironmentParam PickLocal() => Local is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Local' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickContainerReference( /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam PickContainerReference() => IsContainerReference - ? ContainerReference! + public global::tryAGI.OpenAI.ContainerReferenceParam PickContainerReference() => ContainerReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerReference' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsLocal && local != null) + if (Local is { } __value0 && local != null) { - return local(Local!); + return local(__value0); } - else if (IsContainerReference && containerReference != null) + else if (ContainerReference is { } __value1 && containerReference != null) { - return containerReference(ContainerReference!); + return containerReference(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant14.g.cs index f86a66a77..e375674fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant14.g.cs @@ -47,8 +47,8 @@ public bool TryPickContainerAuto( /// /// /// - public global::tryAGI.OpenAI.BetaContainerAutoParam PickContainerAuto() => IsContainerAuto - ? ContainerAuto! + public global::tryAGI.OpenAI.BetaContainerAutoParam PickContainerAuto() => ContainerAuto is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerAuto' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickLocal( /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParam PickLocal() => IsLocal - ? Local! + public global::tryAGI.OpenAI.BetaLocalEnvironmentParam PickLocal() => Local is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Local' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickContainerReference( /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParam PickContainerReference() => IsContainerReference - ? ContainerReference! + public global::tryAGI.OpenAI.BetaContainerReferenceParam PickContainerReference() => ContainerReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerReference' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsContainerAuto && containerAuto != null) + if (ContainerAuto is { } __value0 && containerAuto != null) { - return containerAuto(ContainerAuto!); + return containerAuto(__value0); } - else if (IsLocal && local != null) + else if (Local is { } __value1 && local != null) { - return local(Local!); + return local(__value1); } - else if (IsContainerReference && containerReference != null) + else if (ContainerReference is { } __value2 && containerReference != null) { - return containerReference(ContainerReference!); + return containerReference(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsContainerAuto) + if (ContainerAuto is { } __value0) { - containerAuto?.Invoke(ContainerAuto!); + containerAuto?.Invoke(__value0); } - else if (IsLocal) + else if (Local is { } __value1) { - local?.Invoke(Local!); + local?.Invoke(__value1); } - else if (IsContainerReference) + else if (ContainerReference is { } __value2) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsContainerAuto) + if (ContainerAuto is { } __value0) { - containerAuto?.Invoke(ContainerAuto!); + containerAuto?.Invoke(__value0); } - else if (IsLocal) + else if (Local is { } __value1) { - local?.Invoke(Local!); + local?.Invoke(__value1); } - else if (IsContainerReference) + else if (ContainerReference is { } __value2) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant15.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant15.g.cs index 219e3fed8..9267867c8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant15.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant15.g.cs @@ -47,8 +47,8 @@ public bool TryPickLocal( /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentParam PickLocal() => IsLocal - ? Local! + public global::tryAGI.OpenAI.BetaLocalEnvironmentParam PickLocal() => Local is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Local' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickContainerReference( /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceParam PickContainerReference() => IsContainerReference - ? ContainerReference! + public global::tryAGI.OpenAI.BetaContainerReferenceParam PickContainerReference() => ContainerReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerReference' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsLocal && local != null) + if (Local is { } __value0 && local != null) { - return local(Local!); + return local(__value0); } - else if (IsContainerReference && containerReference != null) + else if (ContainerReference is { } __value1 && containerReference != null) { - return containerReference(ContainerReference!); + return containerReference(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant16.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant16.g.cs index adf8a4060..ba6f03fcd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant16.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant16.g.cs @@ -47,8 +47,8 @@ public bool TryPickLocal( /// /// /// - public global::tryAGI.OpenAI.BetaLocalEnvironmentResource PickLocal() => IsLocal - ? Local! + public global::tryAGI.OpenAI.BetaLocalEnvironmentResource PickLocal() => Local is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Local' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickContainerReference( /// /// /// - public global::tryAGI.OpenAI.BetaContainerReferenceResource PickContainerReference() => IsContainerReference - ? ContainerReference! + public global::tryAGI.OpenAI.BetaContainerReferenceResource PickContainerReference() => ContainerReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContainerReference' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsLocal && local != null) + if (Local is { } __value0 && local != null) { - return local(Local!); + return local(__value0); } - else if (IsContainerReference && containerReference != null) + else if (ContainerReference is { } __value1 && containerReference != null) { - return containerReference(ContainerReference!); + return containerReference(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsLocal) + if (Local is { } __value0) { - local?.Invoke(Local!); + local?.Invoke(__value0); } - else if (IsContainerReference) + else if (ContainerReference is { } __value1) { - containerReference?.Invoke(ContainerReference!); + containerReference?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs index eb5d0fe0c..fe251bd19 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderLabelModel.g.cs @@ -43,8 +43,8 @@ public bool TryPickLabelModelGrader( /// /// /// - public global::tryAGI.OpenAI.GraderLabelModel PickLabelModelGrader() => IsLabelModelGrader - ? LabelModelGrader! + public global::tryAGI.OpenAI.GraderLabelModel PickLabelModelGrader() => LabelModelGrader is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LabelModelGrader' but the value was {ToString()}."); /// /// @@ -103,9 +103,9 @@ public bool Validate() Validate(); } - if (IsLabelModelGrader && labelModelGrader != null) + if (LabelModelGrader is { } __value0 && labelModelGrader != null) { - return labelModelGrader(LabelModelGrader!); + return labelModelGrader(__value0); } return default(TResult); @@ -123,9 +123,9 @@ public void Match( Validate(); } - if (IsLabelModelGrader) + if (LabelModelGrader is { } __value0) { - labelModelGrader?.Invoke(LabelModelGrader!); + labelModelGrader?.Invoke(__value0); } } @@ -141,9 +141,9 @@ public void Switch( Validate(); } - if (IsLabelModelGrader) + if (LabelModelGrader is { } __value0) { - labelModelGrader?.Invoke(LabelModelGrader!); + labelModelGrader?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs index f9f21a050..0141b7806 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs @@ -42,8 +42,8 @@ public bool TryPickPythonGrader( /// /// /// - public global::tryAGI.OpenAI.GraderPython PickPythonGrader() => IsPythonGrader - ? PythonGrader! + public global::tryAGI.OpenAI.GraderPython PickPythonGrader() => PythonGrader is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PythonGrader' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEvalGraderPythonVariant2( /// /// /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2 PickEvalGraderPythonVariant2() => IsEvalGraderPythonVariant2 - ? EvalGraderPythonVariant2! + public global::tryAGI.OpenAI.EvalGraderPythonVariant2 PickEvalGraderPythonVariant2() => EvalGraderPythonVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EvalGraderPythonVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsPythonGrader && pythonGrader != null) + if (PythonGrader is { } __value0 && pythonGrader != null) { - return pythonGrader(PythonGrader!); + return pythonGrader(__value0); } - else if (IsEvalGraderPythonVariant2 && evalGraderPythonVariant2 != null) + else if (EvalGraderPythonVariant2 is { } __value1 && evalGraderPythonVariant2 != null) { - return evalGraderPythonVariant2(EvalGraderPythonVariant2!); + return evalGraderPythonVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsPythonGrader) + if (PythonGrader is { } __value0) { - pythonGrader?.Invoke(PythonGrader!); + pythonGrader?.Invoke(__value0); } - else if (IsEvalGraderPythonVariant2) + else if (EvalGraderPythonVariant2 is { } __value1) { - evalGraderPythonVariant2?.Invoke(EvalGraderPythonVariant2!); + evalGraderPythonVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsPythonGrader) + if (PythonGrader is { } __value0) { - pythonGrader?.Invoke(PythonGrader!); + pythonGrader?.Invoke(__value0); } - else if (IsEvalGraderPythonVariant2) + else if (EvalGraderPythonVariant2 is { } __value1) { - evalGraderPythonVariant2?.Invoke(EvalGraderPythonVariant2!); + evalGraderPythonVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs index 3b041765a..44dc666e3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs @@ -42,8 +42,8 @@ public bool TryPickScoreModelGrader( /// /// /// - public global::tryAGI.OpenAI.GraderScoreModel PickScoreModelGrader() => IsScoreModelGrader - ? ScoreModelGrader! + public global::tryAGI.OpenAI.GraderScoreModel PickScoreModelGrader() => ScoreModelGrader is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ScoreModelGrader' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEvalGraderScoreModelVariant2( /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2 PickEvalGraderScoreModelVariant2() => IsEvalGraderScoreModelVariant2 - ? EvalGraderScoreModelVariant2! + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2 PickEvalGraderScoreModelVariant2() => EvalGraderScoreModelVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EvalGraderScoreModelVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsScoreModelGrader && scoreModelGrader != null) + if (ScoreModelGrader is { } __value0 && scoreModelGrader != null) { - return scoreModelGrader(ScoreModelGrader!); + return scoreModelGrader(__value0); } - else if (IsEvalGraderScoreModelVariant2 && evalGraderScoreModelVariant2 != null) + else if (EvalGraderScoreModelVariant2 is { } __value1 && evalGraderScoreModelVariant2 != null) { - return evalGraderScoreModelVariant2(EvalGraderScoreModelVariant2!); + return evalGraderScoreModelVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsScoreModelGrader) + if (ScoreModelGrader is { } __value0) { - scoreModelGrader?.Invoke(ScoreModelGrader!); + scoreModelGrader?.Invoke(__value0); } - else if (IsEvalGraderScoreModelVariant2) + else if (EvalGraderScoreModelVariant2 is { } __value1) { - evalGraderScoreModelVariant2?.Invoke(EvalGraderScoreModelVariant2!); + evalGraderScoreModelVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsScoreModelGrader) + if (ScoreModelGrader is { } __value0) { - scoreModelGrader?.Invoke(ScoreModelGrader!); + scoreModelGrader?.Invoke(__value0); } - else if (IsEvalGraderScoreModelVariant2) + else if (EvalGraderScoreModelVariant2 is { } __value1) { - evalGraderScoreModelVariant2?.Invoke(EvalGraderScoreModelVariant2!); + evalGraderScoreModelVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs index 88001e1a5..c7d31e2d6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderStringCheck.g.cs @@ -42,8 +42,8 @@ public bool TryPickStringCheckGrader( /// /// /// - public global::tryAGI.OpenAI.GraderStringCheck PickStringCheckGrader() => IsStringCheckGrader - ? StringCheckGrader! + public global::tryAGI.OpenAI.GraderStringCheck PickStringCheckGrader() => StringCheckGrader is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StringCheckGrader' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsStringCheckGrader && stringCheckGrader != null) + if (StringCheckGrader is { } __value0 && stringCheckGrader != null) { - return stringCheckGrader(StringCheckGrader!); + return stringCheckGrader(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsStringCheckGrader) + if (StringCheckGrader is { } __value0) { - stringCheckGrader?.Invoke(StringCheckGrader!); + stringCheckGrader?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsStringCheckGrader) + if (StringCheckGrader is { } __value0) { - stringCheckGrader?.Invoke(StringCheckGrader!); + stringCheckGrader?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs index b8459463f..6472869f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs @@ -42,8 +42,8 @@ public bool TryPickTextSimilarityGrader( /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarity PickTextSimilarityGrader() => IsTextSimilarityGrader - ? TextSimilarityGrader! + public global::tryAGI.OpenAI.GraderTextSimilarity PickTextSimilarityGrader() => TextSimilarityGrader is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextSimilarityGrader' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEvalGraderTextSimilarityVariant2( /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2 PickEvalGraderTextSimilarityVariant2() => IsEvalGraderTextSimilarityVariant2 - ? EvalGraderTextSimilarityVariant2! + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2 PickEvalGraderTextSimilarityVariant2() => EvalGraderTextSimilarityVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EvalGraderTextSimilarityVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsTextSimilarityGrader && textSimilarityGrader != null) + if (TextSimilarityGrader is { } __value0 && textSimilarityGrader != null) { - return textSimilarityGrader(TextSimilarityGrader!); + return textSimilarityGrader(__value0); } - else if (IsEvalGraderTextSimilarityVariant2 && evalGraderTextSimilarityVariant2 != null) + else if (EvalGraderTextSimilarityVariant2 is { } __value1 && evalGraderTextSimilarityVariant2 != null) { - return evalGraderTextSimilarityVariant2(EvalGraderTextSimilarityVariant2!); + return evalGraderTextSimilarityVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsTextSimilarityGrader) + if (TextSimilarityGrader is { } __value0) { - textSimilarityGrader?.Invoke(TextSimilarityGrader!); + textSimilarityGrader?.Invoke(__value0); } - else if (IsEvalGraderTextSimilarityVariant2) + else if (EvalGraderTextSimilarityVariant2 is { } __value1) { - evalGraderTextSimilarityVariant2?.Invoke(EvalGraderTextSimilarityVariant2!); + evalGraderTextSimilarityVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsTextSimilarityGrader) + if (TextSimilarityGrader is { } __value0) { - textSimilarityGrader?.Invoke(TextSimilarityGrader!); + textSimilarityGrader?.Invoke(__value0); } - else if (IsEvalGraderTextSimilarityVariant2) + else if (EvalGraderTextSimilarityVariant2 is { } __value1) { - evalGraderTextSimilarityVariant2?.Invoke(EvalGraderTextSimilarityVariant2!); + evalGraderTextSimilarityVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs index e7531a896..05853cc5e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContent.g.cs @@ -42,8 +42,8 @@ public bool TryPickEvalContentItem( /// /// /// - public global::tryAGI.OpenAI.EvalItemContentItem PickEvalContentItem() => IsEvalContentItem - ? EvalContentItem!.Value + public global::tryAGI.OpenAI.EvalItemContentItem PickEvalContentItem() => EvalContentItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EvalContentItem' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickAnArrayOfInputTextOutputTextInputImageAndInputAudio( /// /// /// - public global::System.Collections.Generic.IList PickAnArrayOfInputTextOutputTextInputImageAndInputAudio() => IsAnArrayOfInputTextOutputTextInputImageAndInputAudio - ? AnArrayOfInputTextOutputTextInputImageAndInputAudio! + public global::System.Collections.Generic.IList PickAnArrayOfInputTextOutputTextInputImageAndInputAudio() => AnArrayOfInputTextOutputTextInputImageAndInputAudio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnArrayOfInputTextOutputTextInputImageAndInputAudio' but the value was {ToString()}."); /// /// @@ -155,13 +155,13 @@ public bool Validate() Validate(); } - if (IsEvalContentItem && evalContentItem != null) + if (EvalContentItem is { } __value0 && evalContentItem != null) { - return evalContentItem(EvalContentItem!); + return evalContentItem(__value0); } - else if (IsAnArrayOfInputTextOutputTextInputImageAndInputAudio && anArrayOfInputTextOutputTextInputImageAndInputAudio != null) + else if (AnArrayOfInputTextOutputTextInputImageAndInputAudio is { } __value1 && anArrayOfInputTextOutputTextInputImageAndInputAudio != null) { - return anArrayOfInputTextOutputTextInputImageAndInputAudio(AnArrayOfInputTextOutputTextInputImageAndInputAudio!); + return anArrayOfInputTextOutputTextInputImageAndInputAudio(__value1); } return default(TResult); @@ -181,13 +181,13 @@ public void Match( Validate(); } - if (IsEvalContentItem) + if (EvalContentItem is { } __value0) { - evalContentItem?.Invoke(EvalContentItem!); + evalContentItem?.Invoke(__value0); } - else if (IsAnArrayOfInputTextOutputTextInputImageAndInputAudio) + else if (AnArrayOfInputTextOutputTextInputImageAndInputAudio is { } __value1) { - anArrayOfInputTextOutputTextInputImageAndInputAudio?.Invoke(AnArrayOfInputTextOutputTextInputImageAndInputAudio!); + anArrayOfInputTextOutputTextInputImageAndInputAudio?.Invoke(__value1); } } @@ -204,13 +204,13 @@ public void Switch( Validate(); } - if (IsEvalContentItem) + if (EvalContentItem is { } __value0) { - evalContentItem?.Invoke(EvalContentItem!); + evalContentItem?.Invoke(__value0); } - else if (IsAnArrayOfInputTextOutputTextInputImageAndInputAudio) + else if (AnArrayOfInputTextOutputTextInputImageAndInputAudio is { } __value1) { - anArrayOfInputTextOutputTextInputImageAndInputAudio?.Invoke(AnArrayOfInputTextOutputTextInputImageAndInputAudio!); + anArrayOfInputTextOutputTextInputImageAndInputAudio?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs index 5bf7da337..95d7d06a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalItemContentItem.g.cs @@ -42,8 +42,8 @@ public bool TryPickTextInput( /// /// /// - public string PickTextInput() => IsTextInput - ? TextInput! + public string PickTextInput() => TextInput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextInput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputText PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.EvalItemContentOutputText PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImage PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.EvalItemInputImage PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickInputAudio( /// /// /// - public global::tryAGI.OpenAI.InputAudio PickInputAudio() => IsInputAudio - ? InputAudio! + public global::tryAGI.OpenAI.InputAudio PickInputAudio() => InputAudio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudio' but the value was {ToString()}."); /// /// @@ -372,25 +372,25 @@ public bool Validate() Validate(); } - if (IsTextInput && textInput != null) + if (TextInput is { } __value0 && textInput != null) { - return textInput(TextInput!); + return textInput(__value0); } - else if (IsInputText && inputText != null) + else if (InputText is { } __value1 && inputText != null) { - return inputText(InputText!); + return inputText(__value1); } - else if (IsOutputText && outputText != null) + else if (OutputText is { } __value2 && outputText != null) { - return outputText(OutputText!); + return outputText(__value2); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value3 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value3); } - else if (IsInputAudio && inputAudio != null) + else if (InputAudio is { } __value4 && inputAudio != null) { - return inputAudio(InputAudio!); + return inputAudio(__value4); } return default(TResult); @@ -416,25 +416,25 @@ public void Match( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsInputText) + else if (InputText is { } __value1) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value1); } - else if (IsOutputText) + else if (OutputText is { } __value2) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value2); } - else if (IsInputImage) + else if (InputImage is { } __value3) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value3); } - else if (IsInputAudio) + else if (InputAudio is { } __value4) { - inputAudio?.Invoke(InputAudio!); + inputAudio?.Invoke(__value4); } } @@ -454,25 +454,25 @@ public void Switch( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsInputText) + else if (InputText is { } __value1) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value1); } - else if (IsOutputText) + else if (OutputText is { } __value2) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value2); } - else if (IsInputImage) + else if (InputImage is { } __value3) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value3); } - else if (IsInputAudio) + else if (InputAudio is { } __value4) { - inputAudio?.Invoke(InputAudio!); + inputAudio?.Invoke(__value4); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunOutputItemSample.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunOutputItemSample.g.cs index 925c68297..35d8e906e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunOutputItemSample.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalRunOutputItemSample.g.cs @@ -44,11 +44,10 @@ public sealed partial class EvalRunOutputItemSample public required global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage Usage { get; set; } /// - /// An object representing an error response from the Eval API. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.EvalApiError Error { get; set; } + public global::tryAGI.OpenAI.EvalApiError? Error { get; set; } /// /// The sampling temperature used. @@ -102,9 +101,6 @@ public sealed partial class EvalRunOutputItemSample /// /// Token usage details for the sample. /// - /// - /// An object representing an error response from the Eval API. - /// /// /// The sampling temperature used. /// @@ -117,6 +113,7 @@ public sealed partial class EvalRunOutputItemSample /// /// The seed used for generating the sample. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -126,18 +123,18 @@ public EvalRunOutputItemSample( string finishReason, string model, global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage usage, - global::tryAGI.OpenAI.EvalApiError error, double temperature, int maxCompletionTokens, double topP, - int seed) + int seed, + global::tryAGI.OpenAI.EvalApiError? error) { this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); this.FinishReason = finishReason ?? throw new global::System.ArgumentNullException(nameof(finishReason)); this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Usage = usage ?? throw new global::System.ArgumentNullException(nameof(usage)); - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Error = error; this.Temperature = temperature; this.MaxCompletionTokens = maxCompletionTokens; this.TopP = topP; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileCitationBody.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileCitationBody.g.cs index 25b86da0e..c514c9e81 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileCitationBody.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FileCitationBody.g.cs @@ -25,7 +25,7 @@ public sealed partial class FileCitationBody public required string FileId { get; set; } /// - /// The index of the file in the list of files. + /// The index in the output text at which to insert the file citation. /// [global::System.Text.Json.Serialization.JsonPropertyName("index")] [global::System.Text.Json.Serialization.JsonRequired] @@ -51,7 +51,7 @@ public sealed partial class FileCitationBody /// The ID of the file. /// /// - /// The index of the file in the list of files. + /// The index in the output text at which to insert the file citation. /// /// /// The filename of the file cited. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs index aa9063abc..45f49bb09 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Filters2.g.cs @@ -42,8 +42,8 @@ public bool TryPickComparisonFilter( /// /// /// - public global::tryAGI.OpenAI.ComparisonFilter PickComparisonFilter() => IsComparisonFilter - ? ComparisonFilter! + public global::tryAGI.OpenAI.ComparisonFilter PickComparisonFilter() => ComparisonFilter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComparisonFilter' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCompoundFilter( /// /// /// - public global::tryAGI.OpenAI.CompoundFilter PickCompoundFilter() => IsCompoundFilter - ? CompoundFilter! + public global::tryAGI.OpenAI.CompoundFilter PickCompoundFilter() => CompoundFilter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CompoundFilter' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsComparisonFilter && comparisonFilter != null) + if (ComparisonFilter is { } __value0 && comparisonFilter != null) { - return comparisonFilter(ComparisonFilter!); + return comparisonFilter(__value0); } - else if (IsCompoundFilter && compoundFilter != null) + else if (CompoundFilter is { } __value1 && compoundFilter != null) { - return compoundFilter(CompoundFilter!); + return compoundFilter(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsCompoundFilter) + else if (CompoundFilter is { } __value1) { - compoundFilter?.Invoke(CompoundFilter!); + compoundFilter?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsCompoundFilter) + else if (CompoundFilter is { } __value1) { - compoundFilter?.Invoke(CompoundFilter!); + compoundFilter?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs index f5f34d776..f6b83ee5c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs @@ -42,46 +42,46 @@ public bool TryPickComparisonFilter( /// /// /// - public global::tryAGI.OpenAI.ComparisonFilter PickComparisonFilter() => IsComparisonFilter - ? ComparisonFilter! + public global::tryAGI.OpenAI.ComparisonFilter PickComparisonFilter() => ComparisonFilter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComparisonFilter' but the value was {ToString()}."); /// - /// + /// Combine multiple filters using `and` or `or`. /// #if NET6_0_OR_GREATER - public object? CompoundFilterVariant2 { get; init; } + public global::tryAGI.OpenAI.CompoundFilter? CompoundFilter { get; init; } #else - public object? CompoundFilterVariant2 { get; } + public global::tryAGI.OpenAI.CompoundFilter? CompoundFilter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompoundFilterVariant2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompoundFilter))] #endif - public bool IsCompoundFilterVariant2 => CompoundFilterVariant2 != null; + public bool IsCompoundFilter => CompoundFilter != null; /// /// /// - public bool TryPickCompoundFilterVariant2( + public bool TryPickCompoundFilter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out object? value) + out global::tryAGI.OpenAI.CompoundFilter? value) { - value = CompoundFilterVariant2; - return IsCompoundFilterVariant2; + value = CompoundFilter; + return IsCompoundFilter; } /// /// /// - public object PickCompoundFilterVariant2() => IsCompoundFilterVariant2 - ? CompoundFilterVariant2! - : throw new global::System.InvalidOperationException($"Expected union variant 'CompoundFilterVariant2' but the value was {ToString()}."); + public global::tryAGI.OpenAI.CompoundFilter PickCompoundFilter() => CompoundFilter is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompoundFilter' but the value was {ToString()}."); /// /// /// @@ -105,23 +105,46 @@ public FiltersItem(global::tryAGI.OpenAI.ComparisonFilter? value) /// public static FiltersItem FromComparisonFilter(global::tryAGI.OpenAI.ComparisonFilter? value) => new FiltersItem(value); + /// + /// + /// + public static implicit operator FiltersItem(global::tryAGI.OpenAI.CompoundFilter value) => new FiltersItem((global::tryAGI.OpenAI.CompoundFilter?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.CompoundFilter?(FiltersItem @this) => @this.CompoundFilter; + + /// + /// + /// + public FiltersItem(global::tryAGI.OpenAI.CompoundFilter? value) + { + CompoundFilter = value; + } + + /// + /// + /// + public static FiltersItem FromCompoundFilter(global::tryAGI.OpenAI.CompoundFilter? value) => new FiltersItem(value); + /// /// /// public FiltersItem( global::tryAGI.OpenAI.ComparisonFilter? comparisonFilter, - object? compoundFilterVariant2 + global::tryAGI.OpenAI.CompoundFilter? compoundFilter ) { ComparisonFilter = comparisonFilter; - CompoundFilterVariant2 = compoundFilterVariant2; + CompoundFilter = compoundFilter; } /// /// /// public object? Object => - CompoundFilterVariant2 as object ?? + CompoundFilter as object ?? ComparisonFilter as object ; @@ -130,7 +153,7 @@ ComparisonFilter as object /// public override string? ToString() => ComparisonFilter?.ToString() ?? - CompoundFilterVariant2?.ToString() + CompoundFilter?.ToString() ; /// @@ -138,7 +161,7 @@ ComparisonFilter as object /// public bool Validate() { - return IsComparisonFilter && !IsCompoundFilterVariant2 || !IsComparisonFilter && IsCompoundFilterVariant2; + return IsComparisonFilter && !IsCompoundFilter || !IsComparisonFilter && IsCompoundFilter; } /// @@ -146,7 +169,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? comparisonFilter = null, - global::System.Func? compoundFilterVariant2 = null, + global::System.Func? compoundFilter = null, bool validate = true) { if (validate) @@ -154,13 +177,13 @@ public bool Validate() Validate(); } - if (IsComparisonFilter && comparisonFilter != null) + if (ComparisonFilter is { } __value0 && comparisonFilter != null) { - return comparisonFilter(ComparisonFilter!); + return comparisonFilter(__value0); } - else if (IsCompoundFilterVariant2 && compoundFilterVariant2 != null) + else if (CompoundFilter is { } __value1 && compoundFilter != null) { - return compoundFilterVariant2(CompoundFilterVariant2!); + return compoundFilter(__value1); } return default(TResult); @@ -172,7 +195,7 @@ public bool Validate() public void Match( global::System.Action? comparisonFilter = null, - global::System.Action? compoundFilterVariant2 = null, + global::System.Action? compoundFilter = null, bool validate = true) { if (validate) @@ -180,13 +203,13 @@ public void Match( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsCompoundFilterVariant2) + else if (CompoundFilter is { } __value1) { - compoundFilterVariant2?.Invoke(CompoundFilterVariant2!); + compoundFilter?.Invoke(__value1); } } @@ -195,7 +218,7 @@ public void Match( /// public void Switch( global::System.Action? comparisonFilter = null, - global::System.Action? compoundFilterVariant2 = null, + global::System.Action? compoundFilter = null, bool validate = true) { if (validate) @@ -203,13 +226,13 @@ public void Switch( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsCompoundFilterVariant2) + else if (CompoundFilter is { } __value1) { - compoundFilterVariant2?.Invoke(CompoundFilterVariant2!); + compoundFilter?.Invoke(__value1); } } @@ -222,8 +245,8 @@ public override int GetHashCode() { ComparisonFilter, typeof(global::tryAGI.OpenAI.ComparisonFilter), - CompoundFilterVariant2, - typeof(object), + CompoundFilter, + typeof(global::tryAGI.OpenAI.CompoundFilter), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -241,7 +264,7 @@ public bool Equals(FiltersItem other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ComparisonFilter, other.ComparisonFilter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CompoundFilterVariant2, other.CompoundFilterVariant2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompoundFilter, other.CompoundFilter) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem2.g.cs index 1de76cf82..11f53d530 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem2.g.cs @@ -42,46 +42,46 @@ public bool TryPickComparisonFilter( /// /// /// - public global::tryAGI.OpenAI.BetaComparisonFilter PickComparisonFilter() => IsComparisonFilter - ? ComparisonFilter! + public global::tryAGI.OpenAI.BetaComparisonFilter PickComparisonFilter() => ComparisonFilter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComparisonFilter' but the value was {ToString()}."); /// - /// + /// Combine multiple filters using `and` or `or`. /// #if NET6_0_OR_GREATER - public object? BetaCompoundFilterVariant2 { get; init; } + public global::tryAGI.OpenAI.BetaCompoundFilter? CompoundFilter { get; init; } #else - public object? BetaCompoundFilterVariant2 { get; } + public global::tryAGI.OpenAI.BetaCompoundFilter? CompoundFilter { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BetaCompoundFilterVariant2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompoundFilter))] #endif - public bool IsBetaCompoundFilterVariant2 => BetaCompoundFilterVariant2 != null; + public bool IsCompoundFilter => CompoundFilter != null; /// /// /// - public bool TryPickBetaCompoundFilterVariant2( + public bool TryPickCompoundFilter( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out object? value) + out global::tryAGI.OpenAI.BetaCompoundFilter? value) { - value = BetaCompoundFilterVariant2; - return IsBetaCompoundFilterVariant2; + value = CompoundFilter; + return IsCompoundFilter; } /// /// /// - public object PickBetaCompoundFilterVariant2() => IsBetaCompoundFilterVariant2 - ? BetaCompoundFilterVariant2! - : throw new global::System.InvalidOperationException($"Expected union variant 'BetaCompoundFilterVariant2' but the value was {ToString()}."); + public global::tryAGI.OpenAI.BetaCompoundFilter PickCompoundFilter() => CompoundFilter is { } value + ? value + : throw new global::System.InvalidOperationException($"Expected union variant 'CompoundFilter' but the value was {ToString()}."); /// /// /// @@ -105,23 +105,46 @@ public FiltersItem2(global::tryAGI.OpenAI.BetaComparisonFilter? value) /// public static FiltersItem2 FromComparisonFilter(global::tryAGI.OpenAI.BetaComparisonFilter? value) => new FiltersItem2(value); + /// + /// + /// + public static implicit operator FiltersItem2(global::tryAGI.OpenAI.BetaCompoundFilter value) => new FiltersItem2((global::tryAGI.OpenAI.BetaCompoundFilter?)value); + + /// + /// + /// + public static implicit operator global::tryAGI.OpenAI.BetaCompoundFilter?(FiltersItem2 @this) => @this.CompoundFilter; + + /// + /// + /// + public FiltersItem2(global::tryAGI.OpenAI.BetaCompoundFilter? value) + { + CompoundFilter = value; + } + + /// + /// + /// + public static FiltersItem2 FromCompoundFilter(global::tryAGI.OpenAI.BetaCompoundFilter? value) => new FiltersItem2(value); + /// /// /// public FiltersItem2( global::tryAGI.OpenAI.BetaComparisonFilter? comparisonFilter, - object? betaCompoundFilterVariant2 + global::tryAGI.OpenAI.BetaCompoundFilter? compoundFilter ) { ComparisonFilter = comparisonFilter; - BetaCompoundFilterVariant2 = betaCompoundFilterVariant2; + CompoundFilter = compoundFilter; } /// /// /// public object? Object => - BetaCompoundFilterVariant2 as object ?? + CompoundFilter as object ?? ComparisonFilter as object ; @@ -130,7 +153,7 @@ ComparisonFilter as object /// public override string? ToString() => ComparisonFilter?.ToString() ?? - BetaCompoundFilterVariant2?.ToString() + CompoundFilter?.ToString() ; /// @@ -138,7 +161,7 @@ ComparisonFilter as object /// public bool Validate() { - return IsComparisonFilter && !IsBetaCompoundFilterVariant2 || !IsComparisonFilter && IsBetaCompoundFilterVariant2; + return IsComparisonFilter && !IsCompoundFilter || !IsComparisonFilter && IsCompoundFilter; } /// @@ -146,7 +169,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? comparisonFilter = null, - global::System.Func? betaCompoundFilterVariant2 = null, + global::System.Func? compoundFilter = null, bool validate = true) { if (validate) @@ -154,13 +177,13 @@ public bool Validate() Validate(); } - if (IsComparisonFilter && comparisonFilter != null) + if (ComparisonFilter is { } __value0 && comparisonFilter != null) { - return comparisonFilter(ComparisonFilter!); + return comparisonFilter(__value0); } - else if (IsBetaCompoundFilterVariant2 && betaCompoundFilterVariant2 != null) + else if (CompoundFilter is { } __value1 && compoundFilter != null) { - return betaCompoundFilterVariant2(BetaCompoundFilterVariant2!); + return compoundFilter(__value1); } return default(TResult); @@ -172,7 +195,7 @@ public bool Validate() public void Match( global::System.Action? comparisonFilter = null, - global::System.Action? betaCompoundFilterVariant2 = null, + global::System.Action? compoundFilter = null, bool validate = true) { if (validate) @@ -180,13 +203,13 @@ public void Match( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsBetaCompoundFilterVariant2) + else if (CompoundFilter is { } __value1) { - betaCompoundFilterVariant2?.Invoke(BetaCompoundFilterVariant2!); + compoundFilter?.Invoke(__value1); } } @@ -195,7 +218,7 @@ public void Match( /// public void Switch( global::System.Action? comparisonFilter = null, - global::System.Action? betaCompoundFilterVariant2 = null, + global::System.Action? compoundFilter = null, bool validate = true) { if (validate) @@ -203,13 +226,13 @@ public void Switch( Validate(); } - if (IsComparisonFilter) + if (ComparisonFilter is { } __value0) { - comparisonFilter?.Invoke(ComparisonFilter!); + comparisonFilter?.Invoke(__value0); } - else if (IsBetaCompoundFilterVariant2) + else if (CompoundFilter is { } __value1) { - betaCompoundFilterVariant2?.Invoke(BetaCompoundFilterVariant2!); + compoundFilter?.Invoke(__value1); } } @@ -222,8 +245,8 @@ public override int GetHashCode() { ComparisonFilter, typeof(global::tryAGI.OpenAI.BetaComparisonFilter), - BetaCompoundFilterVariant2, - typeof(object), + CompoundFilter, + typeof(global::tryAGI.OpenAI.BetaCompoundFilter), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -241,7 +264,7 @@ public bool Equals(FiltersItem2 other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ComparisonFilter, other.ComparisonFilter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(BetaCompoundFilterVariant2, other.BetaCompoundFilterVariant2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompoundFilter, other.CompoundFilter) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs index 0585d2775..3b3ae0a3c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuneChatCompletionRequestAssistantMessage.g.cs @@ -42,8 +42,8 @@ public bool TryPickAssistantMessage1( /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage PickAssistantMessage1() => IsAssistantMessage1 - ? AssistantMessage1! + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage PickAssistantMessage1() => AssistantMessage1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssistantMessage1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickAssistantMessage2( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage PickAssistantMessage2() => IsAssistantMessage2 - ? AssistantMessage2! + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage PickAssistantMessage2() => AssistantMessage2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssistantMessage2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsAssistantMessage1 && assistantMessage1 != null) + if (AssistantMessage1 is { } __value0 && assistantMessage1 != null) { - return assistantMessage1(AssistantMessage1!); + return assistantMessage1(__value0); } - else if (IsAssistantMessage2 && assistantMessage2 != null) + else if (AssistantMessage2 is { } __value1 && assistantMessage2 != null) { - return assistantMessage2(AssistantMessage2!); + return assistantMessage2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsAssistantMessage1) + if (AssistantMessage1 is { } __value0) { - assistantMessage1?.Invoke(AssistantMessage1!); + assistantMessage1?.Invoke(__value0); } - else if (IsAssistantMessage2) + else if (AssistantMessage2 is { } __value1) { - assistantMessage2?.Invoke(AssistantMessage2!); + assistantMessage2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsAssistantMessage1) + if (AssistantMessage1 is { } __value0) { - assistantMessage1?.Invoke(AssistantMessage1!); + assistantMessage1?.Invoke(__value0); } - else if (IsAssistantMessage2) + else if (AssistantMessage2 is { } __value1) { - assistantMessage2?.Invoke(AssistantMessage2!); + assistantMessage2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs index 839dbd572..1db34cc47 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJob.g.cs @@ -26,7 +26,9 @@ public sealed partial class FineTuningJob /// /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::tryAGI.OpenAI.FineTuningJobError? Error { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnyOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::tryAGI.OpenAI.AnyOf Error { get; set; } /// /// @@ -44,8 +46,7 @@ public sealed partial class FineTuningJob /// The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs. /// [global::System.Text.Json.Serialization.JsonPropertyName("hyperparameters")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.FineTuningJobHyperparameters Hyperparameters { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Hyperparameters { get; set; } /// /// The base model that is being fine-tuned. @@ -76,7 +77,7 @@ public sealed partial class FineTuningJob public required global::System.Collections.Generic.IList ResultFiles { get; set; } /// - /// The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`. + /// The current status of the fine-tuning job, which can be `validating_files`, `queued`, `running`, `pausing`, `paused`, `succeeded`, `failed`, or `cancelled`. /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobStatusJsonConverter))] @@ -112,8 +113,7 @@ public sealed partial class FineTuningJob /// The seed used for the fine-tuning job. /// [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Seed { get; set; } + public int? Seed { get; set; } /// /// @@ -122,7 +122,7 @@ public sealed partial class FineTuningJob public int? EstimatedFinish { get; set; } /// - /// The method used for fine-tuning. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("method")] public global::tryAGI.OpenAI.FineTuneMethod? Method { get; set; } @@ -148,9 +148,7 @@ public sealed partial class FineTuningJob /// /// The Unix timestamp (in seconds) for when the fine-tuning job was created. /// - /// - /// The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs. - /// + /// /// /// The base model that is being fine-tuned. /// @@ -161,27 +159,27 @@ public sealed partial class FineTuningJob /// The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](https://developers.openai.com/api/reference/resources/files/methods/content). /// /// - /// The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`. + /// The current status of the fine-tuning job, which can be `validating_files`, `queued`, `running`, `pausing`, `paused`, `succeeded`, `failed`, or `cancelled`. /// /// /// The file ID used for training. You can retrieve the training data with the [Files API](https://developers.openai.com/api/reference/resources/files/methods/content). /// - /// - /// The seed used for the fine-tuning job. - /// - /// /// /// + /// + /// The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs. + /// /// /// The object type, which is always "fine_tuning.job". /// /// /// /// - /// - /// - /// The method used for fine-tuning. + /// + /// The seed used for the fine-tuning job. /// + /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -189,20 +187,20 @@ public sealed partial class FineTuningJob public FineTuningJob( string id, int createdAt, - global::tryAGI.OpenAI.FineTuningJobHyperparameters hyperparameters, + global::tryAGI.OpenAI.AnyOf error, string model, string organizationId, global::System.Collections.Generic.IList resultFiles, global::tryAGI.OpenAI.FineTuningJobStatus status, string trainingFile, - int seed, - global::tryAGI.OpenAI.FineTuningJobError? error, string? fineTunedModel, int? finishedAt, + global::tryAGI.OpenAI.FineTuningJobHyperparameters? hyperparameters, global::tryAGI.OpenAI.FineTuningJobObject @object, int? trainedTokens, string? validationFile, global::System.Collections.Generic.IList? integrations, + int? seed, int? estimatedFinish, global::tryAGI.OpenAI.FineTuneMethod? method, global::System.Collections.Generic.Dictionary? metadata) @@ -212,7 +210,7 @@ public FineTuningJob( this.Error = error; this.FineTunedModel = fineTunedModel; this.FinishedAt = finishedAt; - this.Hyperparameters = hyperparameters ?? throw new global::System.ArgumentNullException(nameof(hyperparameters)); + this.Hyperparameters = hyperparameters; this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Object = @object; this.OrganizationId = organizationId ?? throw new global::System.ArgumentNullException(nameof(organizationId)); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.Json.g.cs similarity index 86% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.Json.g.cs index 4f79f0dc0..b39bcc07f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.BetaCompoundFilterFilterVariant2.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class BetaCompoundFilterFilterVariant2 + public sealed partial class FineTuningJobErrorVariant1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2? FromJson( + public static global::tryAGI.OpenAI.FineTuningJobErrorVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2), - jsonSerializerContext) as global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2; + typeof(global::tryAGI.OpenAI.FineTuningJobErrorVariant1), + jsonSerializerContext) as global::tryAGI.OpenAI.FineTuningJobErrorVariant1; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2? FromJson( + public static global::tryAGI.OpenAI.FineTuningJobErrorVariant1? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2? FromJson( + public static global::tryAGI.OpenAI.FineTuningJobErrorVariant1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.BetaCompoundFilterFilterVariant2; + typeof(global::tryAGI.OpenAI.FineTuningJobErrorVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.FineTuningJobErrorVariant1; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.g.cs similarity index 91% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobError.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.g.cs index 8165f5e71..3e0651f0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobError.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant1.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// For fine-tuning jobs that have `failed`, this will contain more information on the cause of the failure. /// - public sealed partial class FineTuningJobError + public sealed partial class FineTuningJobErrorVariant1 { /// /// A machine-readable error code. @@ -35,7 +35,7 @@ public sealed partial class FineTuningJobError public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A machine-readable error code. @@ -47,7 +47,7 @@ public sealed partial class FineTuningJobError #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public FineTuningJobError( + public FineTuningJobErrorVariant1( string code, string message, string? param) @@ -58,9 +58,9 @@ public FineTuningJobError( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public FineTuningJobError() + public FineTuningJobErrorVariant1() { } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.Json.g.cs new file mode 100644 index 000000000..b5a6b4c01 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace tryAGI.OpenAI +{ + public sealed partial class FineTuningJobErrorVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.FineTuningJobErrorVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::tryAGI.OpenAI.FineTuningJobErrorVariant3), + jsonSerializerContext) as global::tryAGI.OpenAI.FineTuningJobErrorVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::tryAGI.OpenAI.FineTuningJobErrorVariant3? FromJson( + string json) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::tryAGI.OpenAI.FineTuningJobErrorVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::tryAGI.OpenAI.FineTuningJobErrorVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.FineTuningJobErrorVariant3; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::tryAGI.OpenAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.g.cs similarity index 88% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.g.cs index 570f655c4..165ae2398 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CompoundFilterFilterVariant2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobErrorVariant3.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// /// - public sealed partial class CompoundFilterFilterVariant2 + public sealed partial class FineTuningJobErrorVariant3 { /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobStatus.g.cs index 6dce53f06..bcd04b011 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobStatus.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FineTuningJobStatus.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`. + /// The current status of the fine-tuning job, which can be `validating_files`, `queued`, `running`, `pausing`, `paused`, `succeeded`, `failed`, or `cancelled`. /// public enum FineTuningJobStatus { @@ -19,6 +19,14 @@ public enum FineTuningJobStatus /// /// /// + Paused, + /// + /// + /// + Pausing, + /// + /// + /// Queued, /// /// @@ -48,6 +56,8 @@ public static string ToValueString(this FineTuningJobStatus value) { FineTuningJobStatus.Cancelled => "cancelled", FineTuningJobStatus.Failed => "failed", + FineTuningJobStatus.Paused => "paused", + FineTuningJobStatus.Pausing => "pausing", FineTuningJobStatus.Queued => "queued", FineTuningJobStatus.Running => "running", FineTuningJobStatus.Succeeded => "succeeded", @@ -64,6 +74,8 @@ public static string ToValueString(this FineTuningJobStatus value) { "cancelled" => FineTuningJobStatus.Cancelled, "failed" => FineTuningJobStatus.Failed, + "paused" => FineTuningJobStatus.Paused, + "pausing" => FineTuningJobStatus.Pausing, "queued" => FineTuningJobStatus.Queued, "running" => FineTuningJobStatus.Running, "succeeded" => FineTuningJobStatus.Succeeded, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs index 42b7443c0..ad5585bd2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParam PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.CustomTextFormatParam PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickGrammar( /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam PickGrammar() => IsGrammar - ? Grammar! + public global::tryAGI.OpenAI.CustomGrammarFormatParam PickGrammar() => Grammar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Grammar' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsGrammar && grammar != null) + else if (Grammar is { } __value1 && grammar != null) { - return grammar(Grammar!); + return grammar(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsGrammar) + else if (Grammar is { } __value1) { - grammar?.Invoke(Grammar!); + grammar?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsGrammar) + else if (Grammar is { } __value1) { - grammar?.Invoke(Grammar!); + grammar?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format3.g.cs index 588d7637f..0c348fd99 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format3.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.BetaCustomTextFormatParam PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.BetaCustomTextFormatParam PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickGrammar( /// /// /// - public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam PickGrammar() => IsGrammar - ? Grammar! + public global::tryAGI.OpenAI.BetaCustomGrammarFormatParam PickGrammar() => Grammar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Grammar' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsGrammar && grammar != null) + else if (Grammar is { } __value1 && grammar != null) { - return grammar(Grammar!); + return grammar(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsGrammar) + else if (Grammar is { } __value1) { - grammar?.Invoke(Grammar!); + grammar?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsGrammar) + else if (Grammar is { } __value1) { - grammar?.Invoke(Grammar!); + grammar?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs index 78724f4e2..30502fa28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.InputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.InputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputParam.g.cs index 553363bf1..22291734e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputParam.g.cs @@ -42,8 +42,8 @@ public bool TryPickFunctionCallOutputParamVariant1( /// /// /// - public string PickFunctionCallOutputParamVariant1() => IsFunctionCallOutputParamVariant1 - ? FunctionCallOutputParamVariant1! + public string PickFunctionCallOutputParamVariant1() => FunctionCallOutputParamVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutputParamVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFunctionCallOutputParamVariant2( /// /// /// - public global::System.Collections.Generic.IList PickFunctionCallOutputParamVariant2() => IsFunctionCallOutputParamVariant2 - ? FunctionCallOutputParamVariant2! + public global::System.Collections.Generic.IList PickFunctionCallOutputParamVariant2() => FunctionCallOutputParamVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutputParamVariant2' but the value was {ToString()}."); /// /// @@ -154,13 +154,13 @@ public bool Validate() Validate(); } - if (IsFunctionCallOutputParamVariant1 && functionCallOutputParamVariant1 != null) + if (FunctionCallOutputParamVariant1 is { } __value0 && functionCallOutputParamVariant1 != null) { - return functionCallOutputParamVariant1(FunctionCallOutputParamVariant1!); + return functionCallOutputParamVariant1(__value0); } - else if (IsFunctionCallOutputParamVariant2 && functionCallOutputParamVariant2 != null) + else if (FunctionCallOutputParamVariant2 is { } __value1 && functionCallOutputParamVariant2 != null) { - return functionCallOutputParamVariant2(FunctionCallOutputParamVariant2!); + return functionCallOutputParamVariant2(__value1); } return default(TResult); @@ -180,13 +180,13 @@ public void Match( Validate(); } - if (IsFunctionCallOutputParamVariant1) + if (FunctionCallOutputParamVariant1 is { } __value0) { - functionCallOutputParamVariant1?.Invoke(FunctionCallOutputParamVariant1!); + functionCallOutputParamVariant1?.Invoke(__value0); } - else if (IsFunctionCallOutputParamVariant2) + else if (FunctionCallOutputParamVariant2 is { } __value1) { - functionCallOutputParamVariant2?.Invoke(FunctionCallOutputParamVariant2!); + functionCallOutputParamVariant2?.Invoke(__value1); } } @@ -203,13 +203,13 @@ public void Switch( Validate(); } - if (IsFunctionCallOutputParamVariant1) + if (FunctionCallOutputParamVariant1 is { } __value0) { - functionCallOutputParamVariant1?.Invoke(FunctionCallOutputParamVariant1!); + functionCallOutputParamVariant1?.Invoke(__value0); } - else if (IsFunctionCallOutputParamVariant2) + else if (FunctionCallOutputParamVariant2 is { } __value1) { - functionCallOutputParamVariant2?.Invoke(FunctionCallOutputParamVariant2!); + functionCallOutputParamVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputResource.g.cs index 4de85e9b7..dded6d0e0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickFunctionCallOutputResourceVariant1( /// /// /// - public string PickFunctionCallOutputResourceVariant1() => IsFunctionCallOutputResourceVariant1 - ? FunctionCallOutputResourceVariant1! + public string PickFunctionCallOutputResourceVariant1() => FunctionCallOutputResourceVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutputResourceVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFunctionCallOutputResourceVariant2( /// /// /// - public global::System.Collections.Generic.IList PickFunctionCallOutputResourceVariant2() => IsFunctionCallOutputResourceVariant2 - ? FunctionCallOutputResourceVariant2! + public global::System.Collections.Generic.IList PickFunctionCallOutputResourceVariant2() => FunctionCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -154,13 +154,13 @@ public bool Validate() Validate(); } - if (IsFunctionCallOutputResourceVariant1 && functionCallOutputResourceVariant1 != null) + if (FunctionCallOutputResourceVariant1 is { } __value0 && functionCallOutputResourceVariant1 != null) { - return functionCallOutputResourceVariant1(FunctionCallOutputResourceVariant1!); + return functionCallOutputResourceVariant1(__value0); } - else if (IsFunctionCallOutputResourceVariant2 && functionCallOutputResourceVariant2 != null) + else if (FunctionCallOutputResourceVariant2 is { } __value1 && functionCallOutputResourceVariant2 != null) { - return functionCallOutputResourceVariant2(FunctionCallOutputResourceVariant2!); + return functionCallOutputResourceVariant2(__value1); } return default(TResult); @@ -180,13 +180,13 @@ public void Match( Validate(); } - if (IsFunctionCallOutputResourceVariant1) + if (FunctionCallOutputResourceVariant1 is { } __value0) { - functionCallOutputResourceVariant1?.Invoke(FunctionCallOutputResourceVariant1!); + functionCallOutputResourceVariant1?.Invoke(__value0); } - else if (IsFunctionCallOutputResourceVariant2) + else if (FunctionCallOutputResourceVariant2 is { } __value1) { - functionCallOutputResourceVariant2?.Invoke(FunctionCallOutputResourceVariant2!); + functionCallOutputResourceVariant2?.Invoke(__value1); } } @@ -203,13 +203,13 @@ public void Switch( Validate(); } - if (IsFunctionCallOutputResourceVariant1) + if (FunctionCallOutputResourceVariant1 is { } __value0) { - functionCallOutputResourceVariant1?.Invoke(FunctionCallOutputResourceVariant1!); + functionCallOutputResourceVariant1?.Invoke(__value0); } - else if (IsFunctionCallOutputResourceVariant2) + else if (FunctionCallOutputResourceVariant2 is { } __value1) { - functionCallOutputResourceVariant2?.Invoke(FunctionCallOutputResourceVariant2!); + functionCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs index e4418ceee..079ce25d1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickTimeout( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam PickTimeout() => IsTimeout - ? Timeout! + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam PickTimeout() => Timeout is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Timeout' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickExit( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam PickExit() => IsExit - ? Exit! + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam PickExit() => Exit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Exit' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsTimeout && timeout != null) + if (Timeout is { } __value0 && timeout != null) { - return timeout(Timeout!); + return timeout(__value0); } - else if (IsExit && exit != null) + else if (Exit is { } __value1 && exit != null) { - return exit(Exit!); + return exit(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs index e6a470846..94b145a25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickFunctionToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput PickFunctionToolCallOutput() => IsFunctionToolCallOutput - ? FunctionToolCallOutput! + public global::tryAGI.OpenAI.FunctionToolCallOutput PickFunctionToolCallOutput() => FunctionToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallOutput' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFunctionToolCallOutputResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2 PickFunctionToolCallOutputResourceVariant2() => IsFunctionToolCallOutputResourceVariant2 - ? FunctionToolCallOutputResourceVariant2! + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2 PickFunctionToolCallOutputResourceVariant2() => FunctionToolCallOutputResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallOutputResourceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsFunctionToolCallOutput && functionToolCallOutput != null) + if (FunctionToolCallOutput is { } __value0 && functionToolCallOutput != null) { - return functionToolCallOutput(FunctionToolCallOutput!); + return functionToolCallOutput(__value0); } - else if (IsFunctionToolCallOutputResourceVariant2 && functionToolCallOutputResourceVariant2 != null) + else if (FunctionToolCallOutputResourceVariant2 is { } __value1 && functionToolCallOutputResourceVariant2 != null) { - return functionToolCallOutputResourceVariant2(FunctionToolCallOutputResourceVariant2!); + return functionToolCallOutputResourceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsFunctionToolCallOutput) + if (FunctionToolCallOutput is { } __value0) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value0); } - else if (IsFunctionToolCallOutputResourceVariant2) + else if (FunctionToolCallOutputResourceVariant2 is { } __value1) { - functionToolCallOutputResourceVariant2?.Invoke(FunctionToolCallOutputResourceVariant2!); + functionToolCallOutputResourceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsFunctionToolCallOutput) + if (FunctionToolCallOutput is { } __value0) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value0); } - else if (IsFunctionToolCallOutputResourceVariant2) + else if (FunctionToolCallOutputResourceVariant2 is { } __value1) { - functionToolCallOutputResourceVariant2?.Invoke(FunctionToolCallOutputResourceVariant2!); + functionToolCallOutputResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs index 6d50aac0b..547ee6c95 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs @@ -43,8 +43,8 @@ public bool TryPickFunctionToolCall( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall PickFunctionToolCall() => IsFunctionToolCall - ? FunctionToolCall! + public global::tryAGI.OpenAI.FunctionToolCall PickFunctionToolCall() => FunctionToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCall' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickFunctionToolCallResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2 PickFunctionToolCallResourceVariant2() => IsFunctionToolCallResourceVariant2 - ? FunctionToolCallResourceVariant2! + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2 PickFunctionToolCallResourceVariant2() => FunctionToolCallResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallResourceVariant2' but the value was {ToString()}."); /// /// @@ -178,13 +178,13 @@ public bool Validate() Validate(); } - if (IsFunctionToolCall && functionToolCall != null) + if (FunctionToolCall is { } __value0 && functionToolCall != null) { - return functionToolCall(FunctionToolCall!); + return functionToolCall(__value0); } - else if (IsFunctionToolCallResourceVariant2 && functionToolCallResourceVariant2 != null) + else if (FunctionToolCallResourceVariant2 is { } __value1 && functionToolCallResourceVariant2 != null) { - return functionToolCallResourceVariant2(FunctionToolCallResourceVariant2!); + return functionToolCallResourceVariant2(__value1); } return default(TResult); @@ -204,13 +204,13 @@ public void Match( Validate(); } - if (IsFunctionToolCall) + if (FunctionToolCall is { } __value0) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value0); } - else if (IsFunctionToolCallResourceVariant2) + else if (FunctionToolCallResourceVariant2 is { } __value1) { - functionToolCallResourceVariant2?.Invoke(FunctionToolCallResourceVariant2!); + functionToolCallResourceVariant2?.Invoke(__value1); } } @@ -227,13 +227,13 @@ public void Switch( Validate(); } - if (IsFunctionToolCall) + if (FunctionToolCall is { } __value0) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value0); } - else if (IsFunctionToolCallResourceVariant2) + else if (FunctionToolCallResourceVariant2 is { } __value1) { - functionToolCallResourceVariant2?.Invoke(FunctionToolCallResourceVariant2!); + functionToolCallResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileParam.g.cs index deb161d05..698ff6221 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickFileId( /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId PickFileId() => IsFileId - ? FileId! + public global::tryAGI.OpenAI.HostedEnvironmentFileParamFileId PickFileId() => FileId is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileId' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedEnvironmentFileParamInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFileId && fileId != null) + if (FileId is { } __value0 && fileId != null) { - return fileId(FileId!); + return fileId(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFileId) + if (FileId is { } __value0) { - fileId?.Invoke(FileId!); + fileId?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFileId) + if (FileId is { } __value0) { - fileId?.Invoke(FileId!); + fileId?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileResource.g.cs index d8cb0cecf..994edbad2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedEnvironmentFileResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickFileId( /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId PickFileId() => IsFileId - ? FileId! + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceFileId PickFileId() => FileId is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileId' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedEnvironmentFileResourceInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFileId && fileId != null) + if (FileId is { } __value0 && fileId != null) { - return fileId(FileId!); + return fileId(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFileId) + if (FileId is { } __value0) { - fileId?.Invoke(FileId!); + fileId?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFileId) + if (FileId is { } __value0) { - fileId?.Invoke(FileId!); + fileId?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginParam.g.cs index c7fedf63f..4a3319390 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedPluginParamInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedPluginParamInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -120,9 +120,9 @@ public bool Validate() Validate(); } - if (IsInline && inline != null) + if (Inline is { } __value0 && inline != null) { - return inline(Inline!); + return inline(__value0); } return default(TResult); @@ -140,9 +140,9 @@ public void Match( Validate(); } - if (IsInline) + if (Inline is { } __value0) { - inline?.Invoke(Inline!); + inline?.Invoke(__value0); } } @@ -158,9 +158,9 @@ public void Switch( Validate(); } - if (IsInline) + if (Inline is { } __value0) { - inline?.Invoke(Inline!); + inline?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginResource.g.cs index 16fcdc11d..e80205bff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedPluginResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedPluginResourceInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedPluginResourceInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -120,9 +120,9 @@ public bool Validate() Validate(); } - if (IsInline && inline != null) + if (Inline is { } __value0 && inline != null) { - return inline(Inline!); + return inline(__value0); } return default(TResult); @@ -140,9 +140,9 @@ public void Match( Validate(); } - if (IsInline) + if (Inline is { } __value0) { - inline?.Invoke(Inline!); + inline?.Invoke(__value0); } } @@ -158,9 +158,9 @@ public void Switch( Validate(); } - if (IsInline) + if (Inline is { } __value0) { - inline?.Invoke(Inline!); + inline?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillParam.g.cs index 0dc6c52f8..5c1acab5d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickSkillReference( /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamSkillReference PickSkillReference() => IsSkillReference - ? SkillReference! + public global::tryAGI.OpenAI.HostedSkillParamSkillReference PickSkillReference() => SkillReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SkillReference' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedSkillParamInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedSkillParamInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSkillReference && skillReference != null) + if (SkillReference is { } __value0 && skillReference != null) { - return skillReference(SkillReference!); + return skillReference(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillResource.g.cs index e7cc987dd..c3099a718 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedSkillResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickSkillReference( /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceSkillReference PickSkillReference() => IsSkillReference - ? SkillReference! + public global::tryAGI.OpenAI.HostedSkillResourceSkillReference PickSkillReference() => SkillReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SkillReference' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedSkillResourceInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedSkillResourceInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSkillReference && skillReference != null) + if (SkillReference is { } __value0 && skillReference != null) { - return skillReference(SkillReference!); + return skillReference(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateFileResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateFileResource.g.cs index b31da59dc..7d7b6cba7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateFileResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateFileResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickFileId( /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId PickFileId() => IsFileId - ? FileId! + public global::tryAGI.OpenAI.HostedTemplateFileResourceFileId PickFileId() => FileId is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileId' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedTemplateFileResourceInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedTemplateFileResourceInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFileId && fileId != null) + if (FileId is { } __value0 && fileId != null) { - return fileId(FileId!); + return fileId(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFileId) + if (FileId is { } __value0) { - fileId?.Invoke(FileId!); + fileId?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFileId) + if (FileId is { } __value0) { - fileId?.Invoke(FileId!); + fileId?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateSkillResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateSkillResource.g.cs index ded0c3391..df03edf03 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateSkillResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.HostedTemplateSkillResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickSkillReference( /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference PickSkillReference() => IsSkillReference - ? SkillReference! + public global::tryAGI.OpenAI.HostedTemplateSkillResourceSkillReference PickSkillReference() => SkillReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SkillReference' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.HostedTemplateSkillResourceInline PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSkillReference && skillReference != null) + if (SkillReference is { } __value0 && skillReference != null) { - return skillReference(SkillReference!); + return skillReference(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs index 537a1e0c3..9b7f34f42 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickImageEditPartialImage( /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent PickImageEditPartialImage() => IsImageEditPartialImage - ? ImageEditPartialImage! + public global::tryAGI.OpenAI.ImageEditPartialImageEvent PickImageEditPartialImage() => ImageEditPartialImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageEditPartialImage' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageEditCompleted( /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent PickImageEditCompleted() => IsImageEditCompleted - ? ImageEditCompleted! + public global::tryAGI.OpenAI.ImageEditCompletedEvent PickImageEditCompleted() => ImageEditCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageEditCompleted' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsImageEditPartialImage && imageEditPartialImage != null) + if (ImageEditPartialImage is { } __value0 && imageEditPartialImage != null) { - return imageEditPartialImage(ImageEditPartialImage!); + return imageEditPartialImage(__value0); } - else if (IsImageEditCompleted && imageEditCompleted != null) + else if (ImageEditCompleted is { } __value1 && imageEditCompleted != null) { - return imageEditCompleted(ImageEditCompleted!); + return imageEditCompleted(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsImageEditPartialImage) + if (ImageEditPartialImage is { } __value0) { - imageEditPartialImage?.Invoke(ImageEditPartialImage!); + imageEditPartialImage?.Invoke(__value0); } - else if (IsImageEditCompleted) + else if (ImageEditCompleted is { } __value1) { - imageEditCompleted?.Invoke(ImageEditCompleted!); + imageEditCompleted?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsImageEditPartialImage) + if (ImageEditPartialImage is { } __value0) { - imageEditPartialImage?.Invoke(ImageEditPartialImage!); + imageEditPartialImage?.Invoke(__value0); } - else if (IsImageEditCompleted) + else if (ImageEditCompleted is { } __value1) { - imageEditCompleted?.Invoke(ImageEditCompleted!); + imageEditCompleted?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs index 91820f679..bfa5fd526 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickImageGenerationPartialImage( /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent PickImageGenerationPartialImage() => IsImageGenerationPartialImage - ? ImageGenerationPartialImage! + public global::tryAGI.OpenAI.ImageGenPartialImageEvent PickImageGenerationPartialImage() => ImageGenerationPartialImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationPartialImage' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImageGenerationCompleted( /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent PickImageGenerationCompleted() => IsImageGenerationCompleted - ? ImageGenerationCompleted! + public global::tryAGI.OpenAI.ImageGenCompletedEvent PickImageGenerationCompleted() => ImageGenerationCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCompleted' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsImageGenerationPartialImage && imageGenerationPartialImage != null) + if (ImageGenerationPartialImage is { } __value0 && imageGenerationPartialImage != null) { - return imageGenerationPartialImage(ImageGenerationPartialImage!); + return imageGenerationPartialImage(__value0); } - else if (IsImageGenerationCompleted && imageGenerationCompleted != null) + else if (ImageGenerationCompleted is { } __value1 && imageGenerationCompleted != null) { - return imageGenerationCompleted(ImageGenerationCompleted!); + return imageGenerationCompleted(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsImageGenerationPartialImage) + if (ImageGenerationPartialImage is { } __value0) { - imageGenerationPartialImage?.Invoke(ImageGenerationPartialImage!); + imageGenerationPartialImage?.Invoke(__value0); } - else if (IsImageGenerationCompleted) + else if (ImageGenerationCompleted is { } __value1) { - imageGenerationCompleted?.Invoke(ImageGenerationCompleted!); + imageGenerationCompleted?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsImageGenerationPartialImage) + if (ImageGenerationPartialImage is { } __value0) { - imageGenerationPartialImage?.Invoke(ImageGenerationPartialImage!); + imageGenerationPartialImage?.Invoke(__value0); } - else if (IsImageGenerationCompleted) + else if (ImageGenerationCompleted is { } __value1) { - imageGenerationCompleted?.Invoke(ImageGenerationCompleted!); + imageGenerationCompleted?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InferenceOptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InferenceOptions.g.cs index fae9e0e72..826b3c9f3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InferenceOptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InferenceOptions.g.cs @@ -12,7 +12,7 @@ public sealed partial class InferenceOptions /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - public global::tryAGI.OpenAI.ToolChoice10? ToolChoice { get; set; } + public global::tryAGI.OpenAI.ToolChoice9? ToolChoice { get; set; } /// /// @@ -35,7 +35,7 @@ public sealed partial class InferenceOptions [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InferenceOptions( - global::tryAGI.OpenAI.ToolChoice10? toolChoice, + global::tryAGI.OpenAI.ToolChoice9? toolChoice, string? model) { this.ToolChoice = toolChoice; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InlineCapabilitySourceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InlineCapabilitySourceParam.g.cs index a7dd60a69..d5fc04985 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InlineCapabilitySourceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InlineCapabilitySourceParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickBase64( /// /// /// - public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64 PickBase64() => IsBase64 - ? Base64! + public global::tryAGI.OpenAI.InlineCapabilitySourceParamBase64 PickBase64() => Base64 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Base64' but the value was {ToString()}."); /// /// @@ -120,9 +120,9 @@ public bool Validate() Validate(); } - if (IsBase64 && base64 != null) + if (Base64 is { } __value0 && base64 != null) { - return base64(Base64!); + return base64(__value0); } return default(TResult); @@ -140,9 +140,9 @@ public void Match( Validate(); } - if (IsBase64) + if (Base64 is { } __value0) { - base64?.Invoke(Base64!); + base64?.Invoke(__value0); } } @@ -158,9 +158,9 @@ public void Switch( Validate(); } - if (IsBase64) + if (Base64 is { } __value0) { - base64?.Invoke(Base64!); + base64?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input.g.cs index d90ed8c86..4c07efd7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input.g.cs @@ -47,8 +47,8 @@ public bool TryPickModerationResults( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationResults PickModerationResults() => IsModerationResults - ? ModerationResults! + public global::tryAGI.OpenAI.ChatCompletionModerationResults PickModerationResults() => ModerationResults is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModerationResults' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ChatCompletionModerationError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsModerationResults && moderationResults != null) + if (ModerationResults is { } __value0 && moderationResults != null) { - return moderationResults(ModerationResults!); + return moderationResults(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsModerationResults) + if (ModerationResults is { } __value0) { - moderationResults?.Invoke(ModerationResults!); + moderationResults?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsModerationResults) + if (ModerationResults is { } __value0) { - moderationResults?.Invoke(ModerationResults!); + moderationResults?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input4.g.cs index e9c67ad2c..f46727bae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input4.g.cs @@ -47,8 +47,8 @@ public bool TryPickModerationResult( /// /// /// - public global::tryAGI.OpenAI.ModerationResultBody PickModerationResult() => IsModerationResult - ? ModerationResult! + public global::tryAGI.OpenAI.ModerationResultBody PickModerationResult() => ModerationResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModerationResult' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBody PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ModerationErrorBody PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsModerationResult && moderationResult != null) + if (ModerationResult is { } __value0 && moderationResult != null) { - return moderationResult(ModerationResult!); + return moderationResult(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input5.g.cs index cf43734db..e356805fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Input5.g.cs @@ -47,8 +47,8 @@ public bool TryPickModerationResult( /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBody PickModerationResult() => IsModerationResult - ? ModerationResult! + public global::tryAGI.OpenAI.BetaModerationResultBody PickModerationResult() => ModerationResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModerationResult' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBody PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.BetaModerationErrorBody PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsModerationResult && moderationResult != null) + if (ModerationResult is { } __value0 && moderationResult != null) { - return moderationResult(ModerationResult!); + return moderationResult(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs index da68ab256..ef715f641 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputTextContent PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputTextContent PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputImageContent PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputImageContent PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.InputFileContent PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.InputFileContent PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentParam.g.cs index 3fda37c6c..d5cf5a84f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputText PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputContentParamInputText PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputContentParamInputImage PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputContentParamInputImage PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentResource.g.cs index 25bf5a406..796ab0605 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputText PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputContentResourceInputText PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputContentResourceInputImage PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputContentResourceInputImage PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs index 4c5a2aefa..54b751ee2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItem.g.cs @@ -46,8 +46,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.EasyInputMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.EasyInputMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickItem( /// /// /// - public global::tryAGI.OpenAI.Item PickItem() => IsItem - ? Item!.Value + public global::tryAGI.OpenAI.Item PickItem() => Item is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Item' but the value was {ToString()}."); /// @@ -122,8 +122,8 @@ public bool TryPickCompactionTrigger( /// /// /// - public global::tryAGI.OpenAI.CompactionTriggerItemParam PickCompactionTrigger() => IsCompactionTrigger - ? CompactionTrigger! + public global::tryAGI.OpenAI.CompactionTriggerItemParam PickCompactionTrigger() => CompactionTrigger is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CompactionTrigger' but the value was {ToString()}."); /// @@ -159,8 +159,8 @@ public bool TryPickItemReference( /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParam PickItemReference() => IsItemReference - ? ItemReference! + public global::tryAGI.OpenAI.ItemReferenceParam PickItemReference() => ItemReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ItemReference' but the value was {ToString()}."); /// @@ -196,8 +196,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.ProgramItemParam PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.ProgramItemParam PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -233,8 +233,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.ProgramOutputItemParam PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.ProgramOutputItemParam PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// /// @@ -443,29 +443,29 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsItem && item != null) + else if (Item is { } __value1 && item != null) { - return item(Item!); + return item(__value1); } - else if (IsCompactionTrigger && compactionTrigger != null) + else if (CompactionTrigger is { } __value2 && compactionTrigger != null) { - return compactionTrigger(CompactionTrigger!); + return compactionTrigger(__value2); } - else if (IsItemReference && itemReference != null) + else if (ItemReference is { } __value3 && itemReference != null) { - return itemReference(ItemReference!); + return itemReference(__value3); } - else if (IsProgram && program != null) + else if (Program is { } __value4 && program != null) { - return program(Program!); + return program(__value4); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value5 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value5); } return default(TResult); @@ -493,29 +493,29 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsItem) + else if (Item is { } __value1) { - item?.Invoke(Item!); + item?.Invoke(__value1); } - else if (IsCompactionTrigger) + else if (CompactionTrigger is { } __value2) { - compactionTrigger?.Invoke(CompactionTrigger!); + compactionTrigger?.Invoke(__value2); } - else if (IsItemReference) + else if (ItemReference is { } __value3) { - itemReference?.Invoke(ItemReference!); + itemReference?.Invoke(__value3); } - else if (IsProgram) + else if (Program is { } __value4) { - program?.Invoke(Program!); + program?.Invoke(__value4); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value5) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value5); } } @@ -536,29 +536,29 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsItem) + else if (Item is { } __value1) { - item?.Invoke(Item!); + item?.Invoke(__value1); } - else if (IsCompactionTrigger) + else if (CompactionTrigger is { } __value2) { - compactionTrigger?.Invoke(CompactionTrigger!); + compactionTrigger?.Invoke(__value2); } - else if (IsItemReference) + else if (ItemReference is { } __value3) { - itemReference?.Invoke(ItemReference!); + itemReference?.Invoke(__value3); } - else if (IsProgram) + else if (Program is { } __value4) { - program?.Invoke(Program!); + program?.Invoke(__value4); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value5) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value5); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs index 3fd2f146a..0771c6c62 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs @@ -44,8 +44,8 @@ public bool TryPickInputMessage( /// /// /// - public global::tryAGI.OpenAI.InputMessage PickInputMessage() => IsInputMessage - ? InputMessage! + public global::tryAGI.OpenAI.InputMessage PickInputMessage() => InputMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputMessage' but the value was {ToString()}."); /// @@ -81,8 +81,8 @@ public bool TryPickInputMessageResourceVariant2( /// /// /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2 PickInputMessageResourceVariant2() => IsInputMessageResourceVariant2 - ? InputMessageResourceVariant2! + public global::tryAGI.OpenAI.InputMessageResourceVariant2 PickInputMessageResourceVariant2() => InputMessageResourceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputMessageResourceVariant2' but the value was {ToString()}."); /// /// @@ -179,13 +179,13 @@ public bool Validate() Validate(); } - if (IsInputMessage && inputMessage != null) + if (InputMessage is { } __value0 && inputMessage != null) { - return inputMessage(InputMessage!); + return inputMessage(__value0); } - else if (IsInputMessageResourceVariant2 && inputMessageResourceVariant2 != null) + else if (InputMessageResourceVariant2 is { } __value1 && inputMessageResourceVariant2 != null) { - return inputMessageResourceVariant2(InputMessageResourceVariant2!); + return inputMessageResourceVariant2(__value1); } return default(TResult); @@ -205,13 +205,13 @@ public void Match( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsInputMessageResourceVariant2) + else if (InputMessageResourceVariant2 is { } __value1) { - inputMessageResourceVariant2?.Invoke(InputMessageResourceVariant2!); + inputMessageResourceVariant2?.Invoke(__value1); } } @@ -228,13 +228,13 @@ public void Switch( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsInputMessageResourceVariant2) + else if (InputMessageResourceVariant2 is { } __value1) { - inputMessageResourceVariant2?.Invoke(InputMessageResourceVariant2!); + inputMessageResourceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs index c8297a230..a256efec9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputParam.g.cs @@ -49,8 +49,8 @@ public bool TryPickTextInput( /// /// /// - public string PickTextInput() => IsTextInput - ? TextInput! + public string PickTextInput() => TextInput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextInput' but the value was {ToString()}."); /// @@ -87,8 +87,8 @@ public bool TryPickInputItemList( /// /// /// - public global::System.Collections.Generic.IList PickInputItemList() => IsInputItemList - ? InputItemList! + public global::System.Collections.Generic.IList PickInputItemList() => InputItemList is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputItemList' but the value was {ToString()}."); /// /// @@ -162,13 +162,13 @@ public bool Validate() Validate(); } - if (IsTextInput && textInput != null) + if (TextInput is { } __value0 && textInput != null) { - return textInput(TextInput!); + return textInput(__value0); } - else if (IsInputItemList && inputItemList != null) + else if (InputItemList is { } __value1 && inputItemList != null) { - return inputItemList(InputItemList!); + return inputItemList(__value1); } return default(TResult); @@ -188,13 +188,13 @@ public void Match( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsInputItemList) + else if (InputItemList is { } __value1) { - inputItemList?.Invoke(InputItemList!); + inputItemList?.Invoke(__value1); } } @@ -211,13 +211,13 @@ public void Switch( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsInputItemList) + else if (InputItemList is { } __value1) { - inputItemList?.Invoke(InputItemList!); + inputItemList?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs index 49fc86b19..b99465237 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs @@ -49,8 +49,8 @@ public bool TryPickMessage1( /// /// /// - public global::tryAGI.OpenAI.InputMessage PickMessage1() => IsMessage1 - ? Message1! + public global::tryAGI.OpenAI.InputMessage PickMessage1() => Message1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message1' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickMessage2( /// /// /// - public global::tryAGI.OpenAI.OutputMessage PickMessage2() => IsMessage2 - ? Message2! + public global::tryAGI.OpenAI.OutputMessage PickMessage2() => Message2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message2' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -199,8 +199,8 @@ public bool TryPickComputerCallOutput( /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam PickComputerCallOutput() => IsComputerCallOutput - ? ComputerCallOutput! + public global::tryAGI.OpenAI.ComputerCallOutputItemParam PickComputerCallOutput() => ComputerCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCallOutput' but the value was {ToString()}."); /// @@ -237,8 +237,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -275,8 +275,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.FunctionToolCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -312,8 +312,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.FunctionCallOutputItemParam PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -349,8 +349,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParam PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.ToolSearchCallItemParam PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -386,8 +386,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParam PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.ToolSearchOutputItemParam PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -423,8 +423,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.AdditionalToolsItemParam PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.AdditionalToolsItemParam PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -462,8 +462,8 @@ public bool TryPickConfigurationUpdate( /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam PickConfigurationUpdate() => IsConfigurationUpdate - ? ConfigurationUpdate! + public global::tryAGI.OpenAI.ResponseConfigurationUpdateItemParam PickConfigurationUpdate() => ConfigurationUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConfigurationUpdate' but the value was {ToString()}."); /// @@ -502,8 +502,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -539,8 +539,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParam PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.CompactionSummaryItemParam PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -576,8 +576,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -613,8 +613,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -650,8 +650,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -687,8 +687,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -724,8 +724,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParam PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.FunctionShellCallItemParam PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -761,8 +761,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -798,8 +798,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -835,8 +835,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -872,8 +872,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -909,8 +909,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -946,8 +946,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponse PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.MCPApprovalResponse PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -983,8 +983,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1020,8 +1020,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// @@ -1057,8 +1057,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// /// @@ -1886,117 +1886,117 @@ public bool Validate() Validate(); } - if (IsMessage1 && message1 != null) + if (Message1 is { } __value0 && message1 != null) { - return message1(Message1!); + return message1(__value0); } - else if (IsMessage2 && message2 != null) + else if (Message2 is { } __value1 && message2 != null) { - return message2(Message2!); + return message2(__value1); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value2 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value2); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value3 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value3); } - else if (IsComputerCallOutput && computerCallOutput != null) + else if (ComputerCallOutput is { } __value4 && computerCallOutput != null) { - return computerCallOutput(ComputerCallOutput!); + return computerCallOutput(__value4); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value5 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value5); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value6 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value6); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value7 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value7); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value8 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value8); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value9 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value9); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value10 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value10); } - else if (IsConfigurationUpdate && configurationUpdate != null) + else if (ConfigurationUpdate is { } __value11 && configurationUpdate != null) { - return configurationUpdate(ConfigurationUpdate!); + return configurationUpdate(__value11); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value12 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value12); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value13 && compaction != null) { - return compaction(Compaction!); + return compaction(__value13); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value14 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value14); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value15 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value15); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value16 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value16); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value17 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value17); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value18 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value18); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value19 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value19); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value20 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value20); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value21 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value21); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value22 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value22); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value23 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value23); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value24 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value24); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value25 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value25); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value26 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value26); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value27 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value27); } return default(TResult); @@ -2068,117 +2068,117 @@ public void Match( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value4) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value6) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value6); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value7) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value7); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value8) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value8); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value9) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value9); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value10) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value10); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value11) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value11); } - else if (IsReasoning) + else if (Reasoning is { } __value12) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value12); } - else if (IsCompaction) + else if (Compaction is { } __value13) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value13); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value14) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value14); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value15) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value15); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value16) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value16); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value17) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value17); } - else if (IsShellCall) + else if (ShellCall is { } __value18) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value18); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value19) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value19); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value20) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value20); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value21) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value21); } - else if (IsMcpListTools) + else if (McpListTools is { } __value22) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value22); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value23) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value23); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value24) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value24); } - else if (IsMcpCall) + else if (McpCall is { } __value25) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value25); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value26) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value26); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value27) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value27); } } @@ -2221,117 +2221,117 @@ public void Switch( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value4) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value6) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value6); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value7) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value7); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value8) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value8); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value9) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value9); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value10) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value10); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value11) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value11); } - else if (IsReasoning) + else if (Reasoning is { } __value12) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value12); } - else if (IsCompaction) + else if (Compaction is { } __value13) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value13); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value14) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value14); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value15) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value15); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value16) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value16); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value17) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value17); } - else if (IsShellCall) + else if (ShellCall is { } __value18) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value18); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value19) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value19); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value20) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value20); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value21) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value21); } - else if (IsMcpListTools) + else if (McpListTools is { } __value22) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value22); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value23) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value23); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value24) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value24); } - else if (IsMcpCall) + else if (McpCall is { } __value25) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value25); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value26) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value26); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value27) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value27); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs index b9a22f252..9af02fd1d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemField.g.cs @@ -42,8 +42,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.Message PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.Message PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.Program PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.Program PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -154,8 +154,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.FunctionToolCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -191,8 +191,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -228,8 +228,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -265,8 +265,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -302,8 +302,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.FunctionToolCallOutput PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -340,8 +340,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -378,8 +378,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -415,8 +415,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -453,8 +453,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -490,8 +490,8 @@ public bool TryPickComputerToolCallOutputResource( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallOutputResource() => IsComputerToolCallOutputResource - ? ComputerToolCallOutputResource!.Value + public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallOutputResource() => ComputerToolCallOutputResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutputResource' but the value was {ToString()}."); /// @@ -530,8 +530,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -567,8 +567,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.CompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.CompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -604,8 +604,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.CustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// /// @@ -1874,117 +1874,117 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsProgram && program != null) + else if (Program is { } __value1 && program != null) { - return program(Program!); + return program(__value1); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value2 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value2); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value3 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value3); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value4 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value4); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value5 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value5); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value6 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value6); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value7 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value7); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value8 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value8); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value9 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value9); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value10 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value10); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value11 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value11); } - else if (IsComputerToolCallOutputResource && computerToolCallOutputResource != null) + else if (ComputerToolCallOutputResource is { } __value12 && computerToolCallOutputResource != null) { - return computerToolCallOutputResource(ComputerToolCallOutputResource!); + return computerToolCallOutputResource(__value12); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value13 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value13); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value14 && compaction != null) { - return compaction(Compaction!); + return compaction(__value14); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value15 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value15); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value16 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value16); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value17 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value17); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value18 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value18); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value19 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value19); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value20 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value20); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value21 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value21); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value22 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value22); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value23 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value23); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value24 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value24); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value25 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value25); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value26 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value26); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value27 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value27); } return default(TResult); @@ -2056,117 +2056,117 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value2) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value4) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value4); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value5) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value5); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value6) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value6); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value7) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value7); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value8) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value8); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value9) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value9); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value10) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value10); } - else if (IsComputerCall) + else if (ComputerCall is { } __value11) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value11); } - else if (IsComputerToolCallOutputResource) + else if (ComputerToolCallOutputResource is { } __value12) { - computerToolCallOutputResource?.Invoke(ComputerToolCallOutputResource!); + computerToolCallOutputResource?.Invoke(__value12); } - else if (IsReasoning) + else if (Reasoning is { } __value13) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value13); } - else if (IsCompaction) + else if (Compaction is { } __value14) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value14); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value15) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value15); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value16) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value16); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value17) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value17); } - else if (IsShellCall) + else if (ShellCall is { } __value18) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value18); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value19) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value19); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value20) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value20); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value21) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value21); } - else if (IsMcpListTools) + else if (McpListTools is { } __value22) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value22); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value23) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value23); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value24) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value24); } - else if (IsMcpCall) + else if (McpCall is { } __value25) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value25); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value26) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value26); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value27) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value27); } } @@ -2209,117 +2209,117 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value2) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value4) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value4); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value5) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value5); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value6) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value6); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value7) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value7); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value8) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value8); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value9) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value9); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value10) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value10); } - else if (IsComputerCall) + else if (ComputerCall is { } __value11) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value11); } - else if (IsComputerToolCallOutputResource) + else if (ComputerToolCallOutputResource is { } __value12) { - computerToolCallOutputResource?.Invoke(ComputerToolCallOutputResource!); + computerToolCallOutputResource?.Invoke(__value12); } - else if (IsReasoning) + else if (Reasoning is { } __value13) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value13); } - else if (IsCompaction) + else if (Compaction is { } __value14) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value14); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value15) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value15); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value16) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value16); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value17) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value17); } - else if (IsShellCall) + else if (ShellCall is { } __value18) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value18); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value19) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value19); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value20) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value20); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value21) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value21); } - else if (IsMcpListTools) + else if (McpListTools is { } __value22) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value22); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value23) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value23); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value24) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value24); } - else if (IsMcpCall) + else if (McpCall is { } __value25) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value25); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value26) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value26); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value27) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value27); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs index dda9851fe..d642e4ee4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResource.g.cs @@ -42,8 +42,8 @@ public bool TryPickInputMessage( /// /// /// - public global::tryAGI.OpenAI.InputMessageResource PickInputMessage() => IsInputMessage - ? InputMessage!.Value + public global::tryAGI.OpenAI.InputMessageResource PickInputMessage() => InputMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputMessage' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.OutputMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.OutputMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -117,8 +117,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -155,8 +155,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -192,8 +192,8 @@ public bool TryPickComputerToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallOutput() => IsComputerToolCallOutput - ? ComputerToolCallOutput!.Value + public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallOutput() => ComputerToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallOutput' but the value was {ToString()}."); /// @@ -230,8 +230,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -267,8 +267,8 @@ public bool TryPickFunctionToolCall( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResource PickFunctionToolCall() => IsFunctionToolCall - ? FunctionToolCall!.Value + public global::tryAGI.OpenAI.FunctionToolCallResource PickFunctionToolCall() => FunctionToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCall' but the value was {ToString()}."); /// @@ -304,8 +304,8 @@ public bool TryPickFunctionToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource PickFunctionToolCallOutput() => IsFunctionToolCallOutput - ? FunctionToolCallOutput!.Value + public global::tryAGI.OpenAI.FunctionToolCallOutputResource PickFunctionToolCallOutput() => FunctionToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallOutput' but the value was {ToString()}."); /// @@ -341,8 +341,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -378,8 +378,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -415,8 +415,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -453,8 +453,8 @@ public bool TryPickConfigurationUpdate( /// /// /// - public global::tryAGI.OpenAI.ResponseConfigurationUpdate PickConfigurationUpdate() => IsConfigurationUpdate - ? ConfigurationUpdate! + public global::tryAGI.OpenAI.ResponseConfigurationUpdate PickConfigurationUpdate() => ConfigurationUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConfigurationUpdate' but the value was {ToString()}."); /// @@ -493,8 +493,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -530,8 +530,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.Program PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.Program PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -567,8 +567,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -604,8 +604,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.CompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.CompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -1085,8 +1085,8 @@ public bool TryPickResponseCustomToolCallItem( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResource PickResponseCustomToolCallItem() => IsResponseCustomToolCallItem - ? ResponseCustomToolCallItem!.Value + public global::tryAGI.OpenAI.CustomToolCallResource PickResponseCustomToolCallItem() => ResponseCustomToolCallItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallItem' but the value was {ToString()}."); /// @@ -1122,8 +1122,8 @@ public bool TryPickResponseCustomToolCallOutputItem( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => IsResponseCustomToolCallOutputItem - ? ResponseCustomToolCallOutputItem!.Value + public global::tryAGI.OpenAI.CustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => ResponseCustomToolCallOutputItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallOutputItem' but the value was {ToString()}."); /// /// @@ -2004,125 +2004,125 @@ public bool Validate() Validate(); } - if (IsInputMessage && inputMessage != null) + if (InputMessage is { } __value0 && inputMessage != null) { - return inputMessage(InputMessage!); + return inputMessage(__value0); } - else if (IsMessage && message != null) + else if (Message is { } __value1 && message != null) { - return message(Message!); + return message(__value1); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value2 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value2); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value3 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value3); } - else if (IsComputerToolCallOutput && computerToolCallOutput != null) + else if (ComputerToolCallOutput is { } __value4 && computerToolCallOutput != null) { - return computerToolCallOutput(ComputerToolCallOutput!); + return computerToolCallOutput(__value4); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value5 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value5); } - else if (IsFunctionToolCall && functionToolCall != null) + else if (FunctionToolCall is { } __value6 && functionToolCall != null) { - return functionToolCall(FunctionToolCall!); + return functionToolCall(__value6); } - else if (IsFunctionToolCallOutput && functionToolCallOutput != null) + else if (FunctionToolCallOutput is { } __value7 && functionToolCallOutput != null) { - return functionToolCallOutput(FunctionToolCallOutput!); + return functionToolCallOutput(__value7); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value8 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value8); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value9 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value9); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value10 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value10); } - else if (IsConfigurationUpdate && configurationUpdate != null) + else if (ConfigurationUpdate is { } __value11 && configurationUpdate != null) { - return configurationUpdate(ConfigurationUpdate!); + return configurationUpdate(__value11); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value12 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value12); } - else if (IsProgram && program != null) + else if (Program is { } __value13 && program != null) { - return program(Program!); + return program(__value13); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value14 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value14); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value15 && compaction != null) { - return compaction(Compaction!); + return compaction(__value15); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value16 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value16); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value17 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value17); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value18 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value18); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value19 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value19); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value20 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value20); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value21 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value21); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value22 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value22); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value23 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value23); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value24 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value24); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value25 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value25); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value26 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value26); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value27 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value27); } - else if (IsResponseCustomToolCallItem && responseCustomToolCallItem != null) + else if (ResponseCustomToolCallItem is { } __value28 && responseCustomToolCallItem != null) { - return responseCustomToolCallItem(ResponseCustomToolCallItem!); + return responseCustomToolCallItem(__value28); } - else if (IsResponseCustomToolCallOutputItem && responseCustomToolCallOutputItem != null) + else if (ResponseCustomToolCallOutputItem is { } __value29 && responseCustomToolCallOutputItem != null) { - return responseCustomToolCallOutputItem(ResponseCustomToolCallOutputItem!); + return responseCustomToolCallOutputItem(__value29); } return default(TResult); @@ -2198,125 +2198,125 @@ public void Match( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsMessage) + else if (Message is { } __value1) { - message?.Invoke(Message!); + message?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerToolCallOutput) + else if (ComputerToolCallOutput is { } __value4) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionToolCall) + else if (FunctionToolCall is { } __value6) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value6); } - else if (IsFunctionToolCallOutput) + else if (FunctionToolCallOutput is { } __value7) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value7); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value8) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value8); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value9) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value9); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value10) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value10); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value11) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value11); } - else if (IsReasoning) + else if (Reasoning is { } __value12) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value12); } - else if (IsProgram) + else if (Program is { } __value13) { - program?.Invoke(Program!); + program?.Invoke(__value13); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value14) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value14); } - else if (IsCompaction) + else if (Compaction is { } __value15) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value15); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value16) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value16); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value17) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value17); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value18) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value18); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value19) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value19); } - else if (IsShellCall) + else if (ShellCall is { } __value20) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value20); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value21) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value21); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value22) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value22); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value23) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value23); } - else if (IsMcpListTools) + else if (McpListTools is { } __value24) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value24); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value25) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value25); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value26) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value26); } - else if (IsMcpCall) + else if (McpCall is { } __value27) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value27); } - else if (IsResponseCustomToolCallItem) + else if (ResponseCustomToolCallItem is { } __value28) { - responseCustomToolCallItem?.Invoke(ResponseCustomToolCallItem!); + responseCustomToolCallItem?.Invoke(__value28); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value29) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value29); } } @@ -2361,125 +2361,125 @@ public void Switch( Validate(); } - if (IsInputMessage) + if (InputMessage is { } __value0) { - inputMessage?.Invoke(InputMessage!); + inputMessage?.Invoke(__value0); } - else if (IsMessage) + else if (Message is { } __value1) { - message?.Invoke(Message!); + message?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsComputerCall) + else if (ComputerCall is { } __value3) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value3); } - else if (IsComputerToolCallOutput) + else if (ComputerToolCallOutput is { } __value4) { - computerToolCallOutput?.Invoke(ComputerToolCallOutput!); + computerToolCallOutput?.Invoke(__value4); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value5) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value5); } - else if (IsFunctionToolCall) + else if (FunctionToolCall is { } __value6) { - functionToolCall?.Invoke(FunctionToolCall!); + functionToolCall?.Invoke(__value6); } - else if (IsFunctionToolCallOutput) + else if (FunctionToolCallOutput is { } __value7) { - functionToolCallOutput?.Invoke(FunctionToolCallOutput!); + functionToolCallOutput?.Invoke(__value7); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value8) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value8); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value9) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value9); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value10) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value10); } - else if (IsConfigurationUpdate) + else if (ConfigurationUpdate is { } __value11) { - configurationUpdate?.Invoke(ConfigurationUpdate!); + configurationUpdate?.Invoke(__value11); } - else if (IsReasoning) + else if (Reasoning is { } __value12) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value12); } - else if (IsProgram) + else if (Program is { } __value13) { - program?.Invoke(Program!); + program?.Invoke(__value13); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value14) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value14); } - else if (IsCompaction) + else if (Compaction is { } __value15) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value15); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value16) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value16); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value17) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value17); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value18) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value18); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value19) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value19); } - else if (IsShellCall) + else if (ShellCall is { } __value20) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value20); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value21) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value21); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value22) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value22); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value23) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value23); } - else if (IsMcpListTools) + else if (McpListTools is { } __value24) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value24); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value25) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value25); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value26) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value26); } - else if (IsMcpCall) + else if (McpCall is { } __value27) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value27); } - else if (IsResponseCustomToolCallItem) + else if (ResponseCustomToolCallItem is { } __value28) { - responseCustomToolCallItem?.Invoke(ResponseCustomToolCallItem!); + responseCustomToolCallItem?.Invoke(__value28); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value29) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value29); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs index 6453a8e09..747736907 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveAudioFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveAudioFormat.g.cs index 011fa6dd1..1d7101409 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveAudioFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveAudioFormat.g.cs @@ -47,8 +47,8 @@ public bool TryPickAudioPcm( /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam PickAudioPcm() => IsAudioPcm - ? AudioPcm! + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMParam PickAudioPcm() => AudioPcm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioPcm' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAudioPcmu( /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam PickAudioPcmu() => IsAudioPcmu - ? AudioPcmu! + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMUParam PickAudioPcmu() => AudioPcmu is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioPcmu' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAudioPcma( /// /// /// - public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam PickAudioPcma() => IsAudioPcma - ? AudioPcma! + public global::tryAGI.OpenAI.LiveSessionAudioFormatPCMAParam PickAudioPcma() => AudioPcma is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioPcma' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsAudioPcm && audioPcm != null) + if (AudioPcm is { } __value0 && audioPcm != null) { - return audioPcm(AudioPcm!); + return audioPcm(__value0); } - else if (IsAudioPcmu && audioPcmu != null) + else if (AudioPcmu is { } __value1 && audioPcmu != null) { - return audioPcmu(AudioPcmu!); + return audioPcmu(__value1); } - else if (IsAudioPcma && audioPcma != null) + else if (AudioPcma is { } __value2 && audioPcma != null) { - return audioPcma(AudioPcma!); + return audioPcma(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsAudioPcm) + if (AudioPcm is { } __value0) { - audioPcm?.Invoke(AudioPcm!); + audioPcm?.Invoke(__value0); } - else if (IsAudioPcmu) + else if (AudioPcmu is { } __value1) { - audioPcmu?.Invoke(AudioPcmu!); + audioPcmu?.Invoke(__value1); } - else if (IsAudioPcma) + else if (AudioPcma is { } __value2) { - audioPcma?.Invoke(AudioPcma!); + audioPcma?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsAudioPcm) + if (AudioPcm is { } __value0) { - audioPcm?.Invoke(AudioPcm!); + audioPcm?.Invoke(__value0); } - else if (IsAudioPcmu) + else if (AudioPcmu is { } __value1) { - audioPcmu?.Invoke(AudioPcmu!); + audioPcmu?.Invoke(__value1); } - else if (IsAudioPcma) + else if (AudioPcma is { } __value2) { - audioPcma?.Invoke(AudioPcma!); + audioPcma?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveClientEvent.g.cs index e68dfe2aa..c69494102 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveClientEvent.g.cs @@ -48,8 +48,8 @@ public bool TryPickSessionStart( /// /// /// - public global::tryAGI.OpenAI.LiveSessionStartEvent PickSessionStart() => IsSessionStart - ? SessionStart! + public global::tryAGI.OpenAI.LiveSessionStartEvent PickSessionStart() => SessionStart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionStart' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickSessionUpdate( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParam PickSessionUpdate() => IsSessionUpdate - ? SessionUpdate! + public global::tryAGI.OpenAI.LiveSessionUpdateParam PickSessionUpdate() => SessionUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdate' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickSessionInputAudioAppend( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEvent PickSessionInputAudioAppend() => IsSessionInputAudioAppend - ? SessionInputAudioAppend! + public global::tryAGI.OpenAI.LiveInputAudioAppendEvent PickSessionInputAudioAppend() => SessionInputAudioAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioAppend' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickSessionInputAudioMute( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParam PickSessionInputAudioMute() => IsSessionInputAudioMute - ? SessionInputAudioMute! + public global::tryAGI.OpenAI.LiveInputAudioMuteParam PickSessionInputAudioMute() => SessionInputAudioMute is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioMute' but the value was {ToString()}."); /// @@ -200,8 +200,8 @@ public bool TryPickSessionInputAudioUnmute( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam PickSessionInputAudioUnmute() => IsSessionInputAudioUnmute - ? SessionInputAudioUnmute! + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam PickSessionInputAudioUnmute() => SessionInputAudioUnmute is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioUnmute' but the value was {ToString()}."); /// @@ -238,8 +238,8 @@ public bool TryPickSessionInstructionsAppend( /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParam PickSessionInstructionsAppend() => IsSessionInstructionsAppend - ? SessionInstructionsAppend! + public global::tryAGI.OpenAI.LiveInstructionsAppendParam PickSessionInstructionsAppend() => SessionInstructionsAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInstructionsAppend' but the value was {ToString()}."); /// @@ -276,8 +276,8 @@ public bool TryPickSessionThinkingAppend( /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParam PickSessionThinkingAppend() => IsSessionThinkingAppend - ? SessionThinkingAppend! + public global::tryAGI.OpenAI.LiveThinkingAppendParam PickSessionThinkingAppend() => SessionThinkingAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionThinkingAppend' but the value was {ToString()}."); /// @@ -314,8 +314,8 @@ public bool TryPickSessionCommentaryAppend( /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParam PickSessionCommentaryAppend() => IsSessionCommentaryAppend - ? SessionCommentaryAppend! + public global::tryAGI.OpenAI.LiveCommentaryAppendParam PickSessionCommentaryAppend() => SessionCommentaryAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCommentaryAppend' but the value was {ToString()}."); /// @@ -352,8 +352,8 @@ public bool TryPickResponseItemCreate( /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParam PickResponseItemCreate() => IsResponseItemCreate - ? ResponseItemCreate! + public global::tryAGI.OpenAI.LiveResponseItemCreateParam PickResponseItemCreate() => ResponseItemCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseItemCreate' but the value was {ToString()}."); /// @@ -390,8 +390,8 @@ public bool TryPickResponseCreate( /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParam PickResponseCreate() => IsResponseCreate - ? ResponseCreate! + public global::tryAGI.OpenAI.LiveResponseCreateParam PickResponseCreate() => ResponseCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreate' but the value was {ToString()}."); /// @@ -428,8 +428,8 @@ public bool TryPickSessionClose( /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParam PickSessionClose() => IsSessionClose - ? SessionClose! + public global::tryAGI.OpenAI.LiveSessionCloseParam PickSessionClose() => SessionClose is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClose' but the value was {ToString()}."); /// /// @@ -781,49 +781,49 @@ public bool Validate() Validate(); } - if (IsSessionStart && sessionStart != null) + if (SessionStart is { } __value0 && sessionStart != null) { - return sessionStart(SessionStart!); + return sessionStart(__value0); } - else if (IsSessionUpdate && sessionUpdate != null) + else if (SessionUpdate is { } __value1 && sessionUpdate != null) { - return sessionUpdate(SessionUpdate!); + return sessionUpdate(__value1); } - else if (IsSessionInputAudioAppend && sessionInputAudioAppend != null) + else if (SessionInputAudioAppend is { } __value2 && sessionInputAudioAppend != null) { - return sessionInputAudioAppend(SessionInputAudioAppend!); + return sessionInputAudioAppend(__value2); } - else if (IsSessionInputAudioMute && sessionInputAudioMute != null) + else if (SessionInputAudioMute is { } __value3 && sessionInputAudioMute != null) { - return sessionInputAudioMute(SessionInputAudioMute!); + return sessionInputAudioMute(__value3); } - else if (IsSessionInputAudioUnmute && sessionInputAudioUnmute != null) + else if (SessionInputAudioUnmute is { } __value4 && sessionInputAudioUnmute != null) { - return sessionInputAudioUnmute(SessionInputAudioUnmute!); + return sessionInputAudioUnmute(__value4); } - else if (IsSessionInstructionsAppend && sessionInstructionsAppend != null) + else if (SessionInstructionsAppend is { } __value5 && sessionInstructionsAppend != null) { - return sessionInstructionsAppend(SessionInstructionsAppend!); + return sessionInstructionsAppend(__value5); } - else if (IsSessionThinkingAppend && sessionThinkingAppend != null) + else if (SessionThinkingAppend is { } __value6 && sessionThinkingAppend != null) { - return sessionThinkingAppend(SessionThinkingAppend!); + return sessionThinkingAppend(__value6); } - else if (IsSessionCommentaryAppend && sessionCommentaryAppend != null) + else if (SessionCommentaryAppend is { } __value7 && sessionCommentaryAppend != null) { - return sessionCommentaryAppend(SessionCommentaryAppend!); + return sessionCommentaryAppend(__value7); } - else if (IsResponseItemCreate && responseItemCreate != null) + else if (ResponseItemCreate is { } __value8 && responseItemCreate != null) { - return responseItemCreate(ResponseItemCreate!); + return responseItemCreate(__value8); } - else if (IsResponseCreate && responseCreate != null) + else if (ResponseCreate is { } __value9 && responseCreate != null) { - return responseCreate(ResponseCreate!); + return responseCreate(__value9); } - else if (IsSessionClose && sessionClose != null) + else if (SessionClose is { } __value10 && sessionClose != null) { - return sessionClose(SessionClose!); + return sessionClose(__value10); } return default(TResult); @@ -861,49 +861,49 @@ public void Match( Validate(); } - if (IsSessionStart) + if (SessionStart is { } __value0) { - sessionStart?.Invoke(SessionStart!); + sessionStart?.Invoke(__value0); } - else if (IsSessionUpdate) + else if (SessionUpdate is { } __value1) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value1); } - else if (IsSessionInputAudioAppend) + else if (SessionInputAudioAppend is { } __value2) { - sessionInputAudioAppend?.Invoke(SessionInputAudioAppend!); + sessionInputAudioAppend?.Invoke(__value2); } - else if (IsSessionInputAudioMute) + else if (SessionInputAudioMute is { } __value3) { - sessionInputAudioMute?.Invoke(SessionInputAudioMute!); + sessionInputAudioMute?.Invoke(__value3); } - else if (IsSessionInputAudioUnmute) + else if (SessionInputAudioUnmute is { } __value4) { - sessionInputAudioUnmute?.Invoke(SessionInputAudioUnmute!); + sessionInputAudioUnmute?.Invoke(__value4); } - else if (IsSessionInstructionsAppend) + else if (SessionInstructionsAppend is { } __value5) { - sessionInstructionsAppend?.Invoke(SessionInstructionsAppend!); + sessionInstructionsAppend?.Invoke(__value5); } - else if (IsSessionThinkingAppend) + else if (SessionThinkingAppend is { } __value6) { - sessionThinkingAppend?.Invoke(SessionThinkingAppend!); + sessionThinkingAppend?.Invoke(__value6); } - else if (IsSessionCommentaryAppend) + else if (SessionCommentaryAppend is { } __value7) { - sessionCommentaryAppend?.Invoke(SessionCommentaryAppend!); + sessionCommentaryAppend?.Invoke(__value7); } - else if (IsResponseItemCreate) + else if (ResponseItemCreate is { } __value8) { - responseItemCreate?.Invoke(ResponseItemCreate!); + responseItemCreate?.Invoke(__value8); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value9) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value9); } - else if (IsSessionClose) + else if (SessionClose is { } __value10) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value10); } } @@ -929,49 +929,49 @@ public void Switch( Validate(); } - if (IsSessionStart) + if (SessionStart is { } __value0) { - sessionStart?.Invoke(SessionStart!); + sessionStart?.Invoke(__value0); } - else if (IsSessionUpdate) + else if (SessionUpdate is { } __value1) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value1); } - else if (IsSessionInputAudioAppend) + else if (SessionInputAudioAppend is { } __value2) { - sessionInputAudioAppend?.Invoke(SessionInputAudioAppend!); + sessionInputAudioAppend?.Invoke(__value2); } - else if (IsSessionInputAudioMute) + else if (SessionInputAudioMute is { } __value3) { - sessionInputAudioMute?.Invoke(SessionInputAudioMute!); + sessionInputAudioMute?.Invoke(__value3); } - else if (IsSessionInputAudioUnmute) + else if (SessionInputAudioUnmute is { } __value4) { - sessionInputAudioUnmute?.Invoke(SessionInputAudioUnmute!); + sessionInputAudioUnmute?.Invoke(__value4); } - else if (IsSessionInstructionsAppend) + else if (SessionInstructionsAppend is { } __value5) { - sessionInstructionsAppend?.Invoke(SessionInstructionsAppend!); + sessionInstructionsAppend?.Invoke(__value5); } - else if (IsSessionThinkingAppend) + else if (SessionThinkingAppend is { } __value6) { - sessionThinkingAppend?.Invoke(SessionThinkingAppend!); + sessionThinkingAppend?.Invoke(__value6); } - else if (IsSessionCommentaryAppend) + else if (SessionCommentaryAppend is { } __value7) { - sessionCommentaryAppend?.Invoke(SessionCommentaryAppend!); + sessionCommentaryAppend?.Invoke(__value7); } - else if (IsResponseItemCreate) + else if (ResponseItemCreate is { } __value8) { - responseItemCreate?.Invoke(ResponseItemCreate!); + responseItemCreate?.Invoke(__value8); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value9) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value9); } - else if (IsSessionClose) + else if (SessionClose is { } __value10) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value10); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveForkClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveForkClientEvent.g.cs index ef5599791..6050bc7fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveForkClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveForkClientEvent.g.cs @@ -48,8 +48,8 @@ public bool TryPickSessionStart( /// /// /// - public global::tryAGI.OpenAI.LiveForkSessionStartEvent PickSessionStart() => IsSessionStart - ? SessionStart! + public global::tryAGI.OpenAI.LiveForkSessionStartEvent PickSessionStart() => SessionStart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionStart' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickSessionUpdate( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParam PickSessionUpdate() => IsSessionUpdate - ? SessionUpdate! + public global::tryAGI.OpenAI.LiveSessionUpdateParam PickSessionUpdate() => SessionUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdate' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickSessionInputAudioAppend( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppendEvent PickSessionInputAudioAppend() => IsSessionInputAudioAppend - ? SessionInputAudioAppend! + public global::tryAGI.OpenAI.LiveInputAudioAppendEvent PickSessionInputAudioAppend() => SessionInputAudioAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioAppend' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickSessionInputAudioMute( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParam PickSessionInputAudioMute() => IsSessionInputAudioMute - ? SessionInputAudioMute! + public global::tryAGI.OpenAI.LiveInputAudioMuteParam PickSessionInputAudioMute() => SessionInputAudioMute is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioMute' but the value was {ToString()}."); /// @@ -200,8 +200,8 @@ public bool TryPickSessionInputAudioUnmute( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam PickSessionInputAudioUnmute() => IsSessionInputAudioUnmute - ? SessionInputAudioUnmute! + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam PickSessionInputAudioUnmute() => SessionInputAudioUnmute is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioUnmute' but the value was {ToString()}."); /// @@ -238,8 +238,8 @@ public bool TryPickSessionInstructionsAppend( /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParam PickSessionInstructionsAppend() => IsSessionInstructionsAppend - ? SessionInstructionsAppend! + public global::tryAGI.OpenAI.LiveInstructionsAppendParam PickSessionInstructionsAppend() => SessionInstructionsAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInstructionsAppend' but the value was {ToString()}."); /// @@ -276,8 +276,8 @@ public bool TryPickSessionThinkingAppend( /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParam PickSessionThinkingAppend() => IsSessionThinkingAppend - ? SessionThinkingAppend! + public global::tryAGI.OpenAI.LiveThinkingAppendParam PickSessionThinkingAppend() => SessionThinkingAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionThinkingAppend' but the value was {ToString()}."); /// @@ -314,8 +314,8 @@ public bool TryPickSessionCommentaryAppend( /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParam PickSessionCommentaryAppend() => IsSessionCommentaryAppend - ? SessionCommentaryAppend! + public global::tryAGI.OpenAI.LiveCommentaryAppendParam PickSessionCommentaryAppend() => SessionCommentaryAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCommentaryAppend' but the value was {ToString()}."); /// @@ -352,8 +352,8 @@ public bool TryPickResponseItemCreate( /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParam PickResponseItemCreate() => IsResponseItemCreate - ? ResponseItemCreate! + public global::tryAGI.OpenAI.LiveResponseItemCreateParam PickResponseItemCreate() => ResponseItemCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseItemCreate' but the value was {ToString()}."); /// @@ -390,8 +390,8 @@ public bool TryPickResponseCreate( /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParam PickResponseCreate() => IsResponseCreate - ? ResponseCreate! + public global::tryAGI.OpenAI.LiveResponseCreateParam PickResponseCreate() => ResponseCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreate' but the value was {ToString()}."); /// @@ -428,8 +428,8 @@ public bool TryPickSessionClose( /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParam PickSessionClose() => IsSessionClose - ? SessionClose! + public global::tryAGI.OpenAI.LiveSessionCloseParam PickSessionClose() => SessionClose is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClose' but the value was {ToString()}."); /// /// @@ -781,49 +781,49 @@ public bool Validate() Validate(); } - if (IsSessionStart && sessionStart != null) + if (SessionStart is { } __value0 && sessionStart != null) { - return sessionStart(SessionStart!); + return sessionStart(__value0); } - else if (IsSessionUpdate && sessionUpdate != null) + else if (SessionUpdate is { } __value1 && sessionUpdate != null) { - return sessionUpdate(SessionUpdate!); + return sessionUpdate(__value1); } - else if (IsSessionInputAudioAppend && sessionInputAudioAppend != null) + else if (SessionInputAudioAppend is { } __value2 && sessionInputAudioAppend != null) { - return sessionInputAudioAppend(SessionInputAudioAppend!); + return sessionInputAudioAppend(__value2); } - else if (IsSessionInputAudioMute && sessionInputAudioMute != null) + else if (SessionInputAudioMute is { } __value3 && sessionInputAudioMute != null) { - return sessionInputAudioMute(SessionInputAudioMute!); + return sessionInputAudioMute(__value3); } - else if (IsSessionInputAudioUnmute && sessionInputAudioUnmute != null) + else if (SessionInputAudioUnmute is { } __value4 && sessionInputAudioUnmute != null) { - return sessionInputAudioUnmute(SessionInputAudioUnmute!); + return sessionInputAudioUnmute(__value4); } - else if (IsSessionInstructionsAppend && sessionInstructionsAppend != null) + else if (SessionInstructionsAppend is { } __value5 && sessionInstructionsAppend != null) { - return sessionInstructionsAppend(SessionInstructionsAppend!); + return sessionInstructionsAppend(__value5); } - else if (IsSessionThinkingAppend && sessionThinkingAppend != null) + else if (SessionThinkingAppend is { } __value6 && sessionThinkingAppend != null) { - return sessionThinkingAppend(SessionThinkingAppend!); + return sessionThinkingAppend(__value6); } - else if (IsSessionCommentaryAppend && sessionCommentaryAppend != null) + else if (SessionCommentaryAppend is { } __value7 && sessionCommentaryAppend != null) { - return sessionCommentaryAppend(SessionCommentaryAppend!); + return sessionCommentaryAppend(__value7); } - else if (IsResponseItemCreate && responseItemCreate != null) + else if (ResponseItemCreate is { } __value8 && responseItemCreate != null) { - return responseItemCreate(ResponseItemCreate!); + return responseItemCreate(__value8); } - else if (IsResponseCreate && responseCreate != null) + else if (ResponseCreate is { } __value9 && responseCreate != null) { - return responseCreate(ResponseCreate!); + return responseCreate(__value9); } - else if (IsSessionClose && sessionClose != null) + else if (SessionClose is { } __value10 && sessionClose != null) { - return sessionClose(SessionClose!); + return sessionClose(__value10); } return default(TResult); @@ -861,49 +861,49 @@ public void Match( Validate(); } - if (IsSessionStart) + if (SessionStart is { } __value0) { - sessionStart?.Invoke(SessionStart!); + sessionStart?.Invoke(__value0); } - else if (IsSessionUpdate) + else if (SessionUpdate is { } __value1) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value1); } - else if (IsSessionInputAudioAppend) + else if (SessionInputAudioAppend is { } __value2) { - sessionInputAudioAppend?.Invoke(SessionInputAudioAppend!); + sessionInputAudioAppend?.Invoke(__value2); } - else if (IsSessionInputAudioMute) + else if (SessionInputAudioMute is { } __value3) { - sessionInputAudioMute?.Invoke(SessionInputAudioMute!); + sessionInputAudioMute?.Invoke(__value3); } - else if (IsSessionInputAudioUnmute) + else if (SessionInputAudioUnmute is { } __value4) { - sessionInputAudioUnmute?.Invoke(SessionInputAudioUnmute!); + sessionInputAudioUnmute?.Invoke(__value4); } - else if (IsSessionInstructionsAppend) + else if (SessionInstructionsAppend is { } __value5) { - sessionInstructionsAppend?.Invoke(SessionInstructionsAppend!); + sessionInstructionsAppend?.Invoke(__value5); } - else if (IsSessionThinkingAppend) + else if (SessionThinkingAppend is { } __value6) { - sessionThinkingAppend?.Invoke(SessionThinkingAppend!); + sessionThinkingAppend?.Invoke(__value6); } - else if (IsSessionCommentaryAppend) + else if (SessionCommentaryAppend is { } __value7) { - sessionCommentaryAppend?.Invoke(SessionCommentaryAppend!); + sessionCommentaryAppend?.Invoke(__value7); } - else if (IsResponseItemCreate) + else if (ResponseItemCreate is { } __value8) { - responseItemCreate?.Invoke(ResponseItemCreate!); + responseItemCreate?.Invoke(__value8); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value9) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value9); } - else if (IsSessionClose) + else if (SessionClose is { } __value10) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value10); } } @@ -929,49 +929,49 @@ public void Switch( Validate(); } - if (IsSessionStart) + if (SessionStart is { } __value0) { - sessionStart?.Invoke(SessionStart!); + sessionStart?.Invoke(__value0); } - else if (IsSessionUpdate) + else if (SessionUpdate is { } __value1) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value1); } - else if (IsSessionInputAudioAppend) + else if (SessionInputAudioAppend is { } __value2) { - sessionInputAudioAppend?.Invoke(SessionInputAudioAppend!); + sessionInputAudioAppend?.Invoke(__value2); } - else if (IsSessionInputAudioMute) + else if (SessionInputAudioMute is { } __value3) { - sessionInputAudioMute?.Invoke(SessionInputAudioMute!); + sessionInputAudioMute?.Invoke(__value3); } - else if (IsSessionInputAudioUnmute) + else if (SessionInputAudioUnmute is { } __value4) { - sessionInputAudioUnmute?.Invoke(SessionInputAudioUnmute!); + sessionInputAudioUnmute?.Invoke(__value4); } - else if (IsSessionInstructionsAppend) + else if (SessionInstructionsAppend is { } __value5) { - sessionInstructionsAppend?.Invoke(SessionInstructionsAppend!); + sessionInstructionsAppend?.Invoke(__value5); } - else if (IsSessionThinkingAppend) + else if (SessionThinkingAppend is { } __value6) { - sessionThinkingAppend?.Invoke(SessionThinkingAppend!); + sessionThinkingAppend?.Invoke(__value6); } - else if (IsSessionCommentaryAppend) + else if (SessionCommentaryAppend is { } __value7) { - sessionCommentaryAppend?.Invoke(SessionCommentaryAppend!); + sessionCommentaryAppend?.Invoke(__value7); } - else if (IsResponseItemCreate) + else if (ResponseItemCreate is { } __value8) { - responseItemCreate?.Invoke(ResponseItemCreate!); + responseItemCreate?.Invoke(__value8); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value9) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value9); } - else if (IsSessionClose) + else if (SessionClose is { } __value10) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value10); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveInitialItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveInitialItem.g.cs index c54b9d2da..f177d5546 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveInitialItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveInitialItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickDeveloper( /// /// /// - public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam PickDeveloper() => IsDeveloper - ? Developer! + public global::tryAGI.OpenAI.LiveInitialDeveloperMessageItemParam PickDeveloper() => Developer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Developer' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickUser( /// /// /// - public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam PickUser() => IsUser - ? User! + public global::tryAGI.OpenAI.LiveInitialUserMessageItemParam PickUser() => User is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'User' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAssistant( /// /// /// - public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam PickAssistant() => IsAssistant - ? Assistant! + public global::tryAGI.OpenAI.LiveInitialAssistantMessageItemParam PickAssistant() => Assistant is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Assistant' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsDeveloper && developer != null) + if (Developer is { } __value0 && developer != null) { - return developer(Developer!); + return developer(__value0); } - else if (IsUser && user != null) + else if (User is { } __value1 && user != null) { - return user(User!); + return user(__value1); } - else if (IsAssistant && assistant != null) + else if (Assistant is { } __value2 && assistant != null) { - return assistant(Assistant!); + return assistant(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsDeveloper) + if (Developer is { } __value0) { - developer?.Invoke(Developer!); + developer?.Invoke(__value0); } - else if (IsUser) + else if (User is { } __value1) { - user?.Invoke(User!); + user?.Invoke(__value1); } - else if (IsAssistant) + else if (Assistant is { } __value2) { - assistant?.Invoke(Assistant!); + assistant?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsDeveloper) + if (Developer is { } __value0) { - developer?.Invoke(Developer!); + developer?.Invoke(__value0); } - else if (IsUser) + else if (User is { } __value1) { - user?.Invoke(User!); + user?.Invoke(__value1); } - else if (IsAssistant) + else if (Assistant is { } __value2) { - assistant?.Invoke(Assistant!); + assistant?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent.g.cs index 8465133f2..13863c9ab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickEvent2( /// /// /// - public global::tryAGI.OpenAI.LiveServerEvent2 PickEvent2() => IsEvent2 - ? Event2!.Value + public global::tryAGI.OpenAI.LiveServerEvent2 PickEvent2() => Event2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Event2' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsEvent2 && event2 != null) + if (Event2 is { } __value0 && event2 != null) { - return event2(Event2!); + return event2(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsEvent2) + if (Event2 is { } __value0) { - event2?.Invoke(Event2!); + event2?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsEvent2) + if (Event2 is { } __value0) { - event2?.Invoke(Event2!); + event2?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent2.g.cs index 2a9c7a71a..9e916e49f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveServerEvent2.g.cs @@ -48,8 +48,8 @@ public bool TryPickSessionStarted( /// /// /// - public global::tryAGI.OpenAI.LiveSessionStarted PickSessionStarted() => IsSessionStarted - ? SessionStarted! + public global::tryAGI.OpenAI.LiveSessionStarted PickSessionStarted() => SessionStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionStarted' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickSessionUpdated( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdated PickSessionUpdated() => IsSessionUpdated - ? SessionUpdated! + public global::tryAGI.OpenAI.LiveSessionUpdated PickSessionUpdated() => SessionUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdated' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickSessionInputAudioMuted( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuted PickSessionInputAudioMuted() => IsSessionInputAudioMuted - ? SessionInputAudioMuted! + public global::tryAGI.OpenAI.LiveInputAudioMuted PickSessionInputAudioMuted() => SessionInputAudioMuted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioMuted' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickSessionInputAudioUnmuted( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuted PickSessionInputAudioUnmuted() => IsSessionInputAudioUnmuted - ? SessionInputAudioUnmuted! + public global::tryAGI.OpenAI.LiveInputAudioUnmuted PickSessionInputAudioUnmuted() => SessionInputAudioUnmuted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioUnmuted' but the value was {ToString()}."); /// @@ -200,8 +200,8 @@ public bool TryPickSessionInstructionsAppended( /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppended PickSessionInstructionsAppended() => IsSessionInstructionsAppended - ? SessionInstructionsAppended! + public global::tryAGI.OpenAI.LiveInstructionsAppended PickSessionInstructionsAppended() => SessionInstructionsAppended is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInstructionsAppended' but the value was {ToString()}."); /// @@ -238,8 +238,8 @@ public bool TryPickSessionThinkingAppended( /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppended PickSessionThinkingAppended() => IsSessionThinkingAppended - ? SessionThinkingAppended! + public global::tryAGI.OpenAI.LiveThinkingAppended PickSessionThinkingAppended() => SessionThinkingAppended is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionThinkingAppended' but the value was {ToString()}."); /// @@ -276,8 +276,8 @@ public bool TryPickSessionCommentaryAppended( /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppended PickSessionCommentaryAppended() => IsSessionCommentaryAppended - ? SessionCommentaryAppended! + public global::tryAGI.OpenAI.LiveCommentaryAppended PickSessionCommentaryAppended() => SessionCommentaryAppended is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCommentaryAppended' but the value was {ToString()}."); /// @@ -314,8 +314,8 @@ public bool TryPickSessionInputAudioAppend( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioAppend PickSessionInputAudioAppend() => IsSessionInputAudioAppend - ? SessionInputAudioAppend! + public global::tryAGI.OpenAI.LiveInputAudioAppend PickSessionInputAudioAppend() => SessionInputAudioAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioAppend' but the value was {ToString()}."); /// @@ -352,8 +352,8 @@ public bool TryPickSessionOutputAudioDelta( /// /// /// - public global::tryAGI.OpenAI.LiveOutputAudioDelta PickSessionOutputAudioDelta() => IsSessionOutputAudioDelta - ? SessionOutputAudioDelta! + public global::tryAGI.OpenAI.LiveOutputAudioDelta PickSessionOutputAudioDelta() => SessionOutputAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionOutputAudioDelta' but the value was {ToString()}."); /// @@ -390,8 +390,8 @@ public bool TryPickSessionInputTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDelta PickSessionInputTranscriptDelta() => IsSessionInputTranscriptDelta - ? SessionInputTranscriptDelta! + public global::tryAGI.OpenAI.LiveInputTranscriptDelta PickSessionInputTranscriptDelta() => SessionInputTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputTranscriptDelta' but the value was {ToString()}."); /// @@ -428,8 +428,8 @@ public bool TryPickSessionOutputTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDelta PickSessionOutputTranscriptDelta() => IsSessionOutputTranscriptDelta - ? SessionOutputTranscriptDelta! + public global::tryAGI.OpenAI.LiveOutputTranscriptDelta PickSessionOutputTranscriptDelta() => SessionOutputTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionOutputTranscriptDelta' but the value was {ToString()}."); /// @@ -466,8 +466,8 @@ public bool TryPickSessionDelegationCreated( /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreated PickSessionDelegationCreated() => IsSessionDelegationCreated - ? SessionDelegationCreated! + public global::tryAGI.OpenAI.LiveDelegationCreated PickSessionDelegationCreated() => SessionDelegationCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionDelegationCreated' but the value was {ToString()}."); /// @@ -504,8 +504,8 @@ public bool TryPickResponseEvent( /// /// /// - public global::tryAGI.OpenAI.LiveResponseEvent PickResponseEvent() => IsResponseEvent - ? ResponseEvent! + public global::tryAGI.OpenAI.LiveResponseEvent PickResponseEvent() => ResponseEvent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseEvent' but the value was {ToString()}."); /// @@ -542,8 +542,8 @@ public bool TryPickSessionUsageUpdated( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdated PickSessionUsageUpdated() => IsSessionUsageUpdated - ? SessionUsageUpdated! + public global::tryAGI.OpenAI.LiveSessionUsageUpdated PickSessionUsageUpdated() => SessionUsageUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUsageUpdated' but the value was {ToString()}."); /// @@ -580,8 +580,8 @@ public bool TryPickSessionClosed( /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosed PickSessionClosed() => IsSessionClosed - ? SessionClosed! + public global::tryAGI.OpenAI.LiveSessionClosed PickSessionClosed() => SessionClosed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClosed' but the value was {ToString()}."); /// @@ -618,8 +618,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.LiveErrorEvent PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.LiveErrorEvent PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -656,8 +656,8 @@ public bool TryPickInfo( /// /// /// - public global::tryAGI.OpenAI.LiveInfoEvent PickInfo() => IsInfo - ? Info! + public global::tryAGI.OpenAI.LiveInfoEvent PickInfo() => Info is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Info' but the value was {ToString()}."); /// @@ -694,12 +694,12 @@ public bool TryPickTransportDtmfReceived( /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFReceived PickTransportDtmfReceived() => IsTransportDtmfReceived - ? TransportDtmfReceived! + public global::tryAGI.OpenAI.LiveTransportDTMFReceived PickTransportDtmfReceived() => TransportDtmfReceived is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransportDtmfReceived' but the value was {ToString()}."); /// - /// A SIP DTMF keypress successfully sent by the hosted tool. Delivered only to sideband observers; this is not a client command.
+ /// A SIP DTMF keypress successfully sent to the SIP trunk. Delivered only to sideband observers; this is not a client command.
/// Example: {"type":"transport.dtmf.send","event_id":"event_dtmf_2","event":"#"} ///
#if NET6_0_OR_GREATER @@ -732,8 +732,8 @@ public bool TryPickTransportDtmfSend( /// /// /// - public global::tryAGI.OpenAI.LiveTransportDTMFSend PickTransportDtmfSend() => IsTransportDtmfSend - ? TransportDtmfSend! + public global::tryAGI.OpenAI.LiveTransportDTMFSend PickTransportDtmfSend() => TransportDtmfSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransportDtmfSend' but the value was {ToString()}."); /// @@ -770,8 +770,8 @@ public bool TryPickTransportRinging( /// /// /// - public global::tryAGI.OpenAI.LiveTransportRinging PickTransportRinging() => IsTransportRinging - ? TransportRinging! + public global::tryAGI.OpenAI.LiveTransportRinging PickTransportRinging() => TransportRinging is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransportRinging' but the value was {ToString()}."); /// @@ -808,8 +808,8 @@ public bool TryPickTransportAnswered( /// /// /// - public global::tryAGI.OpenAI.LiveTransportAnswered PickTransportAnswered() => IsTransportAnswered - ? TransportAnswered! + public global::tryAGI.OpenAI.LiveTransportAnswered PickTransportAnswered() => TransportAnswered is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransportAnswered' but the value was {ToString()}."); /// @@ -846,8 +846,8 @@ public bool TryPickTransportFailed( /// /// /// - public global::tryAGI.OpenAI.LiveTransportFailed PickTransportFailed() => IsTransportFailed - ? TransportFailed! + public global::tryAGI.OpenAI.LiveTransportFailed PickTransportFailed() => TransportFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransportFailed' but the value was {ToString()}."); /// /// @@ -1507,93 +1507,93 @@ public bool Validate() Validate(); } - if (IsSessionStarted && sessionStarted != null) + if (SessionStarted is { } __value0 && sessionStarted != null) { - return sessionStarted(SessionStarted!); + return sessionStarted(__value0); } - else if (IsSessionUpdated && sessionUpdated != null) + else if (SessionUpdated is { } __value1 && sessionUpdated != null) { - return sessionUpdated(SessionUpdated!); + return sessionUpdated(__value1); } - else if (IsSessionInputAudioMuted && sessionInputAudioMuted != null) + else if (SessionInputAudioMuted is { } __value2 && sessionInputAudioMuted != null) { - return sessionInputAudioMuted(SessionInputAudioMuted!); + return sessionInputAudioMuted(__value2); } - else if (IsSessionInputAudioUnmuted && sessionInputAudioUnmuted != null) + else if (SessionInputAudioUnmuted is { } __value3 && sessionInputAudioUnmuted != null) { - return sessionInputAudioUnmuted(SessionInputAudioUnmuted!); + return sessionInputAudioUnmuted(__value3); } - else if (IsSessionInstructionsAppended && sessionInstructionsAppended != null) + else if (SessionInstructionsAppended is { } __value4 && sessionInstructionsAppended != null) { - return sessionInstructionsAppended(SessionInstructionsAppended!); + return sessionInstructionsAppended(__value4); } - else if (IsSessionThinkingAppended && sessionThinkingAppended != null) + else if (SessionThinkingAppended is { } __value5 && sessionThinkingAppended != null) { - return sessionThinkingAppended(SessionThinkingAppended!); + return sessionThinkingAppended(__value5); } - else if (IsSessionCommentaryAppended && sessionCommentaryAppended != null) + else if (SessionCommentaryAppended is { } __value6 && sessionCommentaryAppended != null) { - return sessionCommentaryAppended(SessionCommentaryAppended!); + return sessionCommentaryAppended(__value6); } - else if (IsSessionInputAudioAppend && sessionInputAudioAppend != null) + else if (SessionInputAudioAppend is { } __value7 && sessionInputAudioAppend != null) { - return sessionInputAudioAppend(SessionInputAudioAppend!); + return sessionInputAudioAppend(__value7); } - else if (IsSessionOutputAudioDelta && sessionOutputAudioDelta != null) + else if (SessionOutputAudioDelta is { } __value8 && sessionOutputAudioDelta != null) { - return sessionOutputAudioDelta(SessionOutputAudioDelta!); + return sessionOutputAudioDelta(__value8); } - else if (IsSessionInputTranscriptDelta && sessionInputTranscriptDelta != null) + else if (SessionInputTranscriptDelta is { } __value9 && sessionInputTranscriptDelta != null) { - return sessionInputTranscriptDelta(SessionInputTranscriptDelta!); + return sessionInputTranscriptDelta(__value9); } - else if (IsSessionOutputTranscriptDelta && sessionOutputTranscriptDelta != null) + else if (SessionOutputTranscriptDelta is { } __value10 && sessionOutputTranscriptDelta != null) { - return sessionOutputTranscriptDelta(SessionOutputTranscriptDelta!); + return sessionOutputTranscriptDelta(__value10); } - else if (IsSessionDelegationCreated && sessionDelegationCreated != null) + else if (SessionDelegationCreated is { } __value11 && sessionDelegationCreated != null) { - return sessionDelegationCreated(SessionDelegationCreated!); + return sessionDelegationCreated(__value11); } - else if (IsResponseEvent && responseEvent != null) + else if (ResponseEvent is { } __value12 && responseEvent != null) { - return responseEvent(ResponseEvent!); + return responseEvent(__value12); } - else if (IsSessionUsageUpdated && sessionUsageUpdated != null) + else if (SessionUsageUpdated is { } __value13 && sessionUsageUpdated != null) { - return sessionUsageUpdated(SessionUsageUpdated!); + return sessionUsageUpdated(__value13); } - else if (IsSessionClosed && sessionClosed != null) + else if (SessionClosed is { } __value14 && sessionClosed != null) { - return sessionClosed(SessionClosed!); + return sessionClosed(__value14); } - else if (IsError && error != null) + else if (Error is { } __value15 && error != null) { - return error(Error!); + return error(__value15); } - else if (IsInfo && info != null) + else if (Info is { } __value16 && info != null) { - return info(Info!); + return info(__value16); } - else if (IsTransportDtmfReceived && transportDtmfReceived != null) + else if (TransportDtmfReceived is { } __value17 && transportDtmfReceived != null) { - return transportDtmfReceived(TransportDtmfReceived!); + return transportDtmfReceived(__value17); } - else if (IsTransportDtmfSend && transportDtmfSend != null) + else if (TransportDtmfSend is { } __value18 && transportDtmfSend != null) { - return transportDtmfSend(TransportDtmfSend!); + return transportDtmfSend(__value18); } - else if (IsTransportRinging && transportRinging != null) + else if (TransportRinging is { } __value19 && transportRinging != null) { - return transportRinging(TransportRinging!); + return transportRinging(__value19); } - else if (IsTransportAnswered && transportAnswered != null) + else if (TransportAnswered is { } __value20 && transportAnswered != null) { - return transportAnswered(TransportAnswered!); + return transportAnswered(__value20); } - else if (IsTransportFailed && transportFailed != null) + else if (TransportFailed is { } __value21 && transportFailed != null) { - return transportFailed(TransportFailed!); + return transportFailed(__value21); } return default(TResult); @@ -1653,93 +1653,93 @@ public void Match( Validate(); } - if (IsSessionStarted) + if (SessionStarted is { } __value0) { - sessionStarted?.Invoke(SessionStarted!); + sessionStarted?.Invoke(__value0); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value1) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value1); } - else if (IsSessionInputAudioMuted) + else if (SessionInputAudioMuted is { } __value2) { - sessionInputAudioMuted?.Invoke(SessionInputAudioMuted!); + sessionInputAudioMuted?.Invoke(__value2); } - else if (IsSessionInputAudioUnmuted) + else if (SessionInputAudioUnmuted is { } __value3) { - sessionInputAudioUnmuted?.Invoke(SessionInputAudioUnmuted!); + sessionInputAudioUnmuted?.Invoke(__value3); } - else if (IsSessionInstructionsAppended) + else if (SessionInstructionsAppended is { } __value4) { - sessionInstructionsAppended?.Invoke(SessionInstructionsAppended!); + sessionInstructionsAppended?.Invoke(__value4); } - else if (IsSessionThinkingAppended) + else if (SessionThinkingAppended is { } __value5) { - sessionThinkingAppended?.Invoke(SessionThinkingAppended!); + sessionThinkingAppended?.Invoke(__value5); } - else if (IsSessionCommentaryAppended) + else if (SessionCommentaryAppended is { } __value6) { - sessionCommentaryAppended?.Invoke(SessionCommentaryAppended!); + sessionCommentaryAppended?.Invoke(__value6); } - else if (IsSessionInputAudioAppend) + else if (SessionInputAudioAppend is { } __value7) { - sessionInputAudioAppend?.Invoke(SessionInputAudioAppend!); + sessionInputAudioAppend?.Invoke(__value7); } - else if (IsSessionOutputAudioDelta) + else if (SessionOutputAudioDelta is { } __value8) { - sessionOutputAudioDelta?.Invoke(SessionOutputAudioDelta!); + sessionOutputAudioDelta?.Invoke(__value8); } - else if (IsSessionInputTranscriptDelta) + else if (SessionInputTranscriptDelta is { } __value9) { - sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + sessionInputTranscriptDelta?.Invoke(__value9); } - else if (IsSessionOutputTranscriptDelta) + else if (SessionOutputTranscriptDelta is { } __value10) { - sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + sessionOutputTranscriptDelta?.Invoke(__value10); } - else if (IsSessionDelegationCreated) + else if (SessionDelegationCreated is { } __value11) { - sessionDelegationCreated?.Invoke(SessionDelegationCreated!); + sessionDelegationCreated?.Invoke(__value11); } - else if (IsResponseEvent) + else if (ResponseEvent is { } __value12) { - responseEvent?.Invoke(ResponseEvent!); + responseEvent?.Invoke(__value12); } - else if (IsSessionUsageUpdated) + else if (SessionUsageUpdated is { } __value13) { - sessionUsageUpdated?.Invoke(SessionUsageUpdated!); + sessionUsageUpdated?.Invoke(__value13); } - else if (IsSessionClosed) + else if (SessionClosed is { } __value14) { - sessionClosed?.Invoke(SessionClosed!); + sessionClosed?.Invoke(__value14); } - else if (IsError) + else if (Error is { } __value15) { - error?.Invoke(Error!); + error?.Invoke(__value15); } - else if (IsInfo) + else if (Info is { } __value16) { - info?.Invoke(Info!); + info?.Invoke(__value16); } - else if (IsTransportDtmfReceived) + else if (TransportDtmfReceived is { } __value17) { - transportDtmfReceived?.Invoke(TransportDtmfReceived!); + transportDtmfReceived?.Invoke(__value17); } - else if (IsTransportDtmfSend) + else if (TransportDtmfSend is { } __value18) { - transportDtmfSend?.Invoke(TransportDtmfSend!); + transportDtmfSend?.Invoke(__value18); } - else if (IsTransportRinging) + else if (TransportRinging is { } __value19) { - transportRinging?.Invoke(TransportRinging!); + transportRinging?.Invoke(__value19); } - else if (IsTransportAnswered) + else if (TransportAnswered is { } __value20) { - transportAnswered?.Invoke(TransportAnswered!); + transportAnswered?.Invoke(__value20); } - else if (IsTransportFailed) + else if (TransportFailed is { } __value21) { - transportFailed?.Invoke(TransportFailed!); + transportFailed?.Invoke(__value21); } } @@ -1776,93 +1776,93 @@ public void Switch( Validate(); } - if (IsSessionStarted) + if (SessionStarted is { } __value0) { - sessionStarted?.Invoke(SessionStarted!); + sessionStarted?.Invoke(__value0); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value1) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value1); } - else if (IsSessionInputAudioMuted) + else if (SessionInputAudioMuted is { } __value2) { - sessionInputAudioMuted?.Invoke(SessionInputAudioMuted!); + sessionInputAudioMuted?.Invoke(__value2); } - else if (IsSessionInputAudioUnmuted) + else if (SessionInputAudioUnmuted is { } __value3) { - sessionInputAudioUnmuted?.Invoke(SessionInputAudioUnmuted!); + sessionInputAudioUnmuted?.Invoke(__value3); } - else if (IsSessionInstructionsAppended) + else if (SessionInstructionsAppended is { } __value4) { - sessionInstructionsAppended?.Invoke(SessionInstructionsAppended!); + sessionInstructionsAppended?.Invoke(__value4); } - else if (IsSessionThinkingAppended) + else if (SessionThinkingAppended is { } __value5) { - sessionThinkingAppended?.Invoke(SessionThinkingAppended!); + sessionThinkingAppended?.Invoke(__value5); } - else if (IsSessionCommentaryAppended) + else if (SessionCommentaryAppended is { } __value6) { - sessionCommentaryAppended?.Invoke(SessionCommentaryAppended!); + sessionCommentaryAppended?.Invoke(__value6); } - else if (IsSessionInputAudioAppend) + else if (SessionInputAudioAppend is { } __value7) { - sessionInputAudioAppend?.Invoke(SessionInputAudioAppend!); + sessionInputAudioAppend?.Invoke(__value7); } - else if (IsSessionOutputAudioDelta) + else if (SessionOutputAudioDelta is { } __value8) { - sessionOutputAudioDelta?.Invoke(SessionOutputAudioDelta!); + sessionOutputAudioDelta?.Invoke(__value8); } - else if (IsSessionInputTranscriptDelta) + else if (SessionInputTranscriptDelta is { } __value9) { - sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + sessionInputTranscriptDelta?.Invoke(__value9); } - else if (IsSessionOutputTranscriptDelta) + else if (SessionOutputTranscriptDelta is { } __value10) { - sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + sessionOutputTranscriptDelta?.Invoke(__value10); } - else if (IsSessionDelegationCreated) + else if (SessionDelegationCreated is { } __value11) { - sessionDelegationCreated?.Invoke(SessionDelegationCreated!); + sessionDelegationCreated?.Invoke(__value11); } - else if (IsResponseEvent) + else if (ResponseEvent is { } __value12) { - responseEvent?.Invoke(ResponseEvent!); + responseEvent?.Invoke(__value12); } - else if (IsSessionUsageUpdated) + else if (SessionUsageUpdated is { } __value13) { - sessionUsageUpdated?.Invoke(SessionUsageUpdated!); + sessionUsageUpdated?.Invoke(__value13); } - else if (IsSessionClosed) + else if (SessionClosed is { } __value14) { - sessionClosed?.Invoke(SessionClosed!); + sessionClosed?.Invoke(__value14); } - else if (IsError) + else if (Error is { } __value15) { - error?.Invoke(Error!); + error?.Invoke(__value15); } - else if (IsInfo) + else if (Info is { } __value16) { - info?.Invoke(Info!); + info?.Invoke(__value16); } - else if (IsTransportDtmfReceived) + else if (TransportDtmfReceived is { } __value17) { - transportDtmfReceived?.Invoke(TransportDtmfReceived!); + transportDtmfReceived?.Invoke(__value17); } - else if (IsTransportDtmfSend) + else if (TransportDtmfSend is { } __value18) { - transportDtmfSend?.Invoke(TransportDtmfSend!); + transportDtmfSend?.Invoke(__value18); } - else if (IsTransportRinging) + else if (TransportRinging is { } __value19) { - transportRinging?.Invoke(TransportRinging!); + transportRinging?.Invoke(__value19); } - else if (IsTransportAnswered) + else if (TransportAnswered is { } __value20) { - transportAnswered?.Invoke(TransportAnswered!); + transportAnswered?.Invoke(__value20); } - else if (IsTransportFailed) + else if (TransportFailed is { } __value21) { - transportFailed?.Invoke(TransportFailed!); + transportFailed?.Invoke(__value21); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandClientEvent.g.cs index 69474e497..76a9ab11f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandClientEvent.g.cs @@ -48,8 +48,8 @@ public bool TryPickSessionUpdate( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdateParam PickSessionUpdate() => IsSessionUpdate - ? SessionUpdate! + public global::tryAGI.OpenAI.LiveSessionUpdateParam PickSessionUpdate() => SessionUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdate' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickSessionInputAudioMute( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuteParam PickSessionInputAudioMute() => IsSessionInputAudioMute - ? SessionInputAudioMute! + public global::tryAGI.OpenAI.LiveInputAudioMuteParam PickSessionInputAudioMute() => SessionInputAudioMute is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioMute' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickSessionInputAudioUnmute( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam PickSessionInputAudioUnmute() => IsSessionInputAudioUnmute - ? SessionInputAudioUnmute! + public global::tryAGI.OpenAI.LiveInputAudioUnmuteParam PickSessionInputAudioUnmute() => SessionInputAudioUnmute is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioUnmute' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickSessionInstructionsAppend( /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppendParam PickSessionInstructionsAppend() => IsSessionInstructionsAppend - ? SessionInstructionsAppend! + public global::tryAGI.OpenAI.LiveInstructionsAppendParam PickSessionInstructionsAppend() => SessionInstructionsAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInstructionsAppend' but the value was {ToString()}."); /// @@ -200,8 +200,8 @@ public bool TryPickSessionThinkingAppend( /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppendParam PickSessionThinkingAppend() => IsSessionThinkingAppend - ? SessionThinkingAppend! + public global::tryAGI.OpenAI.LiveThinkingAppendParam PickSessionThinkingAppend() => SessionThinkingAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionThinkingAppend' but the value was {ToString()}."); /// @@ -238,8 +238,8 @@ public bool TryPickSessionCommentaryAppend( /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppendParam PickSessionCommentaryAppend() => IsSessionCommentaryAppend - ? SessionCommentaryAppend! + public global::tryAGI.OpenAI.LiveCommentaryAppendParam PickSessionCommentaryAppend() => SessionCommentaryAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCommentaryAppend' but the value was {ToString()}."); /// @@ -276,8 +276,8 @@ public bool TryPickResponseItemCreate( /// /// /// - public global::tryAGI.OpenAI.LiveResponseItemCreateParam PickResponseItemCreate() => IsResponseItemCreate - ? ResponseItemCreate! + public global::tryAGI.OpenAI.LiveResponseItemCreateParam PickResponseItemCreate() => ResponseItemCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseItemCreate' but the value was {ToString()}."); /// @@ -314,8 +314,8 @@ public bool TryPickResponseCreate( /// /// /// - public global::tryAGI.OpenAI.LiveResponseCreateParam PickResponseCreate() => IsResponseCreate - ? ResponseCreate! + public global::tryAGI.OpenAI.LiveResponseCreateParam PickResponseCreate() => ResponseCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreate' but the value was {ToString()}."); /// @@ -352,8 +352,8 @@ public bool TryPickSessionClose( /// /// /// - public global::tryAGI.OpenAI.LiveSessionCloseParam PickSessionClose() => IsSessionClose - ? SessionClose! + public global::tryAGI.OpenAI.LiveSessionCloseParam PickSessionClose() => SessionClose is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClose' but the value was {ToString()}."); /// /// @@ -649,41 +649,41 @@ public bool Validate() Validate(); } - if (IsSessionUpdate && sessionUpdate != null) + if (SessionUpdate is { } __value0 && sessionUpdate != null) { - return sessionUpdate(SessionUpdate!); + return sessionUpdate(__value0); } - else if (IsSessionInputAudioMute && sessionInputAudioMute != null) + else if (SessionInputAudioMute is { } __value1 && sessionInputAudioMute != null) { - return sessionInputAudioMute(SessionInputAudioMute!); + return sessionInputAudioMute(__value1); } - else if (IsSessionInputAudioUnmute && sessionInputAudioUnmute != null) + else if (SessionInputAudioUnmute is { } __value2 && sessionInputAudioUnmute != null) { - return sessionInputAudioUnmute(SessionInputAudioUnmute!); + return sessionInputAudioUnmute(__value2); } - else if (IsSessionInstructionsAppend && sessionInstructionsAppend != null) + else if (SessionInstructionsAppend is { } __value3 && sessionInstructionsAppend != null) { - return sessionInstructionsAppend(SessionInstructionsAppend!); + return sessionInstructionsAppend(__value3); } - else if (IsSessionThinkingAppend && sessionThinkingAppend != null) + else if (SessionThinkingAppend is { } __value4 && sessionThinkingAppend != null) { - return sessionThinkingAppend(SessionThinkingAppend!); + return sessionThinkingAppend(__value4); } - else if (IsSessionCommentaryAppend && sessionCommentaryAppend != null) + else if (SessionCommentaryAppend is { } __value5 && sessionCommentaryAppend != null) { - return sessionCommentaryAppend(SessionCommentaryAppend!); + return sessionCommentaryAppend(__value5); } - else if (IsResponseItemCreate && responseItemCreate != null) + else if (ResponseItemCreate is { } __value6 && responseItemCreate != null) { - return responseItemCreate(ResponseItemCreate!); + return responseItemCreate(__value6); } - else if (IsResponseCreate && responseCreate != null) + else if (ResponseCreate is { } __value7 && responseCreate != null) { - return responseCreate(ResponseCreate!); + return responseCreate(__value7); } - else if (IsSessionClose && sessionClose != null) + else if (SessionClose is { } __value8 && sessionClose != null) { - return sessionClose(SessionClose!); + return sessionClose(__value8); } return default(TResult); @@ -717,41 +717,41 @@ public void Match( Validate(); } - if (IsSessionUpdate) + if (SessionUpdate is { } __value0) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value0); } - else if (IsSessionInputAudioMute) + else if (SessionInputAudioMute is { } __value1) { - sessionInputAudioMute?.Invoke(SessionInputAudioMute!); + sessionInputAudioMute?.Invoke(__value1); } - else if (IsSessionInputAudioUnmute) + else if (SessionInputAudioUnmute is { } __value2) { - sessionInputAudioUnmute?.Invoke(SessionInputAudioUnmute!); + sessionInputAudioUnmute?.Invoke(__value2); } - else if (IsSessionInstructionsAppend) + else if (SessionInstructionsAppend is { } __value3) { - sessionInstructionsAppend?.Invoke(SessionInstructionsAppend!); + sessionInstructionsAppend?.Invoke(__value3); } - else if (IsSessionThinkingAppend) + else if (SessionThinkingAppend is { } __value4) { - sessionThinkingAppend?.Invoke(SessionThinkingAppend!); + sessionThinkingAppend?.Invoke(__value4); } - else if (IsSessionCommentaryAppend) + else if (SessionCommentaryAppend is { } __value5) { - sessionCommentaryAppend?.Invoke(SessionCommentaryAppend!); + sessionCommentaryAppend?.Invoke(__value5); } - else if (IsResponseItemCreate) + else if (ResponseItemCreate is { } __value6) { - responseItemCreate?.Invoke(ResponseItemCreate!); + responseItemCreate?.Invoke(__value6); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value7) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value7); } - else if (IsSessionClose) + else if (SessionClose is { } __value8) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value8); } } @@ -775,41 +775,41 @@ public void Switch( Validate(); } - if (IsSessionUpdate) + if (SessionUpdate is { } __value0) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value0); } - else if (IsSessionInputAudioMute) + else if (SessionInputAudioMute is { } __value1) { - sessionInputAudioMute?.Invoke(SessionInputAudioMute!); + sessionInputAudioMute?.Invoke(__value1); } - else if (IsSessionInputAudioUnmute) + else if (SessionInputAudioUnmute is { } __value2) { - sessionInputAudioUnmute?.Invoke(SessionInputAudioUnmute!); + sessionInputAudioUnmute?.Invoke(__value2); } - else if (IsSessionInstructionsAppend) + else if (SessionInstructionsAppend is { } __value3) { - sessionInstructionsAppend?.Invoke(SessionInstructionsAppend!); + sessionInstructionsAppend?.Invoke(__value3); } - else if (IsSessionThinkingAppend) + else if (SessionThinkingAppend is { } __value4) { - sessionThinkingAppend?.Invoke(SessionThinkingAppend!); + sessionThinkingAppend?.Invoke(__value4); } - else if (IsSessionCommentaryAppend) + else if (SessionCommentaryAppend is { } __value5) { - sessionCommentaryAppend?.Invoke(SessionCommentaryAppend!); + sessionCommentaryAppend?.Invoke(__value5); } - else if (IsResponseItemCreate) + else if (ResponseItemCreate is { } __value6) { - responseItemCreate?.Invoke(ResponseItemCreate!); + responseItemCreate?.Invoke(__value6); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value7) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value7); } - else if (IsSessionClose) + else if (SessionClose is { } __value8) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandServerEvent.g.cs index 48d0bca58..2c21d6c12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveSidebandServerEvent.g.cs @@ -48,8 +48,8 @@ public bool TryPickSessionStarted( /// /// /// - public global::tryAGI.OpenAI.LiveSessionStarted PickSessionStarted() => IsSessionStarted - ? SessionStarted! + public global::tryAGI.OpenAI.LiveSessionStarted PickSessionStarted() => SessionStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionStarted' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickSessionUpdated( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUpdated PickSessionUpdated() => IsSessionUpdated - ? SessionUpdated! + public global::tryAGI.OpenAI.LiveSessionUpdated PickSessionUpdated() => SessionUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdated' but the value was {ToString()}."); /// @@ -124,8 +124,8 @@ public bool TryPickSessionInputAudioMuted( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioMuted PickSessionInputAudioMuted() => IsSessionInputAudioMuted - ? SessionInputAudioMuted! + public global::tryAGI.OpenAI.LiveInputAudioMuted PickSessionInputAudioMuted() => SessionInputAudioMuted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioMuted' but the value was {ToString()}."); /// @@ -162,8 +162,8 @@ public bool TryPickSessionInputAudioUnmuted( /// /// /// - public global::tryAGI.OpenAI.LiveInputAudioUnmuted PickSessionInputAudioUnmuted() => IsSessionInputAudioUnmuted - ? SessionInputAudioUnmuted! + public global::tryAGI.OpenAI.LiveInputAudioUnmuted PickSessionInputAudioUnmuted() => SessionInputAudioUnmuted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioUnmuted' but the value was {ToString()}."); /// @@ -200,8 +200,8 @@ public bool TryPickSessionInstructionsAppended( /// /// /// - public global::tryAGI.OpenAI.LiveInstructionsAppended PickSessionInstructionsAppended() => IsSessionInstructionsAppended - ? SessionInstructionsAppended! + public global::tryAGI.OpenAI.LiveInstructionsAppended PickSessionInstructionsAppended() => SessionInstructionsAppended is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInstructionsAppended' but the value was {ToString()}."); /// @@ -238,8 +238,8 @@ public bool TryPickSessionThinkingAppended( /// /// /// - public global::tryAGI.OpenAI.LiveThinkingAppended PickSessionThinkingAppended() => IsSessionThinkingAppended - ? SessionThinkingAppended! + public global::tryAGI.OpenAI.LiveThinkingAppended PickSessionThinkingAppended() => SessionThinkingAppended is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionThinkingAppended' but the value was {ToString()}."); /// @@ -276,8 +276,8 @@ public bool TryPickSessionCommentaryAppended( /// /// /// - public global::tryAGI.OpenAI.LiveCommentaryAppended PickSessionCommentaryAppended() => IsSessionCommentaryAppended - ? SessionCommentaryAppended! + public global::tryAGI.OpenAI.LiveCommentaryAppended PickSessionCommentaryAppended() => SessionCommentaryAppended is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCommentaryAppended' but the value was {ToString()}."); /// @@ -314,8 +314,8 @@ public bool TryPickSessionInputTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.LiveInputTranscriptDelta PickSessionInputTranscriptDelta() => IsSessionInputTranscriptDelta - ? SessionInputTranscriptDelta! + public global::tryAGI.OpenAI.LiveInputTranscriptDelta PickSessionInputTranscriptDelta() => SessionInputTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputTranscriptDelta' but the value was {ToString()}."); /// @@ -352,8 +352,8 @@ public bool TryPickSessionOutputTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.LiveOutputTranscriptDelta PickSessionOutputTranscriptDelta() => IsSessionOutputTranscriptDelta - ? SessionOutputTranscriptDelta! + public global::tryAGI.OpenAI.LiveOutputTranscriptDelta PickSessionOutputTranscriptDelta() => SessionOutputTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionOutputTranscriptDelta' but the value was {ToString()}."); /// @@ -390,8 +390,8 @@ public bool TryPickSessionDelegationCreated( /// /// /// - public global::tryAGI.OpenAI.LiveDelegationCreated PickSessionDelegationCreated() => IsSessionDelegationCreated - ? SessionDelegationCreated! + public global::tryAGI.OpenAI.LiveDelegationCreated PickSessionDelegationCreated() => SessionDelegationCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionDelegationCreated' but the value was {ToString()}."); /// @@ -428,8 +428,8 @@ public bool TryPickResponseEvent( /// /// /// - public global::tryAGI.OpenAI.LiveResponseEvent PickResponseEvent() => IsResponseEvent - ? ResponseEvent! + public global::tryAGI.OpenAI.LiveResponseEvent PickResponseEvent() => ResponseEvent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseEvent' but the value was {ToString()}."); /// @@ -466,8 +466,8 @@ public bool TryPickSessionUsageUpdated( /// /// /// - public global::tryAGI.OpenAI.LiveSessionUsageUpdated PickSessionUsageUpdated() => IsSessionUsageUpdated - ? SessionUsageUpdated! + public global::tryAGI.OpenAI.LiveSessionUsageUpdated PickSessionUsageUpdated() => SessionUsageUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUsageUpdated' but the value was {ToString()}."); /// @@ -504,8 +504,8 @@ public bool TryPickSessionClosed( /// /// /// - public global::tryAGI.OpenAI.LiveSessionClosed PickSessionClosed() => IsSessionClosed - ? SessionClosed! + public global::tryAGI.OpenAI.LiveSessionClosed PickSessionClosed() => SessionClosed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClosed' but the value was {ToString()}."); /// @@ -542,8 +542,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.LiveErrorEvent PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.LiveErrorEvent PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -580,8 +580,8 @@ public bool TryPickInfo( /// /// /// - public global::tryAGI.OpenAI.LiveInfoEvent PickInfo() => IsInfo - ? Info! + public global::tryAGI.OpenAI.LiveInfoEvent PickInfo() => Info is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Info' but the value was {ToString()}."); /// /// @@ -1045,65 +1045,65 @@ public bool Validate() Validate(); } - if (IsSessionStarted && sessionStarted != null) + if (SessionStarted is { } __value0 && sessionStarted != null) { - return sessionStarted(SessionStarted!); + return sessionStarted(__value0); } - else if (IsSessionUpdated && sessionUpdated != null) + else if (SessionUpdated is { } __value1 && sessionUpdated != null) { - return sessionUpdated(SessionUpdated!); + return sessionUpdated(__value1); } - else if (IsSessionInputAudioMuted && sessionInputAudioMuted != null) + else if (SessionInputAudioMuted is { } __value2 && sessionInputAudioMuted != null) { - return sessionInputAudioMuted(SessionInputAudioMuted!); + return sessionInputAudioMuted(__value2); } - else if (IsSessionInputAudioUnmuted && sessionInputAudioUnmuted != null) + else if (SessionInputAudioUnmuted is { } __value3 && sessionInputAudioUnmuted != null) { - return sessionInputAudioUnmuted(SessionInputAudioUnmuted!); + return sessionInputAudioUnmuted(__value3); } - else if (IsSessionInstructionsAppended && sessionInstructionsAppended != null) + else if (SessionInstructionsAppended is { } __value4 && sessionInstructionsAppended != null) { - return sessionInstructionsAppended(SessionInstructionsAppended!); + return sessionInstructionsAppended(__value4); } - else if (IsSessionThinkingAppended && sessionThinkingAppended != null) + else if (SessionThinkingAppended is { } __value5 && sessionThinkingAppended != null) { - return sessionThinkingAppended(SessionThinkingAppended!); + return sessionThinkingAppended(__value5); } - else if (IsSessionCommentaryAppended && sessionCommentaryAppended != null) + else if (SessionCommentaryAppended is { } __value6 && sessionCommentaryAppended != null) { - return sessionCommentaryAppended(SessionCommentaryAppended!); + return sessionCommentaryAppended(__value6); } - else if (IsSessionInputTranscriptDelta && sessionInputTranscriptDelta != null) + else if (SessionInputTranscriptDelta is { } __value7 && sessionInputTranscriptDelta != null) { - return sessionInputTranscriptDelta(SessionInputTranscriptDelta!); + return sessionInputTranscriptDelta(__value7); } - else if (IsSessionOutputTranscriptDelta && sessionOutputTranscriptDelta != null) + else if (SessionOutputTranscriptDelta is { } __value8 && sessionOutputTranscriptDelta != null) { - return sessionOutputTranscriptDelta(SessionOutputTranscriptDelta!); + return sessionOutputTranscriptDelta(__value8); } - else if (IsSessionDelegationCreated && sessionDelegationCreated != null) + else if (SessionDelegationCreated is { } __value9 && sessionDelegationCreated != null) { - return sessionDelegationCreated(SessionDelegationCreated!); + return sessionDelegationCreated(__value9); } - else if (IsResponseEvent && responseEvent != null) + else if (ResponseEvent is { } __value10 && responseEvent != null) { - return responseEvent(ResponseEvent!); + return responseEvent(__value10); } - else if (IsSessionUsageUpdated && sessionUsageUpdated != null) + else if (SessionUsageUpdated is { } __value11 && sessionUsageUpdated != null) { - return sessionUsageUpdated(SessionUsageUpdated!); + return sessionUsageUpdated(__value11); } - else if (IsSessionClosed && sessionClosed != null) + else if (SessionClosed is { } __value12 && sessionClosed != null) { - return sessionClosed(SessionClosed!); + return sessionClosed(__value12); } - else if (IsError && error != null) + else if (Error is { } __value13 && error != null) { - return error(Error!); + return error(__value13); } - else if (IsInfo && info != null) + else if (Info is { } __value14 && info != null) { - return info(Info!); + return info(__value14); } return default(TResult); @@ -1149,65 +1149,65 @@ public void Match( Validate(); } - if (IsSessionStarted) + if (SessionStarted is { } __value0) { - sessionStarted?.Invoke(SessionStarted!); + sessionStarted?.Invoke(__value0); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value1) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value1); } - else if (IsSessionInputAudioMuted) + else if (SessionInputAudioMuted is { } __value2) { - sessionInputAudioMuted?.Invoke(SessionInputAudioMuted!); + sessionInputAudioMuted?.Invoke(__value2); } - else if (IsSessionInputAudioUnmuted) + else if (SessionInputAudioUnmuted is { } __value3) { - sessionInputAudioUnmuted?.Invoke(SessionInputAudioUnmuted!); + sessionInputAudioUnmuted?.Invoke(__value3); } - else if (IsSessionInstructionsAppended) + else if (SessionInstructionsAppended is { } __value4) { - sessionInstructionsAppended?.Invoke(SessionInstructionsAppended!); + sessionInstructionsAppended?.Invoke(__value4); } - else if (IsSessionThinkingAppended) + else if (SessionThinkingAppended is { } __value5) { - sessionThinkingAppended?.Invoke(SessionThinkingAppended!); + sessionThinkingAppended?.Invoke(__value5); } - else if (IsSessionCommentaryAppended) + else if (SessionCommentaryAppended is { } __value6) { - sessionCommentaryAppended?.Invoke(SessionCommentaryAppended!); + sessionCommentaryAppended?.Invoke(__value6); } - else if (IsSessionInputTranscriptDelta) + else if (SessionInputTranscriptDelta is { } __value7) { - sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + sessionInputTranscriptDelta?.Invoke(__value7); } - else if (IsSessionOutputTranscriptDelta) + else if (SessionOutputTranscriptDelta is { } __value8) { - sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + sessionOutputTranscriptDelta?.Invoke(__value8); } - else if (IsSessionDelegationCreated) + else if (SessionDelegationCreated is { } __value9) { - sessionDelegationCreated?.Invoke(SessionDelegationCreated!); + sessionDelegationCreated?.Invoke(__value9); } - else if (IsResponseEvent) + else if (ResponseEvent is { } __value10) { - responseEvent?.Invoke(ResponseEvent!); + responseEvent?.Invoke(__value10); } - else if (IsSessionUsageUpdated) + else if (SessionUsageUpdated is { } __value11) { - sessionUsageUpdated?.Invoke(SessionUsageUpdated!); + sessionUsageUpdated?.Invoke(__value11); } - else if (IsSessionClosed) + else if (SessionClosed is { } __value12) { - sessionClosed?.Invoke(SessionClosed!); + sessionClosed?.Invoke(__value12); } - else if (IsError) + else if (Error is { } __value13) { - error?.Invoke(Error!); + error?.Invoke(__value13); } - else if (IsInfo) + else if (Info is { } __value14) { - info?.Invoke(Info!); + info?.Invoke(__value14); } } @@ -1237,65 +1237,65 @@ public void Switch( Validate(); } - if (IsSessionStarted) + if (SessionStarted is { } __value0) { - sessionStarted?.Invoke(SessionStarted!); + sessionStarted?.Invoke(__value0); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value1) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value1); } - else if (IsSessionInputAudioMuted) + else if (SessionInputAudioMuted is { } __value2) { - sessionInputAudioMuted?.Invoke(SessionInputAudioMuted!); + sessionInputAudioMuted?.Invoke(__value2); } - else if (IsSessionInputAudioUnmuted) + else if (SessionInputAudioUnmuted is { } __value3) { - sessionInputAudioUnmuted?.Invoke(SessionInputAudioUnmuted!); + sessionInputAudioUnmuted?.Invoke(__value3); } - else if (IsSessionInstructionsAppended) + else if (SessionInstructionsAppended is { } __value4) { - sessionInstructionsAppended?.Invoke(SessionInstructionsAppended!); + sessionInstructionsAppended?.Invoke(__value4); } - else if (IsSessionThinkingAppended) + else if (SessionThinkingAppended is { } __value5) { - sessionThinkingAppended?.Invoke(SessionThinkingAppended!); + sessionThinkingAppended?.Invoke(__value5); } - else if (IsSessionCommentaryAppended) + else if (SessionCommentaryAppended is { } __value6) { - sessionCommentaryAppended?.Invoke(SessionCommentaryAppended!); + sessionCommentaryAppended?.Invoke(__value6); } - else if (IsSessionInputTranscriptDelta) + else if (SessionInputTranscriptDelta is { } __value7) { - sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + sessionInputTranscriptDelta?.Invoke(__value7); } - else if (IsSessionOutputTranscriptDelta) + else if (SessionOutputTranscriptDelta is { } __value8) { - sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + sessionOutputTranscriptDelta?.Invoke(__value8); } - else if (IsSessionDelegationCreated) + else if (SessionDelegationCreated is { } __value9) { - sessionDelegationCreated?.Invoke(SessionDelegationCreated!); + sessionDelegationCreated?.Invoke(__value9); } - else if (IsResponseEvent) + else if (ResponseEvent is { } __value10) { - responseEvent?.Invoke(ResponseEvent!); + responseEvent?.Invoke(__value10); } - else if (IsSessionUsageUpdated) + else if (SessionUsageUpdated is { } __value11) { - sessionUsageUpdated?.Invoke(SessionUsageUpdated!); + sessionUsageUpdated?.Invoke(__value11); } - else if (IsSessionClosed) + else if (SessionClosed is { } __value12) { - sessionClosed?.Invoke(SessionClosed!); + sessionClosed?.Invoke(__value12); } - else if (IsError) + else if (Error is { } __value13) { - error?.Invoke(Error!); + error?.Invoke(__value13); } - else if (IsInfo) + else if (Info is { } __value14) { - info?.Invoke(Info!); + info?.Invoke(__value14); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveTransportDTMFSend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveTransportDTMFSend.g.cs index 57f1c3e4b..e341d5fb2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveTransportDTMFSend.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.LiveTransportDTMFSend.g.cs @@ -4,7 +4,7 @@ namespace tryAGI.OpenAI { /// - /// A SIP DTMF keypress successfully sent by the hosted tool. Delivered only to sideband observers; this is not a client command.
+ /// A SIP DTMF keypress successfully sent to the SIP trunk. Delivered only to sideband observers; this is not a client command.
/// Example: {"type":"transport.dtmf.send","event_id":"event_dtmf_2","event":"#"} ///
public sealed partial class LiveTransportDTMFSend @@ -31,6 +31,12 @@ public sealed partial class LiveTransportDTMFSend [global::System.Text.Json.Serialization.JsonRequired] public required string Event { get; set; } + /// + /// The event_id of the client command, when supplied. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("client_event_id")] + public string? ClientEventId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,6 +48,9 @@ public sealed partial class LiveTransportDTMFSend ///
/// /// + /// + /// The event_id of the client command, when supplied. + /// /// /// Default Value: transport.dtmf.send /// @@ -51,11 +60,13 @@ public sealed partial class LiveTransportDTMFSend public LiveTransportDTMFSend( string eventId, string @event, + string? clientEventId, global::tryAGI.OpenAI.LiveTransportDTMFSendType type = global::tryAGI.OpenAI.LiveTransportDTMFSendType.TransportDtmfSend) { this.Type = type; this.EventId = eventId ?? throw new global::System.ArgumentNullException(nameof(eventId)); this.Event = @event ?? throw new global::System.ArgumentNullException(nameof(@event)); + this.ClientEventId = clientEventId; } /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPToolCallError.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPToolCallError.g.cs index 1f543cb4d..401626a80 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPToolCallError.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MCPToolCallError.g.cs @@ -47,8 +47,8 @@ public bool TryPickMcpProtocolError( /// /// /// - public global::tryAGI.OpenAI.MCPProtocolError PickMcpProtocolError() => IsMcpProtocolError - ? McpProtocolError! + public global::tryAGI.OpenAI.MCPProtocolError PickMcpProtocolError() => McpProtocolError is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpProtocolError' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickMcpToolExecutionError( /// /// /// - public global::tryAGI.OpenAI.MCPToolExecutionError PickMcpToolExecutionError() => IsMcpToolExecutionError - ? McpToolExecutionError! + public global::tryAGI.OpenAI.MCPToolExecutionError PickMcpToolExecutionError() => McpToolExecutionError is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpToolExecutionError' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickHttpError( /// /// /// - public global::tryAGI.OpenAI.HTTPError PickHttpError() => IsHttpError - ? HttpError! + public global::tryAGI.OpenAI.HTTPError PickHttpError() => HttpError is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'HttpError' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsMcpProtocolError && mcpProtocolError != null) + if (McpProtocolError is { } __value0 && mcpProtocolError != null) { - return mcpProtocolError(McpProtocolError!); + return mcpProtocolError(__value0); } - else if (IsMcpToolExecutionError && mcpToolExecutionError != null) + else if (McpToolExecutionError is { } __value1 && mcpToolExecutionError != null) { - return mcpToolExecutionError(McpToolExecutionError!); + return mcpToolExecutionError(__value1); } - else if (IsHttpError && httpError != null) + else if (HttpError is { } __value2 && httpError != null) { - return httpError(HttpError!); + return httpError(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsMcpProtocolError) + if (McpProtocolError is { } __value0) { - mcpProtocolError?.Invoke(McpProtocolError!); + mcpProtocolError?.Invoke(__value0); } - else if (IsMcpToolExecutionError) + else if (McpToolExecutionError is { } __value1) { - mcpToolExecutionError?.Invoke(McpToolExecutionError!); + mcpToolExecutionError?.Invoke(__value1); } - else if (IsHttpError) + else if (HttpError is { } __value2) { - httpError?.Invoke(HttpError!); + httpError?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsMcpProtocolError) + if (McpProtocolError is { } __value0) { - mcpProtocolError?.Invoke(McpProtocolError!); + mcpProtocolError?.Invoke(__value0); } - else if (IsMcpToolExecutionError) + else if (McpToolExecutionError is { } __value1) { - mcpToolExecutionError?.Invoke(McpToolExecutionError!); + mcpToolExecutionError?.Invoke(__value1); } - else if (IsHttpError) + else if (HttpError is { } __value2) { - httpError?.Invoke(HttpError!); + httpError?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpOauthTokenEndpointAuthResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpOauthTokenEndpointAuthResource.g.cs index 62a24e2ef..5dbaa57a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpOauthTokenEndpointAuthResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpOauthTokenEndpointAuthResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickNone( /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone PickNone() => IsNone - ? None! + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceNone PickNone() => None is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'None' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickClientSecretBasic( /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic PickClientSecretBasic() => IsClientSecretBasic - ? ClientSecretBasic! + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretBasic PickClientSecretBasic() => ClientSecretBasic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ClientSecretBasic' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickClientSecretPost( /// /// /// - public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost PickClientSecretPost() => IsClientSecretPost - ? ClientSecretPost! + public global::tryAGI.OpenAI.McpOauthTokenEndpointAuthResourceClientSecretPost PickClientSecretPost() => ClientSecretPost is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ClientSecretPost' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsNone && none != null) + if (None is { } __value0 && none != null) { - return none(None!); + return none(__value0); } - else if (IsClientSecretBasic && clientSecretBasic != null) + else if (ClientSecretBasic is { } __value1 && clientSecretBasic != null) { - return clientSecretBasic(ClientSecretBasic!); + return clientSecretBasic(__value1); } - else if (IsClientSecretPost && clientSecretPost != null) + else if (ClientSecretPost is { } __value2 && clientSecretPost != null) { - return clientSecretPost(ClientSecretPost!); + return clientSecretPost(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsClientSecretBasic) + else if (ClientSecretBasic is { } __value1) { - clientSecretBasic?.Invoke(ClientSecretBasic!); + clientSecretBasic?.Invoke(__value1); } - else if (IsClientSecretPost) + else if (ClientSecretPost is { } __value2) { - clientSecretPost?.Invoke(ClientSecretPost!); + clientSecretPost?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsNone) + if (None is { } __value0) { - none?.Invoke(None!); + none?.Invoke(__value0); } - else if (IsClientSecretBasic) + else if (ClientSecretBasic is { } __value1) { - clientSecretBasic?.Invoke(ClientSecretBasic!); + clientSecretBasic?.Invoke(__value1); } - else if (IsClientSecretPost) + else if (ClientSecretPost is { } __value2) { - clientSecretPost?.Invoke(ClientSecretPost!); + clientSecretPost?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportConfigParam.g.cs index 60e349c0c..3954a427e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportConfigParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickHttp( /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamHttp PickHttp() => IsHttp - ? Http! + public global::tryAGI.OpenAI.McpTransportConfigParamHttp PickHttp() => Http is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Http' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStdio( /// /// /// - public global::tryAGI.OpenAI.McpTransportConfigParamStdio PickStdio() => IsStdio - ? Stdio! + public global::tryAGI.OpenAI.McpTransportConfigParamStdio PickStdio() => Stdio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Stdio' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsHttp && http != null) + if (Http is { } __value0 && http != null) { - return http(Http!); + return http(__value0); } - else if (IsStdio && stdio != null) + else if (Stdio is { } __value1 && stdio != null) { - return stdio(Stdio!); + return stdio(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportResource.g.cs index d3106dbde..71ff1e4ff 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.McpTransportResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickHttp( /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceHttp PickHttp() => IsHttp - ? Http! + public global::tryAGI.OpenAI.McpTransportResourceHttp PickHttp() => Http is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Http' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStdio( /// /// /// - public global::tryAGI.OpenAI.McpTransportResourceStdio PickStdio() => IsStdio - ? Stdio! + public global::tryAGI.OpenAI.McpTransportResourceStdio PickStdio() => Stdio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Stdio' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsHttp && http != null) + if (Http is { } __value0 && http != null) { - return http(Http!); + return http(__value0); } - else if (IsStdio && stdio != null) + else if (Stdio is { } __value1 && stdio != null) { - return stdio(Stdio!); + return stdio(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentResource.g.cs index 987ccbdfd..651ca9e2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputText PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.MessageContentResourceInputText PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceInputImage PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.MessageContentResourceInputImage PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.MessageContentResourceOutputText PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.MessageContentResourceOutputText PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsOutputText && outputText != null) + else if (OutputText is { } __value2 && outputText != null) { - return outputText(OutputText!); + return outputText(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsOutputText) + else if (OutputText is { } __value2) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsOutputText) + else if (OutputText is { } __value2) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs index 1899fa18b..0e6c00727 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickMessageStreamEventVariant1( /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1 PickMessageStreamEventVariant1() => IsMessageStreamEventVariant1 - ? MessageStreamEventVariant1! + public global::tryAGI.OpenAI.MessageStreamEventVariant1 PickMessageStreamEventVariant1() => MessageStreamEventVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MessageStreamEventVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickMessageStreamEventVariant2( /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2 PickMessageStreamEventVariant2() => IsMessageStreamEventVariant2 - ? MessageStreamEventVariant2! + public global::tryAGI.OpenAI.MessageStreamEventVariant2 PickMessageStreamEventVariant2() => MessageStreamEventVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MessageStreamEventVariant2' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickMessageStreamEventVariant3( /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3 PickMessageStreamEventVariant3() => IsMessageStreamEventVariant3 - ? MessageStreamEventVariant3! + public global::tryAGI.OpenAI.MessageStreamEventVariant3 PickMessageStreamEventVariant3() => MessageStreamEventVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MessageStreamEventVariant3' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickMessageStreamEventVariant4( /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4 PickMessageStreamEventVariant4() => IsMessageStreamEventVariant4 - ? MessageStreamEventVariant4! + public global::tryAGI.OpenAI.MessageStreamEventVariant4 PickMessageStreamEventVariant4() => MessageStreamEventVariant4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MessageStreamEventVariant4' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickMessageStreamEventVariant5( /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5 PickMessageStreamEventVariant5() => IsMessageStreamEventVariant5 - ? MessageStreamEventVariant5! + public global::tryAGI.OpenAI.MessageStreamEventVariant5 PickMessageStreamEventVariant5() => MessageStreamEventVariant5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MessageStreamEventVariant5' but the value was {ToString()}."); /// /// @@ -372,25 +372,25 @@ public bool Validate() Validate(); } - if (IsMessageStreamEventVariant1 && messageStreamEventVariant1 != null) + if (MessageStreamEventVariant1 is { } __value0 && messageStreamEventVariant1 != null) { - return messageStreamEventVariant1(MessageStreamEventVariant1!); + return messageStreamEventVariant1(__value0); } - else if (IsMessageStreamEventVariant2 && messageStreamEventVariant2 != null) + else if (MessageStreamEventVariant2 is { } __value1 && messageStreamEventVariant2 != null) { - return messageStreamEventVariant2(MessageStreamEventVariant2!); + return messageStreamEventVariant2(__value1); } - else if (IsMessageStreamEventVariant3 && messageStreamEventVariant3 != null) + else if (MessageStreamEventVariant3 is { } __value2 && messageStreamEventVariant3 != null) { - return messageStreamEventVariant3(MessageStreamEventVariant3!); + return messageStreamEventVariant3(__value2); } - else if (IsMessageStreamEventVariant4 && messageStreamEventVariant4 != null) + else if (MessageStreamEventVariant4 is { } __value3 && messageStreamEventVariant4 != null) { - return messageStreamEventVariant4(MessageStreamEventVariant4!); + return messageStreamEventVariant4(__value3); } - else if (IsMessageStreamEventVariant5 && messageStreamEventVariant5 != null) + else if (MessageStreamEventVariant5 is { } __value4 && messageStreamEventVariant5 != null) { - return messageStreamEventVariant5(MessageStreamEventVariant5!); + return messageStreamEventVariant5(__value4); } return default(TResult); @@ -416,25 +416,25 @@ public void Match( Validate(); } - if (IsMessageStreamEventVariant1) + if (MessageStreamEventVariant1 is { } __value0) { - messageStreamEventVariant1?.Invoke(MessageStreamEventVariant1!); + messageStreamEventVariant1?.Invoke(__value0); } - else if (IsMessageStreamEventVariant2) + else if (MessageStreamEventVariant2 is { } __value1) { - messageStreamEventVariant2?.Invoke(MessageStreamEventVariant2!); + messageStreamEventVariant2?.Invoke(__value1); } - else if (IsMessageStreamEventVariant3) + else if (MessageStreamEventVariant3 is { } __value2) { - messageStreamEventVariant3?.Invoke(MessageStreamEventVariant3!); + messageStreamEventVariant3?.Invoke(__value2); } - else if (IsMessageStreamEventVariant4) + else if (MessageStreamEventVariant4 is { } __value3) { - messageStreamEventVariant4?.Invoke(MessageStreamEventVariant4!); + messageStreamEventVariant4?.Invoke(__value3); } - else if (IsMessageStreamEventVariant5) + else if (MessageStreamEventVariant5 is { } __value4) { - messageStreamEventVariant5?.Invoke(MessageStreamEventVariant5!); + messageStreamEventVariant5?.Invoke(__value4); } } @@ -454,25 +454,25 @@ public void Switch( Validate(); } - if (IsMessageStreamEventVariant1) + if (MessageStreamEventVariant1 is { } __value0) { - messageStreamEventVariant1?.Invoke(MessageStreamEventVariant1!); + messageStreamEventVariant1?.Invoke(__value0); } - else if (IsMessageStreamEventVariant2) + else if (MessageStreamEventVariant2 is { } __value1) { - messageStreamEventVariant2?.Invoke(MessageStreamEventVariant2!); + messageStreamEventVariant2?.Invoke(__value1); } - else if (IsMessageStreamEventVariant3) + else if (MessageStreamEventVariant3 is { } __value2) { - messageStreamEventVariant3?.Invoke(MessageStreamEventVariant3!); + messageStreamEventVariant3?.Invoke(__value2); } - else if (IsMessageStreamEventVariant4) + else if (MessageStreamEventVariant4 is { } __value3) { - messageStreamEventVariant4?.Invoke(MessageStreamEventVariant4!); + messageStreamEventVariant4?.Invoke(__value3); } - else if (IsMessageStreamEventVariant5) + else if (MessageStreamEventVariant5 is { } __value4) { - messageStreamEventVariant5?.Invoke(MessageStreamEventVariant5!); + messageStreamEventVariant5?.Invoke(__value4); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MisalignmentErrorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MisalignmentErrorType.g.cs index 3d9d57bc3..3ceabc3e2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MisalignmentErrorType.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MisalignmentErrorType.g.cs @@ -42,8 +42,8 @@ public bool TryPickMisalignmentErrorTypeVariant1( /// /// /// - public string PickMisalignmentErrorTypeVariant1() => IsMisalignmentErrorTypeVariant1 - ? MisalignmentErrorTypeVariant1! + public string PickMisalignmentErrorTypeVariant1() => MisalignmentErrorTypeVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'MisalignmentErrorTypeVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.MisalignmentErrorTypeEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsMisalignmentErrorTypeVariant1 && misalignmentErrorTypeVariant1 != null) + if (MisalignmentErrorTypeVariant1 is { } __value0 && misalignmentErrorTypeVariant1 != null) { - return misalignmentErrorTypeVariant1(MisalignmentErrorTypeVariant1!); + return misalignmentErrorTypeVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsMisalignmentErrorTypeVariant1) + if (MisalignmentErrorTypeVariant1 is { } __value0) { - misalignmentErrorTypeVariant1?.Invoke(MisalignmentErrorTypeVariant1!); + misalignmentErrorTypeVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsMisalignmentErrorTypeVariant1) + if (MisalignmentErrorTypeVariant1 is { } __value0) { - misalignmentErrorTypeVariant1?.Invoke(MisalignmentErrorTypeVariant1!); + misalignmentErrorTypeVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs index 46798c406..89011682a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIds.g.cs @@ -42,8 +42,8 @@ public bool TryPickShared( /// /// /// - public global::tryAGI.OpenAI.ModelIdsShared PickShared() => IsShared - ? Shared!.Value + public global::tryAGI.OpenAI.ModelIdsShared PickShared() => Shared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shared' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses PickResponses() => IsResponses - ? Responses!.Value + public global::tryAGI.OpenAI.ModelIdsResponses PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsShared && shared != null) + if (Shared is { } __value0 && shared != null) { - return shared(Shared!); + return shared(__value0); } - else if (IsResponses && responses != null) + else if (Responses is { } __value1 && responses != null) { - return responses(Responses!); + return responses(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsResponses) + else if (Responses is { } __value1) { - responses?.Invoke(Responses!); + responses?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs index a7d1fd89f..0e83dd84b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs @@ -42,8 +42,8 @@ public bool TryPickResponses( /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses PickResponses() => IsResponses - ? Responses!.Value + public global::tryAGI.OpenAI.ModelIdsResponses PickResponses() => Responses is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Responses' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickModelIdsCompactionVariant2( /// /// /// - public string PickModelIdsCompactionVariant2() => IsModelIdsCompactionVariant2 - ? ModelIdsCompactionVariant2! + public string PickModelIdsCompactionVariant2() => ModelIdsCompactionVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelIdsCompactionVariant2' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickModelIdsCompactionVariant3( /// /// /// - public object PickModelIdsCompactionVariant3() => IsModelIdsCompactionVariant3 - ? ModelIdsCompactionVariant3! + public object PickModelIdsCompactionVariant3() => ModelIdsCompactionVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelIdsCompactionVariant3' but the value was {ToString()}."); /// /// @@ -219,17 +219,17 @@ public bool Validate() Validate(); } - if (IsResponses && responses != null) + if (Responses is { } __value0 && responses != null) { - return responses(Responses!); + return responses(__value0); } - else if (IsModelIdsCompactionVariant2 && modelIdsCompactionVariant2 != null) + else if (ModelIdsCompactionVariant2 is { } __value1 && modelIdsCompactionVariant2 != null) { - return modelIdsCompactionVariant2(ModelIdsCompactionVariant2!); + return modelIdsCompactionVariant2(__value1); } - else if (IsModelIdsCompactionVariant3 && modelIdsCompactionVariant3 != null) + else if (ModelIdsCompactionVariant3 is { } __value2 && modelIdsCompactionVariant3 != null) { - return modelIdsCompactionVariant3(ModelIdsCompactionVariant3!); + return modelIdsCompactionVariant3(__value2); } return default(TResult); @@ -251,17 +251,17 @@ public void Match( Validate(); } - if (IsResponses) + if (Responses is { } __value0) { - responses?.Invoke(Responses!); + responses?.Invoke(__value0); } - else if (IsModelIdsCompactionVariant2) + else if (ModelIdsCompactionVariant2 is { } __value1) { - modelIdsCompactionVariant2?.Invoke(ModelIdsCompactionVariant2!); + modelIdsCompactionVariant2?.Invoke(__value1); } - else if (IsModelIdsCompactionVariant3) + else if (ModelIdsCompactionVariant3 is { } __value2) { - modelIdsCompactionVariant3?.Invoke(ModelIdsCompactionVariant3!); + modelIdsCompactionVariant3?.Invoke(__value2); } } @@ -279,17 +279,17 @@ public void Switch( Validate(); } - if (IsResponses) + if (Responses is { } __value0) { - responses?.Invoke(Responses!); + responses?.Invoke(__value0); } - else if (IsModelIdsCompactionVariant2) + else if (ModelIdsCompactionVariant2 is { } __value1) { - modelIdsCompactionVariant2?.Invoke(ModelIdsCompactionVariant2!); + modelIdsCompactionVariant2?.Invoke(__value1); } - else if (IsModelIdsCompactionVariant3) + else if (ModelIdsCompactionVariant3 is { } __value2) { - modelIdsCompactionVariant3?.Invoke(ModelIdsCompactionVariant3!); + modelIdsCompactionVariant3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsLive.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsLive.g.cs index bcc8e864c..7d2f65d5c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsLive.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsLive.g.cs @@ -43,8 +43,8 @@ public bool TryPickModelIdsLiveVariant1( /// /// /// - public string PickModelIdsLiveVariant1() => IsModelIdsLiveVariant1 - ? ModelIdsLiveVariant1! + public string PickModelIdsLiveVariant1() => ModelIdsLiveVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelIdsLiveVariant1' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.ModelIdsLiveEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.ModelIdsLiveEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -178,13 +178,13 @@ public bool Validate() Validate(); } - if (IsModelIdsLiveVariant1 && modelIdsLiveVariant1 != null) + if (ModelIdsLiveVariant1 is { } __value0 && modelIdsLiveVariant1 != null) { - return modelIdsLiveVariant1(ModelIdsLiveVariant1!); + return modelIdsLiveVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -204,13 +204,13 @@ public void Match( Validate(); } - if (IsModelIdsLiveVariant1) + if (ModelIdsLiveVariant1 is { } __value0) { - modelIdsLiveVariant1?.Invoke(ModelIdsLiveVariant1!); + modelIdsLiveVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -227,13 +227,13 @@ public void Switch( Validate(); } - if (IsModelIdsLiveVariant1) + if (ModelIdsLiveVariant1 is { } __value0) { - modelIdsLiveVariant1?.Invoke(ModelIdsLiveVariant1!); + modelIdsLiveVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs index 5a61e4e72..9738c9803 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs @@ -42,8 +42,8 @@ public bool TryPickShared( /// /// /// - public global::tryAGI.OpenAI.ModelIdsShared PickShared() => IsShared - ? Shared!.Value + public global::tryAGI.OpenAI.ModelIdsShared PickShared() => Shared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shared' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickResponsesOnlyModel( /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum PickResponsesOnlyModel() => IsResponsesOnlyModel - ? ResponsesOnlyModel!.Value + public global::tryAGI.OpenAI.ModelIdsResponsesEnum PickResponsesOnlyModel() => ResponsesOnlyModel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesOnlyModel' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsShared && shared != null) + if (Shared is { } __value0 && shared != null) { - return shared(Shared!); + return shared(__value0); } - else if (IsResponsesOnlyModel && responsesOnlyModel != null) + else if (ResponsesOnlyModel is { } __value1 && responsesOnlyModel != null) { - return responsesOnlyModel(ResponsesOnlyModel!); + return responsesOnlyModel(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsResponsesOnlyModel) + else if (ResponsesOnlyModel is { } __value1) { - responsesOnlyModel?.Invoke(ResponsesOnlyModel!); + responsesOnlyModel?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsResponsesOnlyModel) + else if (ResponsesOnlyModel is { } __value1) { - responsesOnlyModel?.Invoke(ResponsesOnlyModel!); + responsesOnlyModel?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs index 8c870a753..c58edbe4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs @@ -42,8 +42,8 @@ public bool TryPickModelIdsSharedVariant1( /// /// /// - public string PickModelIdsSharedVariant1() => IsModelIdsSharedVariant1 - ? ModelIdsSharedVariant1! + public string PickModelIdsSharedVariant1() => ModelIdsSharedVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelIdsSharedVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.ModelIdsSharedEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.ModelIdsSharedEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsModelIdsSharedVariant1 && modelIdsSharedVariant1 != null) + if (ModelIdsSharedVariant1 is { } __value0 && modelIdsSharedVariant1 != null) { - return modelIdsSharedVariant1(ModelIdsSharedVariant1!); + return modelIdsSharedVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsModelIdsSharedVariant1) + if (ModelIdsSharedVariant1 is { } __value0) { - modelIdsSharedVariant1?.Invoke(ModelIdsSharedVariant1!); + modelIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsModelIdsSharedVariant1) + if (ModelIdsSharedVariant1 is { } __value0) { - modelIdsSharedVariant1?.Invoke(ModelIdsSharedVariant1!); + modelIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs index 43682000b..c3f3d4185 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs @@ -47,8 +47,8 @@ public bool TryPickDisabled( /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam PickDisabled() => IsDisabled - ? Disabled! + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam PickDisabled() => Disabled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAllowlist( /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam PickAllowlist() => IsAllowlist - ? Allowlist! + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam PickAllowlist() => Allowlist is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDisabled && disabled != null) + if (Disabled is { } __value0 && disabled != null) { - return disabled(Disabled!); + return disabled(__value0); } - else if (IsAllowlist && allowlist != null) + else if (Allowlist is { } __value1 && allowlist != null) { - return allowlist(Allowlist!); + return allowlist(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs index 60aea1f74..9306cec7e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs @@ -47,8 +47,8 @@ public bool TryPickDisabled( /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam PickDisabled() => IsDisabled - ? Disabled! + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam PickDisabled() => Disabled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAllowlist( /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam PickAllowlist() => IsAllowlist - ? Allowlist! + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam PickAllowlist() => Allowlist is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDisabled && disabled != null) + if (Disabled is { } __value0 && disabled != null) { - return disabled(Disabled!); + return disabled(__value0); } - else if (IsAllowlist && allowlist != null) + else if (Allowlist is { } __value1 && allowlist != null) { - return allowlist(Allowlist!); + return allowlist(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs index c550d47f5..17458dda3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs @@ -47,8 +47,8 @@ public bool TryPickDisabled( /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam PickDisabled() => IsDisabled - ? Disabled! + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam PickDisabled() => Disabled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAllowlist( /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam PickAllowlist() => IsAllowlist - ? Allowlist! + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam PickAllowlist() => Allowlist is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDisabled && disabled != null) + if (Disabled is { } __value0 && disabled != null) { - return disabled(Disabled!); + return disabled(__value0); } - else if (IsAllowlist && allowlist != null) + else if (Allowlist is { } __value1 && allowlist != null) { - return allowlist(Allowlist!); + return allowlist(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy4.g.cs index 042290f24..e3e86fc4a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy4.g.cs @@ -47,8 +47,8 @@ public bool TryPickDisabled( /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam PickDisabled() => IsDisabled - ? Disabled! + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam PickDisabled() => Disabled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAllowlist( /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam PickAllowlist() => IsAllowlist - ? Allowlist! + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam PickAllowlist() => Allowlist is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDisabled && disabled != null) + if (Disabled is { } __value0 && disabled != null) { - return disabled(Disabled!); + return disabled(__value0); } - else if (IsAllowlist && allowlist != null) + else if (Allowlist is { } __value1 && allowlist != null) { - return allowlist(Allowlist!); + return allowlist(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy5.g.cs index f0adb90c2..224ac63c1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy5.g.cs @@ -47,8 +47,8 @@ public bool TryPickDisabled( /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam PickDisabled() => IsDisabled - ? Disabled! + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyDisabledParam PickDisabled() => Disabled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAllowlist( /// /// /// - public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam PickAllowlist() => IsAllowlist - ? Allowlist! + public global::tryAGI.OpenAI.BetaContainerNetworkPolicyAllowlistParam PickAllowlist() => Allowlist is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDisabled && disabled != null) + if (Disabled is { } __value0 && disabled != null) { - return disabled(Disabled!); + return disabled(__value0); } - else if (IsAllowlist && allowlist != null) + else if (Allowlist is { } __value1 && allowlist != null) { - return allowlist(Allowlist!); + return allowlist(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDisabled) + if (Disabled is { } __value0) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value0); } - else if (IsAllowlist) + else if (Allowlist is { } __value1) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs index b3616330c..319d648b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs @@ -47,8 +47,8 @@ public bool TryPickCreateFile( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation PickCreateFile() => IsCreateFile - ? CreateFile! + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation PickCreateFile() => CreateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateFile' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDeleteFile( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation PickDeleteFile() => IsDeleteFile - ? DeleteFile! + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation PickDeleteFile() => DeleteFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeleteFile' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickUpdateFile( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation PickUpdateFile() => IsUpdateFile - ? UpdateFile! + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation PickUpdateFile() => UpdateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsCreateFile && createFile != null) + if (CreateFile is { } __value0 && createFile != null) { - return createFile(CreateFile!); + return createFile(__value0); } - else if (IsDeleteFile && deleteFile != null) + else if (DeleteFile is { } __value1 && deleteFile != null) { - return deleteFile(DeleteFile!); + return deleteFile(__value1); } - else if (IsUpdateFile && updateFile != null) + else if (UpdateFile is { } __value2 && updateFile != null) { - return updateFile(UpdateFile!); + return updateFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation2.g.cs index 5babc4fa9..ae0de69b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation2.g.cs @@ -47,8 +47,8 @@ public bool TryPickCreateFile( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation PickCreateFile() => IsCreateFile - ? CreateFile! + public global::tryAGI.OpenAI.BetaApplyPatchCreateFileOperation PickCreateFile() => CreateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateFile' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickDeleteFile( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation PickDeleteFile() => IsDeleteFile - ? DeleteFile! + public global::tryAGI.OpenAI.BetaApplyPatchDeleteFileOperation PickDeleteFile() => DeleteFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeleteFile' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickUpdateFile( /// /// /// - public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation PickUpdateFile() => IsUpdateFile - ? UpdateFile! + public global::tryAGI.OpenAI.BetaApplyPatchUpdateFileOperation PickUpdateFile() => UpdateFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsCreateFile && createFile != null) + if (CreateFile is { } __value0 && createFile != null) { - return createFile(CreateFile!); + return createFile(__value0); } - else if (IsDeleteFile && deleteFile != null) + else if (DeleteFile is { } __value1 && deleteFile != null) { - return deleteFile(DeleteFile!); + return deleteFile(__value1); } - else if (IsUpdateFile && updateFile != null) + else if (UpdateFile is { } __value2 && updateFile != null) { - return updateFile(UpdateFile!); + return updateFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsCreateFile) + if (CreateFile is { } __value0) { - createFile?.Invoke(CreateFile!); + createFile?.Invoke(__value0); } - else if (IsDeleteFile) + else if (DeleteFile is { } __value1) { - deleteFile?.Invoke(DeleteFile!); + deleteFile?.Invoke(__value1); } - else if (IsUpdateFile) + else if (UpdateFile is { } __value2) { - updateFile?.Invoke(UpdateFile!); + updateFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs index 213477143..7b17d6c99 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs @@ -47,8 +47,8 @@ public bool TryPickTimeout( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome PickTimeout() => IsTimeout - ? Timeout! + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome PickTimeout() => Timeout is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Timeout' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickExit( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome PickExit() => IsExit - ? Exit! + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome PickExit() => Exit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Exit' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsTimeout && timeout != null) + if (Timeout is { } __value0 && timeout != null) { - return timeout(Timeout!); + return timeout(__value0); } - else if (IsExit && exit != null) + else if (Exit is { } __value1 && exit != null) { - return exit(Exit!); + return exit(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome2.g.cs index 5c7ddb423..f8e36cad7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome2.g.cs @@ -47,8 +47,8 @@ public bool TryPickTimeout( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome PickTimeout() => IsTimeout - ? Timeout! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputTimeoutOutcome PickTimeout() => Timeout is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Timeout' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickExit( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome PickExit() => IsExit - ? Exit! + public global::tryAGI.OpenAI.BetaFunctionShellCallOutputExitOutcome PickExit() => Exit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Exit' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsTimeout && timeout != null) + if (Timeout is { } __value0 && timeout != null) { - return timeout(Timeout!); + return timeout(__value0); } - else if (IsExit && exit != null) + else if (Exit is { } __value1 && exit != null) { - return exit(Exit!); + return exit(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsTimeout) + if (Timeout is { } __value0) { - timeout?.Invoke(Timeout!); + timeout?.Invoke(__value0); } - else if (IsExit) + else if (Exit is { } __value1) { - exit?.Invoke(Exit!); + exit?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output.g.cs index 8b65f1236..a6ea34509 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output.g.cs @@ -47,8 +47,8 @@ public bool TryPickModerationResults( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationResults PickModerationResults() => IsModerationResults - ? ModerationResults! + public global::tryAGI.OpenAI.ChatCompletionModerationResults PickModerationResults() => ModerationResults is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModerationResults' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModerationError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ChatCompletionModerationError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsModerationResults && moderationResults != null) + if (ModerationResults is { } __value0 && moderationResults != null) { - return moderationResults(ModerationResults!); + return moderationResults(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsModerationResults) + if (ModerationResults is { } __value0) { - moderationResults?.Invoke(ModerationResults!); + moderationResults?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsModerationResults) + if (ModerationResults is { } __value0) { - moderationResults?.Invoke(ModerationResults!); + moderationResults?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output5.g.cs index 86fb7989e..ffe51de8e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output5.g.cs @@ -47,8 +47,8 @@ public bool TryPickModerationResult( /// /// /// - public global::tryAGI.OpenAI.ModerationResultBody PickModerationResult() => IsModerationResult - ? ModerationResult! + public global::tryAGI.OpenAI.ModerationResultBody PickModerationResult() => ModerationResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModerationResult' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ModerationErrorBody PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ModerationErrorBody PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsModerationResult && moderationResult != null) + if (ModerationResult is { } __value0 && moderationResult != null) { - return moderationResult(ModerationResult!); + return moderationResult(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output9.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output9.g.cs index 1a70c8b0d..b6f7f0a0f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output9.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Output9.g.cs @@ -47,8 +47,8 @@ public bool TryPickModerationResult( /// /// /// - public global::tryAGI.OpenAI.BetaModerationResultBody PickModerationResult() => IsModerationResult - ? ModerationResult! + public global::tryAGI.OpenAI.BetaModerationResultBody PickModerationResult() => ModerationResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModerationResult' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.BetaModerationErrorBody PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.BetaModerationErrorBody PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsModerationResult && moderationResult != null) + if (ModerationResult is { } __value0 && moderationResult != null) { - return moderationResult(ModerationResult!); + return moderationResult(__value0); } - else if (IsError && error != null) + else if (Error is { } __value1 && error != null) { - return error(Error!); + return error(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsModerationResult) + if (ModerationResult is { } __value0) { - moderationResult?.Invoke(ModerationResult!); + moderationResult?.Invoke(__value0); } - else if (IsError) + else if (Error is { } __value1) { - error?.Invoke(Error!); + error?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs index 30da702da..8b21ea80a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs @@ -47,8 +47,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.OutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.OutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.RefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.RefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickReasoningText( /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContent PickReasoningText() => IsReasoningText - ? ReasoningText! + public global::tryAGI.OpenAI.ReasoningTextContent PickReasoningText() => ReasoningText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningText' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOutputText && outputText != null) + if (OutputText is { } __value0 && outputText != null) { - return outputText(OutputText!); + return outputText(__value0); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value1 && refusal != null) { - return refusal(Refusal!); + return refusal(__value1); } - else if (IsReasoningText && reasoningText != null) + else if (ReasoningText is { } __value2 && reasoningText != null) { - return reasoningText(ReasoningText!); + return reasoningText(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } - else if (IsReasoningText) + else if (ReasoningText is { } __value2) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } - else if (IsReasoningText) + else if (ReasoningText is { } __value2) { - reasoningText?.Invoke(ReasoningText!); + reasoningText?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs index 89e388a31..2193e34d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItem.g.cs @@ -42,8 +42,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.OutputMessage PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.OutputMessage PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -80,8 +80,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::tryAGI.OpenAI.FileSearchToolCall PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -118,8 +118,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.FunctionToolCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -155,8 +155,8 @@ public bool TryPickFunctionToolCallResource( /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource PickFunctionToolCallResource() => IsFunctionToolCallResource - ? FunctionToolCallResource!.Value + public global::tryAGI.OpenAI.FunctionToolCallOutputResource PickFunctionToolCallResource() => FunctionToolCallResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionToolCallResource' but the value was {ToString()}."); /// @@ -193,8 +193,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchToolCall PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -231,8 +231,8 @@ public bool TryPickComputerCall( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => IsComputerCall - ? ComputerCall! + public global::tryAGI.OpenAI.ComputerToolCall PickComputerCall() => ComputerCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCall' but the value was {ToString()}."); /// @@ -268,8 +268,8 @@ public bool TryPickComputerToolCallResource( /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallResource() => IsComputerToolCallResource - ? ComputerToolCallResource!.Value + public global::tryAGI.OpenAI.ComputerToolCallOutputResource PickComputerToolCallResource() => ComputerToolCallResource is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerToolCallResource' but the value was {ToString()}."); /// @@ -308,8 +308,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItem PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -345,8 +345,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.Program PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.Program PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// @@ -382,8 +382,8 @@ public bool TryPickProgramOutput( /// /// /// - public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => IsProgramOutput - ? ProgramOutput! + public global::tryAGI.OpenAI.ProgramOutput PickProgramOutput() => ProgramOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgramOutput' but the value was {ToString()}."); /// @@ -419,8 +419,8 @@ public bool TryPickToolSearchCall( /// /// /// - public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => IsToolSearchCall - ? ToolSearchCall! + public global::tryAGI.OpenAI.ToolSearchCall PickToolSearchCall() => ToolSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchCall' but the value was {ToString()}."); /// @@ -456,8 +456,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.ToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -493,8 +493,8 @@ public bool TryPickAdditionalTools( /// /// /// - public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => IsAdditionalTools - ? AdditionalTools! + public global::tryAGI.OpenAI.AdditionalTools PickAdditionalTools() => AdditionalTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AdditionalTools' but the value was {ToString()}."); /// @@ -530,8 +530,8 @@ public bool TryPickCompaction( /// /// /// - public global::tryAGI.OpenAI.CompactionBody PickCompaction() => IsCompaction - ? Compaction! + public global::tryAGI.OpenAI.CompactionBody PickCompaction() => Compaction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Compaction' but the value was {ToString()}."); /// @@ -567,8 +567,8 @@ public bool TryPickImageGenerationCall( /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => IsImageGenerationCall - ? ImageGenerationCall! + public global::tryAGI.OpenAI.ImageGenToolCall PickImageGenerationCall() => ImageGenerationCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGenerationCall' but the value was {ToString()}."); /// @@ -604,8 +604,8 @@ public bool TryPickCodeInterpreterCall( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => IsCodeInterpreterCall - ? CodeInterpreterCall! + public global::tryAGI.OpenAI.CodeInterpreterToolCall PickCodeInterpreterCall() => CodeInterpreterCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreterCall' but the value was {ToString()}."); /// @@ -641,8 +641,8 @@ public bool TryPickLocalShellCall( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => IsLocalShellCall - ? LocalShellCall! + public global::tryAGI.OpenAI.LocalShellToolCall PickLocalShellCall() => LocalShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCall' but the value was {ToString()}."); /// @@ -678,8 +678,8 @@ public bool TryPickLocalShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => IsLocalShellCallOutput - ? LocalShellCallOutput! + public global::tryAGI.OpenAI.LocalShellToolCallOutput PickLocalShellCallOutput() => LocalShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShellCallOutput' but the value was {ToString()}."); /// @@ -715,8 +715,8 @@ public bool TryPickShellCall( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => IsShellCall - ? ShellCall! + public global::tryAGI.OpenAI.FunctionShellCall PickShellCall() => ShellCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCall' but the value was {ToString()}."); /// @@ -752,8 +752,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.FunctionShellCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -789,8 +789,8 @@ public bool TryPickApplyPatchCall( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => IsApplyPatchCall - ? ApplyPatchCall! + public global::tryAGI.OpenAI.ApplyPatchToolCall PickApplyPatchCall() => ApplyPatchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCall' but the value was {ToString()}."); /// @@ -826,8 +826,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -863,8 +863,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.MCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -900,8 +900,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.MCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -937,8 +937,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.MCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// @@ -974,8 +974,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.MCPApprovalResponseResource PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -1011,8 +1011,8 @@ public bool TryPickCustomToolCall( /// /// /// - public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => IsCustomToolCall - ? CustomToolCall! + public global::tryAGI.OpenAI.CustomToolCall PickCustomToolCall() => CustomToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCall' but the value was {ToString()}."); /// @@ -1048,8 +1048,8 @@ public bool TryPickResponseCustomToolCallOutputItem( /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => IsResponseCustomToolCallOutputItem - ? ResponseCustomToolCallOutputItem!.Value + public global::tryAGI.OpenAI.CustomToolCallOutputResource PickResponseCustomToolCallOutputItem() => ResponseCustomToolCallOutputItem is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallOutputItem' but the value was {ToString()}."); /// /// @@ -1874,117 +1874,117 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value1 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value1); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value2 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value2); } - else if (IsFunctionToolCallResource && functionToolCallResource != null) + else if (FunctionToolCallResource is { } __value3 && functionToolCallResource != null) { - return functionToolCallResource(FunctionToolCallResource!); + return functionToolCallResource(__value3); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value4 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value4); } - else if (IsComputerCall && computerCall != null) + else if (ComputerCall is { } __value5 && computerCall != null) { - return computerCall(ComputerCall!); + return computerCall(__value5); } - else if (IsComputerToolCallResource && computerToolCallResource != null) + else if (ComputerToolCallResource is { } __value6 && computerToolCallResource != null) { - return computerToolCallResource(ComputerToolCallResource!); + return computerToolCallResource(__value6); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value7 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value7); } - else if (IsProgram && program != null) + else if (Program is { } __value8 && program != null) { - return program(Program!); + return program(__value8); } - else if (IsProgramOutput && programOutput != null) + else if (ProgramOutput is { } __value9 && programOutput != null) { - return programOutput(ProgramOutput!); + return programOutput(__value9); } - else if (IsToolSearchCall && toolSearchCall != null) + else if (ToolSearchCall is { } __value10 && toolSearchCall != null) { - return toolSearchCall(ToolSearchCall!); + return toolSearchCall(__value10); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value11 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value11); } - else if (IsAdditionalTools && additionalTools != null) + else if (AdditionalTools is { } __value12 && additionalTools != null) { - return additionalTools(AdditionalTools!); + return additionalTools(__value12); } - else if (IsCompaction && compaction != null) + else if (Compaction is { } __value13 && compaction != null) { - return compaction(Compaction!); + return compaction(__value13); } - else if (IsImageGenerationCall && imageGenerationCall != null) + else if (ImageGenerationCall is { } __value14 && imageGenerationCall != null) { - return imageGenerationCall(ImageGenerationCall!); + return imageGenerationCall(__value14); } - else if (IsCodeInterpreterCall && codeInterpreterCall != null) + else if (CodeInterpreterCall is { } __value15 && codeInterpreterCall != null) { - return codeInterpreterCall(CodeInterpreterCall!); + return codeInterpreterCall(__value15); } - else if (IsLocalShellCall && localShellCall != null) + else if (LocalShellCall is { } __value16 && localShellCall != null) { - return localShellCall(LocalShellCall!); + return localShellCall(__value16); } - else if (IsLocalShellCallOutput && localShellCallOutput != null) + else if (LocalShellCallOutput is { } __value17 && localShellCallOutput != null) { - return localShellCallOutput(LocalShellCallOutput!); + return localShellCallOutput(__value17); } - else if (IsShellCall && shellCall != null) + else if (ShellCall is { } __value18 && shellCall != null) { - return shellCall(ShellCall!); + return shellCall(__value18); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value19 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value19); } - else if (IsApplyPatchCall && applyPatchCall != null) + else if (ApplyPatchCall is { } __value20 && applyPatchCall != null) { - return applyPatchCall(ApplyPatchCall!); + return applyPatchCall(__value20); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value21 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value21); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value22 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value22); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value23 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value23); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value24 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value24); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value25 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value25); } - else if (IsCustomToolCall && customToolCall != null) + else if (CustomToolCall is { } __value26 && customToolCall != null) { - return customToolCall(CustomToolCall!); + return customToolCall(__value26); } - else if (IsResponseCustomToolCallOutputItem && responseCustomToolCallOutputItem != null) + else if (ResponseCustomToolCallOutputItem is { } __value27 && responseCustomToolCallOutputItem != null) { - return responseCustomToolCallOutputItem(ResponseCustomToolCallOutputItem!); + return responseCustomToolCallOutputItem(__value27); } return default(TResult); @@ -2056,117 +2056,117 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value1) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsFunctionToolCallResource) + else if (FunctionToolCallResource is { } __value3) { - functionToolCallResource?.Invoke(FunctionToolCallResource!); + functionToolCallResource?.Invoke(__value3); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value4) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value4); } - else if (IsComputerCall) + else if (ComputerCall is { } __value5) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value5); } - else if (IsComputerToolCallResource) + else if (ComputerToolCallResource is { } __value6) { - computerToolCallResource?.Invoke(ComputerToolCallResource!); + computerToolCallResource?.Invoke(__value6); } - else if (IsReasoning) + else if (Reasoning is { } __value7) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value7); } - else if (IsProgram) + else if (Program is { } __value8) { - program?.Invoke(Program!); + program?.Invoke(__value8); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value9) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value9); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value10) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value10); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value11) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value11); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value12) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value12); } - else if (IsCompaction) + else if (Compaction is { } __value13) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value13); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value14) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value14); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value15) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value15); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value16) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value16); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value17) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value17); } - else if (IsShellCall) + else if (ShellCall is { } __value18) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value18); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value19) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value19); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value20) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value20); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value21) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value21); } - else if (IsMcpCall) + else if (McpCall is { } __value22) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value22); } - else if (IsMcpListTools) + else if (McpListTools is { } __value23) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value23); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value24) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value24); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value25) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value25); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value26) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value26); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value27) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value27); } } @@ -2209,117 +2209,117 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value1) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsFunctionToolCallResource) + else if (FunctionToolCallResource is { } __value3) { - functionToolCallResource?.Invoke(FunctionToolCallResource!); + functionToolCallResource?.Invoke(__value3); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value4) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value4); } - else if (IsComputerCall) + else if (ComputerCall is { } __value5) { - computerCall?.Invoke(ComputerCall!); + computerCall?.Invoke(__value5); } - else if (IsComputerToolCallResource) + else if (ComputerToolCallResource is { } __value6) { - computerToolCallResource?.Invoke(ComputerToolCallResource!); + computerToolCallResource?.Invoke(__value6); } - else if (IsReasoning) + else if (Reasoning is { } __value7) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value7); } - else if (IsProgram) + else if (Program is { } __value8) { - program?.Invoke(Program!); + program?.Invoke(__value8); } - else if (IsProgramOutput) + else if (ProgramOutput is { } __value9) { - programOutput?.Invoke(ProgramOutput!); + programOutput?.Invoke(__value9); } - else if (IsToolSearchCall) + else if (ToolSearchCall is { } __value10) { - toolSearchCall?.Invoke(ToolSearchCall!); + toolSearchCall?.Invoke(__value10); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value11) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value11); } - else if (IsAdditionalTools) + else if (AdditionalTools is { } __value12) { - additionalTools?.Invoke(AdditionalTools!); + additionalTools?.Invoke(__value12); } - else if (IsCompaction) + else if (Compaction is { } __value13) { - compaction?.Invoke(Compaction!); + compaction?.Invoke(__value13); } - else if (IsImageGenerationCall) + else if (ImageGenerationCall is { } __value14) { - imageGenerationCall?.Invoke(ImageGenerationCall!); + imageGenerationCall?.Invoke(__value14); } - else if (IsCodeInterpreterCall) + else if (CodeInterpreterCall is { } __value15) { - codeInterpreterCall?.Invoke(CodeInterpreterCall!); + codeInterpreterCall?.Invoke(__value15); } - else if (IsLocalShellCall) + else if (LocalShellCall is { } __value16) { - localShellCall?.Invoke(LocalShellCall!); + localShellCall?.Invoke(__value16); } - else if (IsLocalShellCallOutput) + else if (LocalShellCallOutput is { } __value17) { - localShellCallOutput?.Invoke(LocalShellCallOutput!); + localShellCallOutput?.Invoke(__value17); } - else if (IsShellCall) + else if (ShellCall is { } __value18) { - shellCall?.Invoke(ShellCall!); + shellCall?.Invoke(__value18); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value19) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value19); } - else if (IsApplyPatchCall) + else if (ApplyPatchCall is { } __value20) { - applyPatchCall?.Invoke(ApplyPatchCall!); + applyPatchCall?.Invoke(__value20); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value21) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value21); } - else if (IsMcpCall) + else if (McpCall is { } __value22) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value22); } - else if (IsMcpListTools) + else if (McpListTools is { } __value23) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value23); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value24) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value24); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value25) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value25); } - else if (IsCustomToolCall) + else if (CustomToolCall is { } __value26) { - customToolCall?.Invoke(CustomToolCall!); + customToolCall?.Invoke(__value26); } - else if (IsResponseCustomToolCallOutputItem) + else if (ResponseCustomToolCallOutputItem is { } __value27) { - responseCustomToolCallOutputItem?.Invoke(ResponseCustomToolCallOutputItem!); + responseCustomToolCallOutputItem?.Invoke(__value27); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs index 627a550f2..fe52cb01f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs @@ -47,8 +47,8 @@ public bool TryPickOutputText( /// /// /// - public global::tryAGI.OpenAI.OutputTextContent PickOutputText() => IsOutputText - ? OutputText! + public global::tryAGI.OpenAI.OutputTextContent PickOutputText() => OutputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickRefusal( /// /// /// - public global::tryAGI.OpenAI.RefusalContent PickRefusal() => IsRefusal - ? Refusal! + public global::tryAGI.OpenAI.RefusalContent PickRefusal() => Refusal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Refusal' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsOutputText && outputText != null) + if (OutputText is { } __value0 && outputText != null) { - return outputText(OutputText!); + return outputText(__value0); } - else if (IsRefusal && refusal != null) + else if (Refusal is { } __value1 && refusal != null) { - return refusal(Refusal!); + return refusal(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsOutputText) + if (OutputText is { } __value0) { - outputText?.Invoke(OutputText!); + outputText?.Invoke(__value0); } - else if (IsRefusal) + else if (Refusal is { } __value1) { - refusal?.Invoke(Refusal!); + refusal?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs index b0fbeaec9..eaa3d2bfe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.InputTextContentParam PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.InputImageContentParamAutoParam PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.InputFileContentParam PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item2.g.cs index cc4d276b5..92a54cdfa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item2.g.cs @@ -47,8 +47,8 @@ public bool TryPickInputText( /// /// /// - public global::tryAGI.OpenAI.BetaInputTextContentParam PickInputText() => IsInputText - ? InputText! + public global::tryAGI.OpenAI.BetaInputTextContentParam PickInputText() => InputText is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputText' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInputImage( /// /// /// - public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam PickInputImage() => IsInputImage - ? InputImage! + public global::tryAGI.OpenAI.BetaInputImageContentParamAutoParam PickInputImage() => InputImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputImage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickInputFile( /// /// /// - public global::tryAGI.OpenAI.BetaInputFileContentParam PickInputFile() => IsInputFile - ? InputFile! + public global::tryAGI.OpenAI.BetaInputFileContentParam PickInputFile() => InputFile is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputFile' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsInputText && inputText != null) + if (InputText is { } __value0 && inputText != null) { - return inputText(InputText!); + return inputText(__value0); } - else if (IsInputImage && inputImage != null) + else if (InputImage is { } __value1 && inputImage != null) { - return inputImage(InputImage!); + return inputImage(__value1); } - else if (IsInputFile && inputFile != null) + else if (InputFile is { } __value2 && inputFile != null) { - return inputFile(InputFile!); + return inputFile(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsInputText) + if (InputText is { } __value0) { - inputText?.Invoke(InputText!); + inputText?.Invoke(__value0); } - else if (IsInputImage) + else if (InputImage is { } __value1) { - inputImage?.Invoke(InputImage!); + inputImage?.Invoke(__value1); } - else if (IsInputFile) + else if (InputFile is { } __value2) { - inputFile?.Invoke(InputFile!); + inputFile?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs index db112147a..467699817 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs @@ -47,8 +47,8 @@ public bool TryPickLogs( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogs PickLogs() => IsLogs - ? Logs! + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs PickLogs() => Logs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Logs' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImage( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImage PickImage() => IsImage - ? Image! + public global::tryAGI.OpenAI.CodeInterpreterOutputImage PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsLogs && logs != null) + if (Logs is { } __value0 && logs != null) { - return logs(Logs!); + return logs(__value0); } - else if (IsImage && image != null) + else if (Image is { } __value1 && image != null) { - return image(Image!); + return image(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsLogs) + if (Logs is { } __value0) { - logs?.Invoke(Logs!); + logs?.Invoke(__value0); } - else if (IsImage) + else if (Image is { } __value1) { - image?.Invoke(Image!); + image?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsLogs) + if (Logs is { } __value0) { - logs?.Invoke(Logs!); + logs?.Invoke(__value0); } - else if (IsImage) + else if (Image is { } __value1) { - image?.Invoke(Image!); + image?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item2.g.cs index baa18e93b..c39a765cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item2.g.cs @@ -47,8 +47,8 @@ public bool TryPickLogs( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs PickLogs() => IsLogs - ? Logs! + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputLogs PickLogs() => Logs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Logs' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickImage( /// /// /// - public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage PickImage() => IsImage - ? Image! + public global::tryAGI.OpenAI.BetaCodeInterpreterOutputImage PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsLogs && logs != null) + if (Logs is { } __value0 && logs != null) { - return logs(Logs!); + return logs(__value0); } - else if (IsImage && image != null) + else if (Image is { } __value1 && image != null) { - return image(Image!); + return image(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsLogs) + if (Logs is { } __value0) { - logs?.Invoke(Logs!); + logs?.Invoke(__value0); } - else if (IsImage) + else if (Image is { } __value1) { - image?.Invoke(Image!); + image?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsLogs) + if (Logs is { } __value0) { - logs?.Invoke(Logs!); + logs?.Invoke(__value0); } - else if (IsImage) + else if (Image is { } __value1) { - image?.Invoke(Image!); + image?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolConfigParam.g.cs index d7ee6915e..8d5eb6318 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolConfigParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamFunction PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickToolSearch( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch PickToolSearch() => IsToolSearch - ? ToolSearch! + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamToolSearch PickToolSearch() => ToolSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickProgrammaticToolCalling( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling PickProgrammaticToolCalling() => IsProgrammaticToolCalling - ? ProgrammaticToolCalling! + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamProgrammaticToolCalling PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickMcp( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp PickMcp() => IsMcp - ? Mcp! + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamMcp PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.PersistedAgentToolConfigParamWebSearch PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsToolSearch && toolSearch != null) + else if (ToolSearch is { } __value1 && toolSearch != null) { - return toolSearch(ToolSearch!); + return toolSearch(__value1); } - else if (IsProgrammaticToolCalling && programmaticToolCalling != null) + else if (ProgrammaticToolCalling is { } __value2 && programmaticToolCalling != null) { - return programmaticToolCalling(ProgrammaticToolCalling!); + return programmaticToolCalling(__value2); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value3 && mcp != null) { - return mcp(Mcp!); + return mcp(__value3); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value4 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsToolSearch) + else if (ToolSearch is { } __value1) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value1); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value2) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value2); } - else if (IsMcp) + else if (Mcp is { } __value3) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsToolSearch) + else if (ToolSearch is { } __value1) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value1); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value2) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value2); } - else if (IsMcp) + else if (Mcp is { } __value3) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolResource.g.cs index ce7473187..7df22f584 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedAgentToolResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.PersistedAgentToolResourceFunction PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickToolSearch( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch PickToolSearch() => IsToolSearch - ? ToolSearch! + public global::tryAGI.OpenAI.PersistedAgentToolResourceToolSearch PickToolSearch() => ToolSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickProgrammaticToolCalling( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling PickProgrammaticToolCalling() => IsProgrammaticToolCalling - ? ProgrammaticToolCalling! + public global::tryAGI.OpenAI.PersistedAgentToolResourceProgrammaticToolCalling PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickMcp( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp PickMcp() => IsMcp - ? Mcp! + public global::tryAGI.OpenAI.PersistedAgentToolResourceMcp PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.PersistedAgentToolResourceWebSearch PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsToolSearch && toolSearch != null) + else if (ToolSearch is { } __value1 && toolSearch != null) { - return toolSearch(ToolSearch!); + return toolSearch(__value1); } - else if (IsProgrammaticToolCalling && programmaticToolCalling != null) + else if (ProgrammaticToolCalling is { } __value2 && programmaticToolCalling != null) { - return programmaticToolCalling(ProgrammaticToolCalling!); + return programmaticToolCalling(__value2); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value3 && mcp != null) { - return mcp(Mcp!); + return mcp(__value3); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value4 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsToolSearch) + else if (ToolSearch is { } __value1) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value1); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value2) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value2); } - else if (IsMcp) + else if (Mcp is { } __value3) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsToolSearch) + else if (ToolSearch is { } __value1) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value1); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value2) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value2); } - else if (IsMcp) + else if (Mcp is { } __value3) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportConfigParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportConfigParam.g.cs index 3b44e48d7..a89da658c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportConfigParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportConfigParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickHttp( /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp PickHttp() => IsHttp - ? Http! + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamHttp PickHttp() => Http is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Http' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStdio( /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio PickStdio() => IsStdio - ? Stdio! + public global::tryAGI.OpenAI.PersistedMcpTransportConfigParamStdio PickStdio() => Stdio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Stdio' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsHttp && http != null) + if (Http is { } __value0 && http != null) { - return http(Http!); + return http(__value0); } - else if (IsStdio && stdio != null) + else if (Stdio is { } __value1 && stdio != null) { - return stdio(Stdio!); + return stdio(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportResource.g.cs index c5fd4fda0..8aa6078ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersistedMcpTransportResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickHttp( /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp PickHttp() => IsHttp - ? Http! + public global::tryAGI.OpenAI.PersistedMcpTransportResourceHttp PickHttp() => Http is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Http' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStdio( /// /// /// - public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio PickStdio() => IsStdio - ? Stdio! + public global::tryAGI.OpenAI.PersistedMcpTransportResourceStdio PickStdio() => Stdio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Stdio' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsHttp && http != null) + if (Http is { } __value0 && http != null) { - return http(Http!); + return http(__value0); } - else if (IsStdio && stdio != null) + else if (Stdio is { } __value1 && stdio != null) { - return stdio(Stdio!); + return stdio(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsHttp) + if (Http is { } __value0) { - http?.Invoke(Http!); + http?.Invoke(__value0); } - else if (IsStdio) + else if (Stdio is { } __value1) { - stdio?.Invoke(Stdio!); + stdio?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersonalityEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersonalityEnum.g.cs index ee7e74cb9..ee76db671 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersonalityEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PersonalityEnum.g.cs @@ -42,8 +42,8 @@ public bool TryPickPersonalityEnumVariant1( /// /// /// - public string PickPersonalityEnumVariant1() => IsPersonalityEnumVariant1 - ? PersonalityEnumVariant1! + public string PickPersonalityEnumVariant1() => PersonalityEnumVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PersonalityEnumVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickPersonalityEnumEnum( /// /// /// - public global::tryAGI.OpenAI.PersonalityEnumEnum PickPersonalityEnumEnum() => IsPersonalityEnumEnum - ? PersonalityEnumEnum!.Value + public global::tryAGI.OpenAI.PersonalityEnumEnum PickPersonalityEnumEnum() => PersonalityEnumEnum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PersonalityEnumEnum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsPersonalityEnumVariant1 && personalityEnumVariant1 != null) + if (PersonalityEnumVariant1 is { } __value0 && personalityEnumVariant1 != null) { - return personalityEnumVariant1(PersonalityEnumVariant1!); + return personalityEnumVariant1(__value0); } - else if (IsPersonalityEnumEnum && personalityEnumEnum != null) + else if (PersonalityEnumEnum is { } __value1 && personalityEnumEnum != null) { - return personalityEnumEnum(PersonalityEnumEnum!); + return personalityEnumEnum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsPersonalityEnumVariant1) + if (PersonalityEnumVariant1 is { } __value0) { - personalityEnumVariant1?.Invoke(PersonalityEnumVariant1!); + personalityEnumVariant1?.Invoke(__value0); } - else if (IsPersonalityEnumEnum) + else if (PersonalityEnumEnum is { } __value1) { - personalityEnumEnum?.Invoke(PersonalityEnumEnum!); + personalityEnumEnum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsPersonalityEnumVariant1) + if (PersonalityEnumVariant1 is { } __value0) { - personalityEnumVariant1?.Invoke(PersonalityEnumVariant1!); + personalityEnumVariant1?.Invoke(__value0); } - else if (IsPersonalityEnumEnum) + else if (PersonalityEnumEnum is { } __value1) { - personalityEnumEnum?.Invoke(PersonalityEnumEnum!); + personalityEnumEnum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PromptCacheDiagnostics.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PromptCacheDiagnostics.g.cs index 7da0138ab..7dbd3c059 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PromptCacheDiagnostics.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.PromptCacheDiagnostics.g.cs @@ -47,8 +47,8 @@ public bool TryPickCacheMiss( /// /// /// - public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody PickCacheMiss() => IsCacheMiss - ? CacheMiss! + public global::tryAGI.OpenAI.PromptCacheMissDiagnosticsBody PickCacheMiss() => CacheMiss is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CacheMiss' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCacheHit( /// /// /// - public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody PickCacheHit() => IsCacheHit - ? CacheHit! + public global::tryAGI.OpenAI.PromptCacheHitDiagnosticsBody PickCacheHit() => CacheHit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CacheHit' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickComparisonResponseNotFound( /// /// /// - public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody PickComparisonResponseNotFound() => IsComparisonResponseNotFound - ? ComparisonResponseNotFound! + public global::tryAGI.OpenAI.PromptCacheComparisonResponseNotFoundDiagnosticsBody PickComparisonResponseNotFound() => ComparisonResponseNotFound is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComparisonResponseNotFound' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickUnavailable( /// /// /// - public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody PickUnavailable() => IsUnavailable - ? Unavailable! + public global::tryAGI.OpenAI.PromptCacheUnavailableDiagnosticsBody PickUnavailable() => Unavailable is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Unavailable' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsCacheMiss && cacheMiss != null) + if (CacheMiss is { } __value0 && cacheMiss != null) { - return cacheMiss(CacheMiss!); + return cacheMiss(__value0); } - else if (IsCacheHit && cacheHit != null) + else if (CacheHit is { } __value1 && cacheHit != null) { - return cacheHit(CacheHit!); + return cacheHit(__value1); } - else if (IsComparisonResponseNotFound && comparisonResponseNotFound != null) + else if (ComparisonResponseNotFound is { } __value2 && comparisonResponseNotFound != null) { - return comparisonResponseNotFound(ComparisonResponseNotFound!); + return comparisonResponseNotFound(__value2); } - else if (IsUnavailable && unavailable != null) + else if (Unavailable is { } __value3 && unavailable != null) { - return unavailable(Unavailable!); + return unavailable(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsCacheMiss) + if (CacheMiss is { } __value0) { - cacheMiss?.Invoke(CacheMiss!); + cacheMiss?.Invoke(__value0); } - else if (IsCacheHit) + else if (CacheHit is { } __value1) { - cacheHit?.Invoke(CacheHit!); + cacheHit?.Invoke(__value1); } - else if (IsComparisonResponseNotFound) + else if (ComparisonResponseNotFound is { } __value2) { - comparisonResponseNotFound?.Invoke(ComparisonResponseNotFound!); + comparisonResponseNotFound?.Invoke(__value2); } - else if (IsUnavailable) + else if (Unavailable is { } __value3) { - unavailable?.Invoke(Unavailable!); + unavailable?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsCacheMiss) + if (CacheMiss is { } __value0) { - cacheMiss?.Invoke(CacheMiss!); + cacheMiss?.Invoke(__value0); } - else if (IsCacheHit) + else if (CacheHit is { } __value1) { - cacheHit?.Invoke(CacheHit!); + cacheHit?.Invoke(__value1); } - else if (IsComparisonResponseNotFound) + else if (ComparisonResponseNotFound is { } __value2) { - comparisonResponseNotFound?.Invoke(ComparisonResponseNotFound!); + comparisonResponseNotFound?.Invoke(__value2); } - else if (IsUnavailable) + else if (Unavailable is { } __value3) { - unavailable?.Invoke(Unavailable!); + unavailable?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider.g.cs index b08d87cd9..6dde09c95 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider.g.cs @@ -47,8 +47,8 @@ public bool TryPickAws( /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse PickAws() => IsAws - ? Aws! + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse PickAws() => Aws is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Aws' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAzure( /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse PickAzure() => IsAzure - ? Azure! + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickGcp( /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse PickGcp() => IsGcp - ? Gcp! + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsAws && aws != null) + if (Aws is { } __value0 && aws != null) { - return aws(Aws!); + return aws(__value0); } - else if (IsAzure && azure != null) + else if (Azure is { } __value1 && azure != null) { - return azure(Azure!); + return azure(__value1); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value2 && gcp != null) { - return gcp(Gcp!); + return gcp(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsAws) + if (Aws is { } __value0) { - aws?.Invoke(Aws!); + aws?.Invoke(__value0); } - else if (IsAzure) + else if (Azure is { } __value1) { - azure?.Invoke(Azure!); + azure?.Invoke(__value1); } - else if (IsGcp) + else if (Gcp is { } __value2) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsAws) + if (Aws is { } __value0) { - aws?.Invoke(Aws!); + aws?.Invoke(__value0); } - else if (IsAzure) + else if (Azure is { } __value1) { - azure?.Invoke(Azure!); + azure?.Invoke(__value1); } - else if (IsGcp) + else if (Gcp is { } __value2) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider2.g.cs index 2fb6bbee1..4650945ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider2.g.cs @@ -47,8 +47,8 @@ public bool TryPickAws( /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse PickAws() => IsAws - ? Aws! + public global::tryAGI.OpenAI.AwsExternalStorageProviderResponse PickAws() => Aws is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Aws' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAzure( /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse PickAzure() => IsAzure - ? Azure! + public global::tryAGI.OpenAI.AzureExternalStorageProviderResponse PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickGcp( /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse PickGcp() => IsGcp - ? Gcp! + public global::tryAGI.OpenAI.GcpExternalStorageProviderResponse PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsAws && aws != null) + if (Aws is { } __value0 && aws != null) { - return aws(Aws!); + return aws(__value0); } - else if (IsAzure && azure != null) + else if (Azure is { } __value1 && azure != null) { - return azure(Azure!); + return azure(__value1); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value2 && gcp != null) { - return gcp(Gcp!); + return gcp(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsAws) + if (Aws is { } __value0) { - aws?.Invoke(Aws!); + aws?.Invoke(__value0); } - else if (IsAzure) + else if (Azure is { } __value1) { - azure?.Invoke(Azure!); + azure?.Invoke(__value1); } - else if (IsGcp) + else if (Gcp is { } __value2) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsAws) + if (Aws is { } __value0) { - aws?.Invoke(Aws!); + aws?.Invoke(__value0); } - else if (IsAzure) + else if (Azure is { } __value1) { - azure?.Invoke(Azure!); + azure?.Invoke(__value1); } - else if (IsGcp) + else if (Gcp is { } __value2) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider3.g.cs index f4df6390d..ef7be709a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Provider3.g.cs @@ -47,8 +47,8 @@ public bool TryPickAws( /// /// /// - public global::tryAGI.OpenAI.AwsExternalStorageProviderParams PickAws() => IsAws - ? Aws! + public global::tryAGI.OpenAI.AwsExternalStorageProviderParams PickAws() => Aws is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Aws' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAzure( /// /// /// - public global::tryAGI.OpenAI.AzureExternalStorageProviderParams PickAzure() => IsAzure - ? Azure! + public global::tryAGI.OpenAI.AzureExternalStorageProviderParams PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickGcp( /// /// /// - public global::tryAGI.OpenAI.GcpExternalStorageProviderParams PickGcp() => IsGcp - ? Gcp! + public global::tryAGI.OpenAI.GcpExternalStorageProviderParams PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsAws && aws != null) + if (Aws is { } __value0 && aws != null) { - return aws(Aws!); + return aws(__value0); } - else if (IsAzure && azure != null) + else if (Azure is { } __value1 && azure != null) { - return azure(Azure!); + return azure(__value1); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value2 && gcp != null) { - return gcp(Gcp!); + return gcp(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsAws) + if (Aws is { } __value0) { - aws?.Invoke(Aws!); + aws?.Invoke(__value0); } - else if (IsAzure) + else if (Azure is { } __value1) { - azure?.Invoke(Azure!); + azure?.Invoke(__value1); } - else if (IsGcp) + else if (Gcp is { } __value2) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsAws) + if (Aws is { } __value0) { - aws?.Invoke(Aws!); + aws?.Invoke(__value0); } - else if (IsAzure) + else if (Azure is { } __value1) { - azure?.Invoke(Azure!); + azure?.Invoke(__value1); } - else if (IsGcp) + else if (Gcp is { } __value2) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs index fccffdc08..183c9bfd0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeAudioFormats.g.cs @@ -42,8 +42,8 @@ public bool TryPickPcmAudioFormat( /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat PickPcmAudioFormat() => IsPcmAudioFormat - ? PcmAudioFormat! + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat PickPcmAudioFormat() => PcmAudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PcmAudioFormat' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickPcmuAudioFormat( /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat PickPcmuAudioFormat() => IsPcmuAudioFormat - ? PcmuAudioFormat! + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat PickPcmuAudioFormat() => PcmuAudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PcmuAudioFormat' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickPcmaAudioFormat( /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat PickPcmaAudioFormat() => IsPcmaAudioFormat - ? PcmaAudioFormat! + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat PickPcmaAudioFormat() => PcmaAudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PcmaAudioFormat' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsPcmAudioFormat && pcmAudioFormat != null) + if (PcmAudioFormat is { } __value0 && pcmAudioFormat != null) { - return pcmAudioFormat(PcmAudioFormat!); + return pcmAudioFormat(__value0); } - else if (IsPcmuAudioFormat && pcmuAudioFormat != null) + else if (PcmuAudioFormat is { } __value1 && pcmuAudioFormat != null) { - return pcmuAudioFormat(PcmuAudioFormat!); + return pcmuAudioFormat(__value1); } - else if (IsPcmaAudioFormat && pcmaAudioFormat != null) + else if (PcmaAudioFormat is { } __value2 && pcmaAudioFormat != null) { - return pcmaAudioFormat(PcmaAudioFormat!); + return pcmaAudioFormat(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsPcmAudioFormat) + if (PcmAudioFormat is { } __value0) { - pcmAudioFormat?.Invoke(PcmAudioFormat!); + pcmAudioFormat?.Invoke(__value0); } - else if (IsPcmuAudioFormat) + else if (PcmuAudioFormat is { } __value1) { - pcmuAudioFormat?.Invoke(PcmuAudioFormat!); + pcmuAudioFormat?.Invoke(__value1); } - else if (IsPcmaAudioFormat) + else if (PcmaAudioFormat is { } __value2) { - pcmaAudioFormat?.Invoke(PcmaAudioFormat!); + pcmaAudioFormat?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsPcmAudioFormat) + if (PcmAudioFormat is { } __value0) { - pcmAudioFormat?.Invoke(PcmAudioFormat!); + pcmAudioFormat?.Invoke(__value0); } - else if (IsPcmuAudioFormat) + else if (PcmuAudioFormat is { } __value1) { - pcmuAudioFormat?.Invoke(PcmuAudioFormat!); + pcmuAudioFormat?.Invoke(__value1); } - else if (IsPcmaAudioFormat) + else if (PcmaAudioFormat is { } __value2) { - pcmaAudioFormat?.Invoke(PcmaAudioFormat!); + pcmaAudioFormat?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs index 2d2d342f7..2815250ec 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs @@ -53,8 +53,8 @@ public bool TryPickConversationItemCreate( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate PickConversationItemCreate() => IsConversationItemCreate - ? ConversationItemCreate! + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate PickConversationItemCreate() => ConversationItemCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemCreate' but the value was {ToString()}."); /// @@ -93,8 +93,8 @@ public bool TryPickConversationItemDelete( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete PickConversationItemDelete() => IsConversationItemDelete - ? ConversationItemDelete! + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete PickConversationItemDelete() => ConversationItemDelete is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemDelete' but the value was {ToString()}."); /// @@ -133,8 +133,8 @@ public bool TryPickConversationItemRetrieve( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve PickConversationItemRetrieve() => IsConversationItemRetrieve - ? ConversationItemRetrieve! + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve PickConversationItemRetrieve() => ConversationItemRetrieve is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemRetrieve' but the value was {ToString()}."); /// @@ -178,8 +178,8 @@ public bool TryPickConversationItemTruncate( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate PickConversationItemTruncate() => IsConversationItemTruncate - ? ConversationItemTruncate! + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate PickConversationItemTruncate() => ConversationItemTruncate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemTruncate' but the value was {ToString()}."); /// @@ -225,8 +225,8 @@ public bool TryPickInputAudioBufferAppend( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend PickInputAudioBufferAppend() => IsInputAudioBufferAppend - ? InputAudioBufferAppend! + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend PickInputAudioBufferAppend() => InputAudioBufferAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferAppend' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickInputAudioBufferClear( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear PickInputAudioBufferClear() => IsInputAudioBufferClear - ? InputAudioBufferClear! + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear PickInputAudioBufferClear() => InputAudioBufferClear is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferClear' but the value was {ToString()}."); /// @@ -304,8 +304,8 @@ public bool TryPickOutputAudioBufferClear( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear PickOutputAudioBufferClear() => IsOutputAudioBufferClear - ? OutputAudioBufferClear! + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear PickOutputAudioBufferClear() => OutputAudioBufferClear is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferClear' but the value was {ToString()}."); /// @@ -342,8 +342,8 @@ public bool TryPickInputAudioBufferCommit( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit PickInputAudioBufferCommit() => IsInputAudioBufferCommit - ? InputAudioBufferCommit! + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit PickInputAudioBufferCommit() => InputAudioBufferCommit is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferCommit' but the value was {ToString()}."); /// @@ -383,8 +383,8 @@ public bool TryPickResponseCancel( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel PickResponseCancel() => IsResponseCancel - ? ResponseCancel! + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel PickResponseCancel() => ResponseCancel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCancel' but the value was {ToString()}."); /// @@ -439,8 +439,8 @@ public bool TryPickResponseCreate( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate PickResponseCreate() => IsResponseCreate - ? ResponseCreate! + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate PickResponseCreate() => ResponseCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreate' but the value was {ToString()}."); /// @@ -483,8 +483,8 @@ public bool TryPickSessionUpdate( /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate PickSessionUpdate() => IsSessionUpdate - ? SessionUpdate! + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate PickSessionUpdate() => SessionUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdate' but the value was {ToString()}."); /// /// @@ -836,49 +836,49 @@ public bool Validate() Validate(); } - if (IsConversationItemCreate && conversationItemCreate != null) + if (ConversationItemCreate is { } __value0 && conversationItemCreate != null) { - return conversationItemCreate(ConversationItemCreate!); + return conversationItemCreate(__value0); } - else if (IsConversationItemDelete && conversationItemDelete != null) + else if (ConversationItemDelete is { } __value1 && conversationItemDelete != null) { - return conversationItemDelete(ConversationItemDelete!); + return conversationItemDelete(__value1); } - else if (IsConversationItemRetrieve && conversationItemRetrieve != null) + else if (ConversationItemRetrieve is { } __value2 && conversationItemRetrieve != null) { - return conversationItemRetrieve(ConversationItemRetrieve!); + return conversationItemRetrieve(__value2); } - else if (IsConversationItemTruncate && conversationItemTruncate != null) + else if (ConversationItemTruncate is { } __value3 && conversationItemTruncate != null) { - return conversationItemTruncate(ConversationItemTruncate!); + return conversationItemTruncate(__value3); } - else if (IsInputAudioBufferAppend && inputAudioBufferAppend != null) + else if (InputAudioBufferAppend is { } __value4 && inputAudioBufferAppend != null) { - return inputAudioBufferAppend(InputAudioBufferAppend!); + return inputAudioBufferAppend(__value4); } - else if (IsInputAudioBufferClear && inputAudioBufferClear != null) + else if (InputAudioBufferClear is { } __value5 && inputAudioBufferClear != null) { - return inputAudioBufferClear(InputAudioBufferClear!); + return inputAudioBufferClear(__value5); } - else if (IsOutputAudioBufferClear && outputAudioBufferClear != null) + else if (OutputAudioBufferClear is { } __value6 && outputAudioBufferClear != null) { - return outputAudioBufferClear(OutputAudioBufferClear!); + return outputAudioBufferClear(__value6); } - else if (IsInputAudioBufferCommit && inputAudioBufferCommit != null) + else if (InputAudioBufferCommit is { } __value7 && inputAudioBufferCommit != null) { - return inputAudioBufferCommit(InputAudioBufferCommit!); + return inputAudioBufferCommit(__value7); } - else if (IsResponseCancel && responseCancel != null) + else if (ResponseCancel is { } __value8 && responseCancel != null) { - return responseCancel(ResponseCancel!); + return responseCancel(__value8); } - else if (IsResponseCreate && responseCreate != null) + else if (ResponseCreate is { } __value9 && responseCreate != null) { - return responseCreate(ResponseCreate!); + return responseCreate(__value9); } - else if (IsSessionUpdate && sessionUpdate != null) + else if (SessionUpdate is { } __value10 && sessionUpdate != null) { - return sessionUpdate(SessionUpdate!); + return sessionUpdate(__value10); } return default(TResult); @@ -916,49 +916,49 @@ public void Match( Validate(); } - if (IsConversationItemCreate) + if (ConversationItemCreate is { } __value0) { - conversationItemCreate?.Invoke(ConversationItemCreate!); + conversationItemCreate?.Invoke(__value0); } - else if (IsConversationItemDelete) + else if (ConversationItemDelete is { } __value1) { - conversationItemDelete?.Invoke(ConversationItemDelete!); + conversationItemDelete?.Invoke(__value1); } - else if (IsConversationItemRetrieve) + else if (ConversationItemRetrieve is { } __value2) { - conversationItemRetrieve?.Invoke(ConversationItemRetrieve!); + conversationItemRetrieve?.Invoke(__value2); } - else if (IsConversationItemTruncate) + else if (ConversationItemTruncate is { } __value3) { - conversationItemTruncate?.Invoke(ConversationItemTruncate!); + conversationItemTruncate?.Invoke(__value3); } - else if (IsInputAudioBufferAppend) + else if (InputAudioBufferAppend is { } __value4) { - inputAudioBufferAppend?.Invoke(InputAudioBufferAppend!); + inputAudioBufferAppend?.Invoke(__value4); } - else if (IsInputAudioBufferClear) + else if (InputAudioBufferClear is { } __value5) { - inputAudioBufferClear?.Invoke(InputAudioBufferClear!); + inputAudioBufferClear?.Invoke(__value5); } - else if (IsOutputAudioBufferClear) + else if (OutputAudioBufferClear is { } __value6) { - outputAudioBufferClear?.Invoke(OutputAudioBufferClear!); + outputAudioBufferClear?.Invoke(__value6); } - else if (IsInputAudioBufferCommit) + else if (InputAudioBufferCommit is { } __value7) { - inputAudioBufferCommit?.Invoke(InputAudioBufferCommit!); + inputAudioBufferCommit?.Invoke(__value7); } - else if (IsResponseCancel) + else if (ResponseCancel is { } __value8) { - responseCancel?.Invoke(ResponseCancel!); + responseCancel?.Invoke(__value8); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value9) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value9); } - else if (IsSessionUpdate) + else if (SessionUpdate is { } __value10) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value10); } } @@ -984,49 +984,49 @@ public void Switch( Validate(); } - if (IsConversationItemCreate) + if (ConversationItemCreate is { } __value0) { - conversationItemCreate?.Invoke(ConversationItemCreate!); + conversationItemCreate?.Invoke(__value0); } - else if (IsConversationItemDelete) + else if (ConversationItemDelete is { } __value1) { - conversationItemDelete?.Invoke(ConversationItemDelete!); + conversationItemDelete?.Invoke(__value1); } - else if (IsConversationItemRetrieve) + else if (ConversationItemRetrieve is { } __value2) { - conversationItemRetrieve?.Invoke(ConversationItemRetrieve!); + conversationItemRetrieve?.Invoke(__value2); } - else if (IsConversationItemTruncate) + else if (ConversationItemTruncate is { } __value3) { - conversationItemTruncate?.Invoke(ConversationItemTruncate!); + conversationItemTruncate?.Invoke(__value3); } - else if (IsInputAudioBufferAppend) + else if (InputAudioBufferAppend is { } __value4) { - inputAudioBufferAppend?.Invoke(InputAudioBufferAppend!); + inputAudioBufferAppend?.Invoke(__value4); } - else if (IsInputAudioBufferClear) + else if (InputAudioBufferClear is { } __value5) { - inputAudioBufferClear?.Invoke(InputAudioBufferClear!); + inputAudioBufferClear?.Invoke(__value5); } - else if (IsOutputAudioBufferClear) + else if (OutputAudioBufferClear is { } __value6) { - outputAudioBufferClear?.Invoke(OutputAudioBufferClear!); + outputAudioBufferClear?.Invoke(__value6); } - else if (IsInputAudioBufferCommit) + else if (InputAudioBufferCommit is { } __value7) { - inputAudioBufferCommit?.Invoke(InputAudioBufferCommit!); + inputAudioBufferCommit?.Invoke(__value7); } - else if (IsResponseCancel) + else if (ResponseCancel is { } __value8) { - responseCancel?.Invoke(ResponseCancel!); + responseCancel?.Invoke(__value8); } - else if (IsResponseCreate) + else if (ResponseCreate is { } __value9) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value9); } - else if (IsSessionUpdate) + else if (SessionUpdate is { } __value10) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value10); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs index 7e1955869..e98b5aa25 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickMessage1( /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem PickMessage1() => IsMessage1 - ? Message1! + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem PickMessage1() => Message1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message1' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickMessage2( /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser PickMessage2() => IsMessage2 - ? Message2! + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser PickMessage2() => Message2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message2' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickMessage3( /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant PickMessage3() => IsMessage3 - ? Message3! + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant PickMessage3() => Message3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message3' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickMcpListTools( /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListTools PickMcpListTools() => IsMcpListTools - ? McpListTools! + public global::tryAGI.OpenAI.RealtimeMCPListTools PickMcpListTools() => McpListTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListTools' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCall PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.RealtimeMCPToolCall PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickMcpApprovalRequest( /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest PickMcpApprovalRequest() => IsMcpApprovalRequest - ? McpApprovalRequest! + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest PickMcpApprovalRequest() => McpApprovalRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalRequest' but the value was {ToString()}."); /// /// @@ -640,41 +640,41 @@ public bool Validate() Validate(); } - if (IsMessage1 && message1 != null) + if (Message1 is { } __value0 && message1 != null) { - return message1(Message1!); + return message1(__value0); } - else if (IsMessage2 && message2 != null) + else if (Message2 is { } __value1 && message2 != null) { - return message2(Message2!); + return message2(__value1); } - else if (IsMessage3 && message3 != null) + else if (Message3 is { } __value2 && message3 != null) { - return message3(Message3!); + return message3(__value2); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value3 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value3); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value4 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value4); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value5 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value5); } - else if (IsMcpListTools && mcpListTools != null) + else if (McpListTools is { } __value6 && mcpListTools != null) { - return mcpListTools(McpListTools!); + return mcpListTools(__value6); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value7 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value7); } - else if (IsMcpApprovalRequest && mcpApprovalRequest != null) + else if (McpApprovalRequest is { } __value8 && mcpApprovalRequest != null) { - return mcpApprovalRequest(McpApprovalRequest!); + return mcpApprovalRequest(__value8); } return default(TResult); @@ -708,41 +708,41 @@ public void Match( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsMessage3) + else if (Message3 is { } __value2) { - message3?.Invoke(Message3!); + message3?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value4) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value4); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value5) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value5); } - else if (IsMcpListTools) + else if (McpListTools is { } __value6) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value6); } - else if (IsMcpCall) + else if (McpCall is { } __value7) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value7); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value8) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value8); } } @@ -766,41 +766,41 @@ public void Switch( Validate(); } - if (IsMessage1) + if (Message1 is { } __value0) { - message1?.Invoke(Message1!); + message1?.Invoke(__value0); } - else if (IsMessage2) + else if (Message2 is { } __value1) { - message2?.Invoke(Message2!); + message2?.Invoke(__value1); } - else if (IsMessage3) + else if (Message3 is { } __value2) { - message3?.Invoke(Message3!); + message3?.Invoke(__value2); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value3) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value3); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value4) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value4); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value5) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value5); } - else if (IsMcpListTools) + else if (McpListTools is { } __value6) { - mcpListTools?.Invoke(McpListTools!); + mcpListTools?.Invoke(__value6); } - else if (IsMcpCall) + else if (McpCall is { } __value7) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value7); } - else if (IsMcpApprovalRequest) + else if (McpApprovalRequest is { } __value8) { - mcpApprovalRequest?.Invoke(McpApprovalRequest!); + mcpApprovalRequest?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs index 1d3230f02..d6d4689fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickConversationCreated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated PickConversationCreated() => IsConversationCreated - ? ConversationCreated! + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated PickConversationCreated() => ConversationCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationCreated' but the value was {ToString()}."); /// @@ -92,8 +92,8 @@ public bool TryPickConversationItemCreated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated PickConversationItemCreated() => IsConversationItemCreated - ? ConversationItemCreated! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated PickConversationItemCreated() => ConversationItemCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemCreated' but the value was {ToString()}."); /// @@ -131,8 +131,8 @@ public bool TryPickConversationItemDeleted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted PickConversationItemDeleted() => IsConversationItemDeleted - ? ConversationItemDeleted! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted PickConversationItemDeleted() => ConversationItemDeleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemDeleted' but the value was {ToString()}."); /// @@ -176,8 +176,8 @@ public bool TryPickConversationItemInputAudioTranscriptionCompleted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted PickConversationItemInputAudioTranscriptionCompleted() => IsConversationItemInputAudioTranscriptionCompleted - ? ConversationItemInputAudioTranscriptionCompleted! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted PickConversationItemInputAudioTranscriptionCompleted() => ConversationItemInputAudioTranscriptionCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionCompleted' but the value was {ToString()}."); /// @@ -213,8 +213,8 @@ public bool TryPickConversationItemInputAudioTranscriptionDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta PickConversationItemInputAudioTranscriptionDelta() => IsConversationItemInputAudioTranscriptionDelta - ? ConversationItemInputAudioTranscriptionDelta! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta PickConversationItemInputAudioTranscriptionDelta() => ConversationItemInputAudioTranscriptionDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionDelta' but the value was {ToString()}."); /// @@ -252,8 +252,8 @@ public bool TryPickConversationItemInputAudioTranscriptionFailed( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed PickConversationItemInputAudioTranscriptionFailed() => IsConversationItemInputAudioTranscriptionFailed - ? ConversationItemInputAudioTranscriptionFailed! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed PickConversationItemInputAudioTranscriptionFailed() => ConversationItemInputAudioTranscriptionFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionFailed' but the value was {ToString()}."); /// @@ -289,8 +289,8 @@ public bool TryPickConversationItemRetrieved( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved PickConversationItemRetrieved() => IsConversationItemRetrieved - ? ConversationItemRetrieved! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved PickConversationItemRetrieved() => ConversationItemRetrieved is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemRetrieved' but the value was {ToString()}."); /// @@ -330,8 +330,8 @@ public bool TryPickConversationItemTruncated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated PickConversationItemTruncated() => IsConversationItemTruncated - ? ConversationItemTruncated! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated PickConversationItemTruncated() => ConversationItemTruncated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemTruncated' but the value was {ToString()}."); /// @@ -369,8 +369,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.RealtimeServerEventError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -407,8 +407,8 @@ public bool TryPickInputAudioBufferCleared( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared PickInputAudioBufferCleared() => IsInputAudioBufferCleared - ? InputAudioBufferCleared! + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared PickInputAudioBufferCleared() => InputAudioBufferCleared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferCleared' but the value was {ToString()}."); /// @@ -447,8 +447,8 @@ public bool TryPickInputAudioBufferCommitted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted PickInputAudioBufferCommitted() => IsInputAudioBufferCommitted - ? InputAudioBufferCommitted! + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted PickInputAudioBufferCommitted() => InputAudioBufferCommitted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferCommitted' but the value was {ToString()}."); /// @@ -487,8 +487,8 @@ public bool TryPickInputAudioBufferDtmfEventReceived( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived PickInputAudioBufferDtmfEventReceived() => IsInputAudioBufferDtmfEventReceived - ? InputAudioBufferDtmfEventReceived! + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived PickInputAudioBufferDtmfEventReceived() => InputAudioBufferDtmfEventReceived is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferDtmfEventReceived' but the value was {ToString()}."); /// @@ -532,8 +532,8 @@ public bool TryPickInputAudioBufferSpeechStarted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted PickInputAudioBufferSpeechStarted() => IsInputAudioBufferSpeechStarted - ? InputAudioBufferSpeechStarted! + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted PickInputAudioBufferSpeechStarted() => InputAudioBufferSpeechStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferSpeechStarted' but the value was {ToString()}."); /// @@ -571,8 +571,8 @@ public bool TryPickInputAudioBufferSpeechStopped( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped PickInputAudioBufferSpeechStopped() => IsInputAudioBufferSpeechStopped - ? InputAudioBufferSpeechStopped! + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped PickInputAudioBufferSpeechStopped() => InputAudioBufferSpeechStopped is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferSpeechStopped' but the value was {ToString()}."); /// @@ -611,8 +611,8 @@ public bool TryPickRateLimitsUpdated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated PickRateLimitsUpdated() => IsRateLimitsUpdated - ? RateLimitsUpdated! + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated PickRateLimitsUpdated() => RateLimitsUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RateLimitsUpdated' but the value was {ToString()}."); /// @@ -648,8 +648,8 @@ public bool TryPickResponseOutputAudioDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta PickResponseOutputAudioDelta() => IsResponseOutputAudioDelta - ? ResponseOutputAudioDelta! + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta PickResponseOutputAudioDelta() => ResponseOutputAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioDelta' but the value was {ToString()}."); /// @@ -686,8 +686,8 @@ public bool TryPickResponseOutputAudioDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone PickResponseOutputAudioDone() => IsResponseOutputAudioDone - ? ResponseOutputAudioDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone PickResponseOutputAudioDone() => ResponseOutputAudioDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioDone' but the value was {ToString()}."); /// @@ -723,8 +723,8 @@ public bool TryPickResponseOutputAudioTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta PickResponseOutputAudioTranscriptDelta() => IsResponseOutputAudioTranscriptDelta - ? ResponseOutputAudioTranscriptDelta! + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta PickResponseOutputAudioTranscriptDelta() => ResponseOutputAudioTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioTranscriptDelta' but the value was {ToString()}."); /// @@ -762,8 +762,8 @@ public bool TryPickResponseOutputAudioTranscriptDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone PickResponseOutputAudioTranscriptDone() => IsResponseOutputAudioTranscriptDone - ? ResponseOutputAudioTranscriptDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone PickResponseOutputAudioTranscriptDone() => ResponseOutputAudioTranscriptDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputAudioTranscriptDone' but the value was {ToString()}."); /// @@ -800,8 +800,8 @@ public bool TryPickResponseContentPartAdded( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded PickResponseContentPartAdded() => IsResponseContentPartAdded - ? ResponseContentPartAdded! + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded PickResponseContentPartAdded() => ResponseContentPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartAdded' but the value was {ToString()}."); /// @@ -838,8 +838,8 @@ public bool TryPickResponseContentPartDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone PickResponseContentPartDone() => IsResponseContentPartDone - ? ResponseContentPartDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone PickResponseContentPartDone() => ResponseContentPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartDone' but the value was {ToString()}."); /// @@ -876,8 +876,8 @@ public bool TryPickResponseCreated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated PickResponseCreated() => IsResponseCreated - ? ResponseCreated! + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated PickResponseCreated() => ResponseCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreated' but the value was {ToString()}."); /// @@ -919,8 +919,8 @@ public bool TryPickResponseDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone PickResponseDone() => IsResponseDone - ? ResponseDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone PickResponseDone() => ResponseDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseDone' but the value was {ToString()}."); /// @@ -956,8 +956,8 @@ public bool TryPickResponseFunctionCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta PickResponseFunctionCallArgumentsDelta() => IsResponseFunctionCallArgumentsDelta - ? ResponseFunctionCallArgumentsDelta! + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta PickResponseFunctionCallArgumentsDelta() => ResponseFunctionCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDelta' but the value was {ToString()}."); /// @@ -994,8 +994,8 @@ public bool TryPickResponseFunctionCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone PickResponseFunctionCallArgumentsDone() => IsResponseFunctionCallArgumentsDone - ? ResponseFunctionCallArgumentsDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone PickResponseFunctionCallArgumentsDone() => ResponseFunctionCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDone' but the value was {ToString()}."); /// @@ -1031,8 +1031,8 @@ public bool TryPickResponseOutputItemAdded( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded PickResponseOutputItemAdded() => IsResponseOutputItemAdded - ? ResponseOutputItemAdded! + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded PickResponseOutputItemAdded() => ResponseOutputItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemAdded' but the value was {ToString()}."); /// @@ -1069,8 +1069,8 @@ public bool TryPickResponseOutputItemDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone PickResponseOutputItemDone() => IsResponseOutputItemDone - ? ResponseOutputItemDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone PickResponseOutputItemDone() => ResponseOutputItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemDone' but the value was {ToString()}."); /// @@ -1106,8 +1106,8 @@ public bool TryPickResponseOutputTextDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta PickResponseOutputTextDelta() => IsResponseOutputTextDelta - ? ResponseOutputTextDelta! + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta PickResponseOutputTextDelta() => ResponseOutputTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDelta' but the value was {ToString()}."); /// @@ -1144,8 +1144,8 @@ public bool TryPickResponseOutputTextDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone PickResponseOutputTextDone() => IsResponseOutputTextDone - ? ResponseOutputTextDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone PickResponseOutputTextDone() => ResponseOutputTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDone' but the value was {ToString()}."); /// @@ -1183,8 +1183,8 @@ public bool TryPickSessionCreated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated PickSessionCreated() => IsSessionCreated - ? SessionCreated! + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated PickSessionCreated() => SessionCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCreated' but the value was {ToString()}."); /// @@ -1221,8 +1221,8 @@ public bool TryPickSessionUpdated( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated PickSessionUpdated() => IsSessionUpdated - ? SessionUpdated! + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated PickSessionUpdated() => SessionUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdated' but the value was {ToString()}."); /// @@ -1261,8 +1261,8 @@ public bool TryPickOutputAudioBufferStarted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted PickOutputAudioBufferStarted() => IsOutputAudioBufferStarted - ? OutputAudioBufferStarted! + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted PickOutputAudioBufferStarted() => OutputAudioBufferStarted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferStarted' but the value was {ToString()}."); /// @@ -1301,8 +1301,8 @@ public bool TryPickOutputAudioBufferStopped( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped PickOutputAudioBufferStopped() => IsOutputAudioBufferStopped - ? OutputAudioBufferStopped! + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped PickOutputAudioBufferStopped() => OutputAudioBufferStopped is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferStopped' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickOutputAudioBufferCleared( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared PickOutputAudioBufferCleared() => IsOutputAudioBufferCleared - ? OutputAudioBufferCleared! + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared PickOutputAudioBufferCleared() => OutputAudioBufferCleared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OutputAudioBufferCleared' but the value was {ToString()}."); /// @@ -1383,8 +1383,8 @@ public bool TryPickConversationItemAdded( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded PickConversationItemAdded() => IsConversationItemAdded - ? ConversationItemAdded! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded PickConversationItemAdded() => ConversationItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemAdded' but the value was {ToString()}."); /// @@ -1421,8 +1421,8 @@ public bool TryPickConversationItemDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone PickConversationItemDone() => IsConversationItemDone - ? ConversationItemDone! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone PickConversationItemDone() => ConversationItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemDone' but the value was {ToString()}."); /// @@ -1468,8 +1468,8 @@ public bool TryPickInputAudioBufferTimeoutTriggered( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered PickInputAudioBufferTimeoutTriggered() => IsInputAudioBufferTimeoutTriggered - ? InputAudioBufferTimeoutTriggered! + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered PickInputAudioBufferTimeoutTriggered() => InputAudioBufferTimeoutTriggered is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InputAudioBufferTimeoutTriggered' but the value was {ToString()}."); /// @@ -1505,8 +1505,8 @@ public bool TryPickConversationItemInputAudioTranscriptionSegment( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment PickConversationItemInputAudioTranscriptionSegment() => IsConversationItemInputAudioTranscriptionSegment - ? ConversationItemInputAudioTranscriptionSegment! + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment PickConversationItemInputAudioTranscriptionSegment() => ConversationItemInputAudioTranscriptionSegment is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ConversationItemInputAudioTranscriptionSegment' but the value was {ToString()}."); /// @@ -1542,8 +1542,8 @@ public bool TryPickMcpListToolsInProgress( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress PickMcpListToolsInProgress() => IsMcpListToolsInProgress - ? McpListToolsInProgress! + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress PickMcpListToolsInProgress() => McpListToolsInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListToolsInProgress' but the value was {ToString()}."); /// @@ -1579,8 +1579,8 @@ public bool TryPickMcpListToolsCompleted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted PickMcpListToolsCompleted() => IsMcpListToolsCompleted - ? McpListToolsCompleted! + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted PickMcpListToolsCompleted() => McpListToolsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListToolsCompleted' but the value was {ToString()}."); /// @@ -1616,8 +1616,8 @@ public bool TryPickMcpListToolsFailed( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed PickMcpListToolsFailed() => IsMcpListToolsFailed - ? McpListToolsFailed! + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed PickMcpListToolsFailed() => McpListToolsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpListToolsFailed' but the value was {ToString()}."); /// @@ -1653,8 +1653,8 @@ public bool TryPickResponseMcpCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta PickResponseMcpCallArgumentsDelta() => IsResponseMcpCallArgumentsDelta - ? ResponseMcpCallArgumentsDelta! + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta PickResponseMcpCallArgumentsDelta() => ResponseMcpCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDelta' but the value was {ToString()}."); /// @@ -1690,8 +1690,8 @@ public bool TryPickResponseMcpCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone PickResponseMcpCallArgumentsDone() => IsResponseMcpCallArgumentsDone - ? ResponseMcpCallArgumentsDone! + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone PickResponseMcpCallArgumentsDone() => ResponseMcpCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDone' but the value was {ToString()}."); /// @@ -1727,8 +1727,8 @@ public bool TryPickResponseMcpCallInProgress( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress PickResponseMcpCallInProgress() => IsResponseMcpCallInProgress - ? ResponseMcpCallInProgress! + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress PickResponseMcpCallInProgress() => ResponseMcpCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallInProgress' but the value was {ToString()}."); /// @@ -1764,8 +1764,8 @@ public bool TryPickResponseMcpCallCompleted( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted PickResponseMcpCallCompleted() => IsResponseMcpCallCompleted - ? ResponseMcpCallCompleted! + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted PickResponseMcpCallCompleted() => ResponseMcpCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallCompleted' but the value was {ToString()}."); /// @@ -1801,8 +1801,8 @@ public bool TryPickResponseMcpCallFailed( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed PickResponseMcpCallFailed() => IsResponseMcpCallFailed - ? ResponseMcpCallFailed! + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed PickResponseMcpCallFailed() => ResponseMcpCallFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallFailed' but the value was {ToString()}."); /// /// @@ -3134,189 +3134,189 @@ public bool Validate() Validate(); } - if (IsConversationCreated && conversationCreated != null) + if (ConversationCreated is { } __value0 && conversationCreated != null) { - return conversationCreated(ConversationCreated!); + return conversationCreated(__value0); } - else if (IsConversationItemCreated && conversationItemCreated != null) + else if (ConversationItemCreated is { } __value1 && conversationItemCreated != null) { - return conversationItemCreated(ConversationItemCreated!); + return conversationItemCreated(__value1); } - else if (IsConversationItemDeleted && conversationItemDeleted != null) + else if (ConversationItemDeleted is { } __value2 && conversationItemDeleted != null) { - return conversationItemDeleted(ConversationItemDeleted!); + return conversationItemDeleted(__value2); } - else if (IsConversationItemInputAudioTranscriptionCompleted && conversationItemInputAudioTranscriptionCompleted != null) + else if (ConversationItemInputAudioTranscriptionCompleted is { } __value3 && conversationItemInputAudioTranscriptionCompleted != null) { - return conversationItemInputAudioTranscriptionCompleted(ConversationItemInputAudioTranscriptionCompleted!); + return conversationItemInputAudioTranscriptionCompleted(__value3); } - else if (IsConversationItemInputAudioTranscriptionDelta && conversationItemInputAudioTranscriptionDelta != null) + else if (ConversationItemInputAudioTranscriptionDelta is { } __value4 && conversationItemInputAudioTranscriptionDelta != null) { - return conversationItemInputAudioTranscriptionDelta(ConversationItemInputAudioTranscriptionDelta!); + return conversationItemInputAudioTranscriptionDelta(__value4); } - else if (IsConversationItemInputAudioTranscriptionFailed && conversationItemInputAudioTranscriptionFailed != null) + else if (ConversationItemInputAudioTranscriptionFailed is { } __value5 && conversationItemInputAudioTranscriptionFailed != null) { - return conversationItemInputAudioTranscriptionFailed(ConversationItemInputAudioTranscriptionFailed!); + return conversationItemInputAudioTranscriptionFailed(__value5); } - else if (IsConversationItemRetrieved && conversationItemRetrieved != null) + else if (ConversationItemRetrieved is { } __value6 && conversationItemRetrieved != null) { - return conversationItemRetrieved(ConversationItemRetrieved!); + return conversationItemRetrieved(__value6); } - else if (IsConversationItemTruncated && conversationItemTruncated != null) + else if (ConversationItemTruncated is { } __value7 && conversationItemTruncated != null) { - return conversationItemTruncated(ConversationItemTruncated!); + return conversationItemTruncated(__value7); } - else if (IsError && error != null) + else if (Error is { } __value8 && error != null) { - return error(Error!); + return error(__value8); } - else if (IsInputAudioBufferCleared && inputAudioBufferCleared != null) + else if (InputAudioBufferCleared is { } __value9 && inputAudioBufferCleared != null) { - return inputAudioBufferCleared(InputAudioBufferCleared!); + return inputAudioBufferCleared(__value9); } - else if (IsInputAudioBufferCommitted && inputAudioBufferCommitted != null) + else if (InputAudioBufferCommitted is { } __value10 && inputAudioBufferCommitted != null) { - return inputAudioBufferCommitted(InputAudioBufferCommitted!); + return inputAudioBufferCommitted(__value10); } - else if (IsInputAudioBufferDtmfEventReceived && inputAudioBufferDtmfEventReceived != null) + else if (InputAudioBufferDtmfEventReceived is { } __value11 && inputAudioBufferDtmfEventReceived != null) { - return inputAudioBufferDtmfEventReceived(InputAudioBufferDtmfEventReceived!); + return inputAudioBufferDtmfEventReceived(__value11); } - else if (IsInputAudioBufferSpeechStarted && inputAudioBufferSpeechStarted != null) + else if (InputAudioBufferSpeechStarted is { } __value12 && inputAudioBufferSpeechStarted != null) { - return inputAudioBufferSpeechStarted(InputAudioBufferSpeechStarted!); + return inputAudioBufferSpeechStarted(__value12); } - else if (IsInputAudioBufferSpeechStopped && inputAudioBufferSpeechStopped != null) + else if (InputAudioBufferSpeechStopped is { } __value13 && inputAudioBufferSpeechStopped != null) { - return inputAudioBufferSpeechStopped(InputAudioBufferSpeechStopped!); + return inputAudioBufferSpeechStopped(__value13); } - else if (IsRateLimitsUpdated && rateLimitsUpdated != null) + else if (RateLimitsUpdated is { } __value14 && rateLimitsUpdated != null) { - return rateLimitsUpdated(RateLimitsUpdated!); + return rateLimitsUpdated(__value14); } - else if (IsResponseOutputAudioDelta && responseOutputAudioDelta != null) + else if (ResponseOutputAudioDelta is { } __value15 && responseOutputAudioDelta != null) { - return responseOutputAudioDelta(ResponseOutputAudioDelta!); + return responseOutputAudioDelta(__value15); } - else if (IsResponseOutputAudioDone && responseOutputAudioDone != null) + else if (ResponseOutputAudioDone is { } __value16 && responseOutputAudioDone != null) { - return responseOutputAudioDone(ResponseOutputAudioDone!); + return responseOutputAudioDone(__value16); } - else if (IsResponseOutputAudioTranscriptDelta && responseOutputAudioTranscriptDelta != null) + else if (ResponseOutputAudioTranscriptDelta is { } __value17 && responseOutputAudioTranscriptDelta != null) { - return responseOutputAudioTranscriptDelta(ResponseOutputAudioTranscriptDelta!); + return responseOutputAudioTranscriptDelta(__value17); } - else if (IsResponseOutputAudioTranscriptDone && responseOutputAudioTranscriptDone != null) + else if (ResponseOutputAudioTranscriptDone is { } __value18 && responseOutputAudioTranscriptDone != null) { - return responseOutputAudioTranscriptDone(ResponseOutputAudioTranscriptDone!); + return responseOutputAudioTranscriptDone(__value18); } - else if (IsResponseContentPartAdded && responseContentPartAdded != null) + else if (ResponseContentPartAdded is { } __value19 && responseContentPartAdded != null) { - return responseContentPartAdded(ResponseContentPartAdded!); + return responseContentPartAdded(__value19); } - else if (IsResponseContentPartDone && responseContentPartDone != null) + else if (ResponseContentPartDone is { } __value20 && responseContentPartDone != null) { - return responseContentPartDone(ResponseContentPartDone!); + return responseContentPartDone(__value20); } - else if (IsResponseCreated && responseCreated != null) + else if (ResponseCreated is { } __value21 && responseCreated != null) { - return responseCreated(ResponseCreated!); + return responseCreated(__value21); } - else if (IsResponseDone && responseDone != null) + else if (ResponseDone is { } __value22 && responseDone != null) { - return responseDone(ResponseDone!); + return responseDone(__value22); } - else if (IsResponseFunctionCallArgumentsDelta && responseFunctionCallArgumentsDelta != null) + else if (ResponseFunctionCallArgumentsDelta is { } __value23 && responseFunctionCallArgumentsDelta != null) { - return responseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDelta!); + return responseFunctionCallArgumentsDelta(__value23); } - else if (IsResponseFunctionCallArgumentsDone && responseFunctionCallArgumentsDone != null) + else if (ResponseFunctionCallArgumentsDone is { } __value24 && responseFunctionCallArgumentsDone != null) { - return responseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDone!); + return responseFunctionCallArgumentsDone(__value24); } - else if (IsResponseOutputItemAdded && responseOutputItemAdded != null) + else if (ResponseOutputItemAdded is { } __value25 && responseOutputItemAdded != null) { - return responseOutputItemAdded(ResponseOutputItemAdded!); + return responseOutputItemAdded(__value25); } - else if (IsResponseOutputItemDone && responseOutputItemDone != null) + else if (ResponseOutputItemDone is { } __value26 && responseOutputItemDone != null) { - return responseOutputItemDone(ResponseOutputItemDone!); + return responseOutputItemDone(__value26); } - else if (IsResponseOutputTextDelta && responseOutputTextDelta != null) + else if (ResponseOutputTextDelta is { } __value27 && responseOutputTextDelta != null) { - return responseOutputTextDelta(ResponseOutputTextDelta!); + return responseOutputTextDelta(__value27); } - else if (IsResponseOutputTextDone && responseOutputTextDone != null) + else if (ResponseOutputTextDone is { } __value28 && responseOutputTextDone != null) { - return responseOutputTextDone(ResponseOutputTextDone!); + return responseOutputTextDone(__value28); } - else if (IsSessionCreated && sessionCreated != null) + else if (SessionCreated is { } __value29 && sessionCreated != null) { - return sessionCreated(SessionCreated!); + return sessionCreated(__value29); } - else if (IsSessionUpdated && sessionUpdated != null) + else if (SessionUpdated is { } __value30 && sessionUpdated != null) { - return sessionUpdated(SessionUpdated!); + return sessionUpdated(__value30); } - else if (IsOutputAudioBufferStarted && outputAudioBufferStarted != null) + else if (OutputAudioBufferStarted is { } __value31 && outputAudioBufferStarted != null) { - return outputAudioBufferStarted(OutputAudioBufferStarted!); + return outputAudioBufferStarted(__value31); } - else if (IsOutputAudioBufferStopped && outputAudioBufferStopped != null) + else if (OutputAudioBufferStopped is { } __value32 && outputAudioBufferStopped != null) { - return outputAudioBufferStopped(OutputAudioBufferStopped!); + return outputAudioBufferStopped(__value32); } - else if (IsOutputAudioBufferCleared && outputAudioBufferCleared != null) + else if (OutputAudioBufferCleared is { } __value33 && outputAudioBufferCleared != null) { - return outputAudioBufferCleared(OutputAudioBufferCleared!); + return outputAudioBufferCleared(__value33); } - else if (IsConversationItemAdded && conversationItemAdded != null) + else if (ConversationItemAdded is { } __value34 && conversationItemAdded != null) { - return conversationItemAdded(ConversationItemAdded!); + return conversationItemAdded(__value34); } - else if (IsConversationItemDone && conversationItemDone != null) + else if (ConversationItemDone is { } __value35 && conversationItemDone != null) { - return conversationItemDone(ConversationItemDone!); + return conversationItemDone(__value35); } - else if (IsInputAudioBufferTimeoutTriggered && inputAudioBufferTimeoutTriggered != null) + else if (InputAudioBufferTimeoutTriggered is { } __value36 && inputAudioBufferTimeoutTriggered != null) { - return inputAudioBufferTimeoutTriggered(InputAudioBufferTimeoutTriggered!); + return inputAudioBufferTimeoutTriggered(__value36); } - else if (IsConversationItemInputAudioTranscriptionSegment && conversationItemInputAudioTranscriptionSegment != null) + else if (ConversationItemInputAudioTranscriptionSegment is { } __value37 && conversationItemInputAudioTranscriptionSegment != null) { - return conversationItemInputAudioTranscriptionSegment(ConversationItemInputAudioTranscriptionSegment!); + return conversationItemInputAudioTranscriptionSegment(__value37); } - else if (IsMcpListToolsInProgress && mcpListToolsInProgress != null) + else if (McpListToolsInProgress is { } __value38 && mcpListToolsInProgress != null) { - return mcpListToolsInProgress(McpListToolsInProgress!); + return mcpListToolsInProgress(__value38); } - else if (IsMcpListToolsCompleted && mcpListToolsCompleted != null) + else if (McpListToolsCompleted is { } __value39 && mcpListToolsCompleted != null) { - return mcpListToolsCompleted(McpListToolsCompleted!); + return mcpListToolsCompleted(__value39); } - else if (IsMcpListToolsFailed && mcpListToolsFailed != null) + else if (McpListToolsFailed is { } __value40 && mcpListToolsFailed != null) { - return mcpListToolsFailed(McpListToolsFailed!); + return mcpListToolsFailed(__value40); } - else if (IsResponseMcpCallArgumentsDelta && responseMcpCallArgumentsDelta != null) + else if (ResponseMcpCallArgumentsDelta is { } __value41 && responseMcpCallArgumentsDelta != null) { - return responseMcpCallArgumentsDelta(ResponseMcpCallArgumentsDelta!); + return responseMcpCallArgumentsDelta(__value41); } - else if (IsResponseMcpCallArgumentsDone && responseMcpCallArgumentsDone != null) + else if (ResponseMcpCallArgumentsDone is { } __value42 && responseMcpCallArgumentsDone != null) { - return responseMcpCallArgumentsDone(ResponseMcpCallArgumentsDone!); + return responseMcpCallArgumentsDone(__value42); } - else if (IsResponseMcpCallInProgress && responseMcpCallInProgress != null) + else if (ResponseMcpCallInProgress is { } __value43 && responseMcpCallInProgress != null) { - return responseMcpCallInProgress(ResponseMcpCallInProgress!); + return responseMcpCallInProgress(__value43); } - else if (IsResponseMcpCallCompleted && responseMcpCallCompleted != null) + else if (ResponseMcpCallCompleted is { } __value44 && responseMcpCallCompleted != null) { - return responseMcpCallCompleted(ResponseMcpCallCompleted!); + return responseMcpCallCompleted(__value44); } - else if (IsResponseMcpCallFailed && responseMcpCallFailed != null) + else if (ResponseMcpCallFailed is { } __value45 && responseMcpCallFailed != null) { - return responseMcpCallFailed(ResponseMcpCallFailed!); + return responseMcpCallFailed(__value45); } return default(TResult); @@ -3424,189 +3424,189 @@ public void Match( Validate(); } - if (IsConversationCreated) + if (ConversationCreated is { } __value0) { - conversationCreated?.Invoke(ConversationCreated!); + conversationCreated?.Invoke(__value0); } - else if (IsConversationItemCreated) + else if (ConversationItemCreated is { } __value1) { - conversationItemCreated?.Invoke(ConversationItemCreated!); + conversationItemCreated?.Invoke(__value1); } - else if (IsConversationItemDeleted) + else if (ConversationItemDeleted is { } __value2) { - conversationItemDeleted?.Invoke(ConversationItemDeleted!); + conversationItemDeleted?.Invoke(__value2); } - else if (IsConversationItemInputAudioTranscriptionCompleted) + else if (ConversationItemInputAudioTranscriptionCompleted is { } __value3) { - conversationItemInputAudioTranscriptionCompleted?.Invoke(ConversationItemInputAudioTranscriptionCompleted!); + conversationItemInputAudioTranscriptionCompleted?.Invoke(__value3); } - else if (IsConversationItemInputAudioTranscriptionDelta) + else if (ConversationItemInputAudioTranscriptionDelta is { } __value4) { - conversationItemInputAudioTranscriptionDelta?.Invoke(ConversationItemInputAudioTranscriptionDelta!); + conversationItemInputAudioTranscriptionDelta?.Invoke(__value4); } - else if (IsConversationItemInputAudioTranscriptionFailed) + else if (ConversationItemInputAudioTranscriptionFailed is { } __value5) { - conversationItemInputAudioTranscriptionFailed?.Invoke(ConversationItemInputAudioTranscriptionFailed!); + conversationItemInputAudioTranscriptionFailed?.Invoke(__value5); } - else if (IsConversationItemRetrieved) + else if (ConversationItemRetrieved is { } __value6) { - conversationItemRetrieved?.Invoke(ConversationItemRetrieved!); + conversationItemRetrieved?.Invoke(__value6); } - else if (IsConversationItemTruncated) + else if (ConversationItemTruncated is { } __value7) { - conversationItemTruncated?.Invoke(ConversationItemTruncated!); + conversationItemTruncated?.Invoke(__value7); } - else if (IsError) + else if (Error is { } __value8) { - error?.Invoke(Error!); + error?.Invoke(__value8); } - else if (IsInputAudioBufferCleared) + else if (InputAudioBufferCleared is { } __value9) { - inputAudioBufferCleared?.Invoke(InputAudioBufferCleared!); + inputAudioBufferCleared?.Invoke(__value9); } - else if (IsInputAudioBufferCommitted) + else if (InputAudioBufferCommitted is { } __value10) { - inputAudioBufferCommitted?.Invoke(InputAudioBufferCommitted!); + inputAudioBufferCommitted?.Invoke(__value10); } - else if (IsInputAudioBufferDtmfEventReceived) + else if (InputAudioBufferDtmfEventReceived is { } __value11) { - inputAudioBufferDtmfEventReceived?.Invoke(InputAudioBufferDtmfEventReceived!); + inputAudioBufferDtmfEventReceived?.Invoke(__value11); } - else if (IsInputAudioBufferSpeechStarted) + else if (InputAudioBufferSpeechStarted is { } __value12) { - inputAudioBufferSpeechStarted?.Invoke(InputAudioBufferSpeechStarted!); + inputAudioBufferSpeechStarted?.Invoke(__value12); } - else if (IsInputAudioBufferSpeechStopped) + else if (InputAudioBufferSpeechStopped is { } __value13) { - inputAudioBufferSpeechStopped?.Invoke(InputAudioBufferSpeechStopped!); + inputAudioBufferSpeechStopped?.Invoke(__value13); } - else if (IsRateLimitsUpdated) + else if (RateLimitsUpdated is { } __value14) { - rateLimitsUpdated?.Invoke(RateLimitsUpdated!); + rateLimitsUpdated?.Invoke(__value14); } - else if (IsResponseOutputAudioDelta) + else if (ResponseOutputAudioDelta is { } __value15) { - responseOutputAudioDelta?.Invoke(ResponseOutputAudioDelta!); + responseOutputAudioDelta?.Invoke(__value15); } - else if (IsResponseOutputAudioDone) + else if (ResponseOutputAudioDone is { } __value16) { - responseOutputAudioDone?.Invoke(ResponseOutputAudioDone!); + responseOutputAudioDone?.Invoke(__value16); } - else if (IsResponseOutputAudioTranscriptDelta) + else if (ResponseOutputAudioTranscriptDelta is { } __value17) { - responseOutputAudioTranscriptDelta?.Invoke(ResponseOutputAudioTranscriptDelta!); + responseOutputAudioTranscriptDelta?.Invoke(__value17); } - else if (IsResponseOutputAudioTranscriptDone) + else if (ResponseOutputAudioTranscriptDone is { } __value18) { - responseOutputAudioTranscriptDone?.Invoke(ResponseOutputAudioTranscriptDone!); + responseOutputAudioTranscriptDone?.Invoke(__value18); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value19) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value19); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value20) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value20); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value21) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value21); } - else if (IsResponseDone) + else if (ResponseDone is { } __value22) { - responseDone?.Invoke(ResponseDone!); + responseDone?.Invoke(__value22); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value23) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value23); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value24) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value24); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value25) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value25); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value26) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value26); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value27) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value27); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value28) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value28); } - else if (IsSessionCreated) + else if (SessionCreated is { } __value29) { - sessionCreated?.Invoke(SessionCreated!); + sessionCreated?.Invoke(__value29); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value30) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value30); } - else if (IsOutputAudioBufferStarted) + else if (OutputAudioBufferStarted is { } __value31) { - outputAudioBufferStarted?.Invoke(OutputAudioBufferStarted!); + outputAudioBufferStarted?.Invoke(__value31); } - else if (IsOutputAudioBufferStopped) + else if (OutputAudioBufferStopped is { } __value32) { - outputAudioBufferStopped?.Invoke(OutputAudioBufferStopped!); + outputAudioBufferStopped?.Invoke(__value32); } - else if (IsOutputAudioBufferCleared) + else if (OutputAudioBufferCleared is { } __value33) { - outputAudioBufferCleared?.Invoke(OutputAudioBufferCleared!); + outputAudioBufferCleared?.Invoke(__value33); } - else if (IsConversationItemAdded) + else if (ConversationItemAdded is { } __value34) { - conversationItemAdded?.Invoke(ConversationItemAdded!); + conversationItemAdded?.Invoke(__value34); } - else if (IsConversationItemDone) + else if (ConversationItemDone is { } __value35) { - conversationItemDone?.Invoke(ConversationItemDone!); + conversationItemDone?.Invoke(__value35); } - else if (IsInputAudioBufferTimeoutTriggered) + else if (InputAudioBufferTimeoutTriggered is { } __value36) { - inputAudioBufferTimeoutTriggered?.Invoke(InputAudioBufferTimeoutTriggered!); + inputAudioBufferTimeoutTriggered?.Invoke(__value36); } - else if (IsConversationItemInputAudioTranscriptionSegment) + else if (ConversationItemInputAudioTranscriptionSegment is { } __value37) { - conversationItemInputAudioTranscriptionSegment?.Invoke(ConversationItemInputAudioTranscriptionSegment!); + conversationItemInputAudioTranscriptionSegment?.Invoke(__value37); } - else if (IsMcpListToolsInProgress) + else if (McpListToolsInProgress is { } __value38) { - mcpListToolsInProgress?.Invoke(McpListToolsInProgress!); + mcpListToolsInProgress?.Invoke(__value38); } - else if (IsMcpListToolsCompleted) + else if (McpListToolsCompleted is { } __value39) { - mcpListToolsCompleted?.Invoke(McpListToolsCompleted!); + mcpListToolsCompleted?.Invoke(__value39); } - else if (IsMcpListToolsFailed) + else if (McpListToolsFailed is { } __value40) { - mcpListToolsFailed?.Invoke(McpListToolsFailed!); + mcpListToolsFailed?.Invoke(__value40); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value41) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value41); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value42) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value42); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value43) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value43); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value44) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value44); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value45) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value45); } } @@ -3667,189 +3667,189 @@ public void Switch( Validate(); } - if (IsConversationCreated) + if (ConversationCreated is { } __value0) { - conversationCreated?.Invoke(ConversationCreated!); + conversationCreated?.Invoke(__value0); } - else if (IsConversationItemCreated) + else if (ConversationItemCreated is { } __value1) { - conversationItemCreated?.Invoke(ConversationItemCreated!); + conversationItemCreated?.Invoke(__value1); } - else if (IsConversationItemDeleted) + else if (ConversationItemDeleted is { } __value2) { - conversationItemDeleted?.Invoke(ConversationItemDeleted!); + conversationItemDeleted?.Invoke(__value2); } - else if (IsConversationItemInputAudioTranscriptionCompleted) + else if (ConversationItemInputAudioTranscriptionCompleted is { } __value3) { - conversationItemInputAudioTranscriptionCompleted?.Invoke(ConversationItemInputAudioTranscriptionCompleted!); + conversationItemInputAudioTranscriptionCompleted?.Invoke(__value3); } - else if (IsConversationItemInputAudioTranscriptionDelta) + else if (ConversationItemInputAudioTranscriptionDelta is { } __value4) { - conversationItemInputAudioTranscriptionDelta?.Invoke(ConversationItemInputAudioTranscriptionDelta!); + conversationItemInputAudioTranscriptionDelta?.Invoke(__value4); } - else if (IsConversationItemInputAudioTranscriptionFailed) + else if (ConversationItemInputAudioTranscriptionFailed is { } __value5) { - conversationItemInputAudioTranscriptionFailed?.Invoke(ConversationItemInputAudioTranscriptionFailed!); + conversationItemInputAudioTranscriptionFailed?.Invoke(__value5); } - else if (IsConversationItemRetrieved) + else if (ConversationItemRetrieved is { } __value6) { - conversationItemRetrieved?.Invoke(ConversationItemRetrieved!); + conversationItemRetrieved?.Invoke(__value6); } - else if (IsConversationItemTruncated) + else if (ConversationItemTruncated is { } __value7) { - conversationItemTruncated?.Invoke(ConversationItemTruncated!); + conversationItemTruncated?.Invoke(__value7); } - else if (IsError) + else if (Error is { } __value8) { - error?.Invoke(Error!); + error?.Invoke(__value8); } - else if (IsInputAudioBufferCleared) + else if (InputAudioBufferCleared is { } __value9) { - inputAudioBufferCleared?.Invoke(InputAudioBufferCleared!); + inputAudioBufferCleared?.Invoke(__value9); } - else if (IsInputAudioBufferCommitted) + else if (InputAudioBufferCommitted is { } __value10) { - inputAudioBufferCommitted?.Invoke(InputAudioBufferCommitted!); + inputAudioBufferCommitted?.Invoke(__value10); } - else if (IsInputAudioBufferDtmfEventReceived) + else if (InputAudioBufferDtmfEventReceived is { } __value11) { - inputAudioBufferDtmfEventReceived?.Invoke(InputAudioBufferDtmfEventReceived!); + inputAudioBufferDtmfEventReceived?.Invoke(__value11); } - else if (IsInputAudioBufferSpeechStarted) + else if (InputAudioBufferSpeechStarted is { } __value12) { - inputAudioBufferSpeechStarted?.Invoke(InputAudioBufferSpeechStarted!); + inputAudioBufferSpeechStarted?.Invoke(__value12); } - else if (IsInputAudioBufferSpeechStopped) + else if (InputAudioBufferSpeechStopped is { } __value13) { - inputAudioBufferSpeechStopped?.Invoke(InputAudioBufferSpeechStopped!); + inputAudioBufferSpeechStopped?.Invoke(__value13); } - else if (IsRateLimitsUpdated) + else if (RateLimitsUpdated is { } __value14) { - rateLimitsUpdated?.Invoke(RateLimitsUpdated!); + rateLimitsUpdated?.Invoke(__value14); } - else if (IsResponseOutputAudioDelta) + else if (ResponseOutputAudioDelta is { } __value15) { - responseOutputAudioDelta?.Invoke(ResponseOutputAudioDelta!); + responseOutputAudioDelta?.Invoke(__value15); } - else if (IsResponseOutputAudioDone) + else if (ResponseOutputAudioDone is { } __value16) { - responseOutputAudioDone?.Invoke(ResponseOutputAudioDone!); + responseOutputAudioDone?.Invoke(__value16); } - else if (IsResponseOutputAudioTranscriptDelta) + else if (ResponseOutputAudioTranscriptDelta is { } __value17) { - responseOutputAudioTranscriptDelta?.Invoke(ResponseOutputAudioTranscriptDelta!); + responseOutputAudioTranscriptDelta?.Invoke(__value17); } - else if (IsResponseOutputAudioTranscriptDone) + else if (ResponseOutputAudioTranscriptDone is { } __value18) { - responseOutputAudioTranscriptDone?.Invoke(ResponseOutputAudioTranscriptDone!); + responseOutputAudioTranscriptDone?.Invoke(__value18); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value19) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value19); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value20) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value20); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value21) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value21); } - else if (IsResponseDone) + else if (ResponseDone is { } __value22) { - responseDone?.Invoke(ResponseDone!); + responseDone?.Invoke(__value22); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value23) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value23); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value24) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value24); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value25) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value25); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value26) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value26); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value27) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value27); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value28) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value28); } - else if (IsSessionCreated) + else if (SessionCreated is { } __value29) { - sessionCreated?.Invoke(SessionCreated!); + sessionCreated?.Invoke(__value29); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value30) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value30); } - else if (IsOutputAudioBufferStarted) + else if (OutputAudioBufferStarted is { } __value31) { - outputAudioBufferStarted?.Invoke(OutputAudioBufferStarted!); + outputAudioBufferStarted?.Invoke(__value31); } - else if (IsOutputAudioBufferStopped) + else if (OutputAudioBufferStopped is { } __value32) { - outputAudioBufferStopped?.Invoke(OutputAudioBufferStopped!); + outputAudioBufferStopped?.Invoke(__value32); } - else if (IsOutputAudioBufferCleared) + else if (OutputAudioBufferCleared is { } __value33) { - outputAudioBufferCleared?.Invoke(OutputAudioBufferCleared!); + outputAudioBufferCleared?.Invoke(__value33); } - else if (IsConversationItemAdded) + else if (ConversationItemAdded is { } __value34) { - conversationItemAdded?.Invoke(ConversationItemAdded!); + conversationItemAdded?.Invoke(__value34); } - else if (IsConversationItemDone) + else if (ConversationItemDone is { } __value35) { - conversationItemDone?.Invoke(ConversationItemDone!); + conversationItemDone?.Invoke(__value35); } - else if (IsInputAudioBufferTimeoutTriggered) + else if (InputAudioBufferTimeoutTriggered is { } __value36) { - inputAudioBufferTimeoutTriggered?.Invoke(InputAudioBufferTimeoutTriggered!); + inputAudioBufferTimeoutTriggered?.Invoke(__value36); } - else if (IsConversationItemInputAudioTranscriptionSegment) + else if (ConversationItemInputAudioTranscriptionSegment is { } __value37) { - conversationItemInputAudioTranscriptionSegment?.Invoke(ConversationItemInputAudioTranscriptionSegment!); + conversationItemInputAudioTranscriptionSegment?.Invoke(__value37); } - else if (IsMcpListToolsInProgress) + else if (McpListToolsInProgress is { } __value38) { - mcpListToolsInProgress?.Invoke(McpListToolsInProgress!); + mcpListToolsInProgress?.Invoke(__value38); } - else if (IsMcpListToolsCompleted) + else if (McpListToolsCompleted is { } __value39) { - mcpListToolsCompleted?.Invoke(McpListToolsCompleted!); + mcpListToolsCompleted?.Invoke(__value39); } - else if (IsMcpListToolsFailed) + else if (McpListToolsFailed is { } __value40) { - mcpListToolsFailed?.Invoke(McpListToolsFailed!); + mcpListToolsFailed?.Invoke(__value40); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value41) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value41); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value42) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value42); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value43) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value43); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value44) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value44); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value45) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value45); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs index 8cd748504..5d957ad17 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs @@ -49,8 +49,8 @@ public bool TryPickSessionUpdate( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate PickSessionUpdate() => IsSessionUpdate - ? SessionUpdate! + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate PickSessionUpdate() => SessionUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdate' but the value was {ToString()}."); /// @@ -97,8 +97,8 @@ public bool TryPickSessionInputAudioBufferAppend( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend PickSessionInputAudioBufferAppend() => IsSessionInputAudioBufferAppend - ? SessionInputAudioBufferAppend! + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend PickSessionInputAudioBufferAppend() => SessionInputAudioBufferAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputAudioBufferAppend' but the value was {ToString()}."); /// @@ -136,8 +136,8 @@ public bool TryPickSessionClose( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose PickSessionClose() => IsSessionClose - ? SessionClose! + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose PickSessionClose() => SessionClose is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClose' but the value was {ToString()}."); /// /// @@ -265,17 +265,17 @@ public bool Validate() Validate(); } - if (IsSessionUpdate && sessionUpdate != null) + if (SessionUpdate is { } __value0 && sessionUpdate != null) { - return sessionUpdate(SessionUpdate!); + return sessionUpdate(__value0); } - else if (IsSessionInputAudioBufferAppend && sessionInputAudioBufferAppend != null) + else if (SessionInputAudioBufferAppend is { } __value1 && sessionInputAudioBufferAppend != null) { - return sessionInputAudioBufferAppend(SessionInputAudioBufferAppend!); + return sessionInputAudioBufferAppend(__value1); } - else if (IsSessionClose && sessionClose != null) + else if (SessionClose is { } __value2 && sessionClose != null) { - return sessionClose(SessionClose!); + return sessionClose(__value2); } return default(TResult); @@ -297,17 +297,17 @@ public void Match( Validate(); } - if (IsSessionUpdate) + if (SessionUpdate is { } __value0) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value0); } - else if (IsSessionInputAudioBufferAppend) + else if (SessionInputAudioBufferAppend is { } __value1) { - sessionInputAudioBufferAppend?.Invoke(SessionInputAudioBufferAppend!); + sessionInputAudioBufferAppend?.Invoke(__value1); } - else if (IsSessionClose) + else if (SessionClose is { } __value2) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value2); } } @@ -325,17 +325,17 @@ public void Switch( Validate(); } - if (IsSessionUpdate) + if (SessionUpdate is { } __value0) { - sessionUpdate?.Invoke(SessionUpdate!); + sessionUpdate?.Invoke(__value0); } - else if (IsSessionInputAudioBufferAppend) + else if (SessionInputAudioBufferAppend is { } __value1) { - sessionInputAudioBufferAppend?.Invoke(SessionInputAudioBufferAppend!); + sessionInputAudioBufferAppend?.Invoke(__value1); } - else if (IsSessionClose) + else if (SessionClose is { } __value2) { - sessionClose?.Invoke(SessionClose!); + sessionClose?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs index c0a8d020d..4fed4b481 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs @@ -49,8 +49,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.RealtimeServerEventError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickSessionCreated( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated PickSessionCreated() => IsSessionCreated - ? SessionCreated! + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated PickSessionCreated() => SessionCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionCreated' but the value was {ToString()}."); /// @@ -126,8 +126,8 @@ public bool TryPickSessionUpdated( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated PickSessionUpdated() => IsSessionUpdated - ? SessionUpdated! + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated PickSessionUpdated() => SessionUpdated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionUpdated' but the value was {ToString()}."); /// @@ -163,8 +163,8 @@ public bool TryPickSessionClosed( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed PickSessionClosed() => IsSessionClosed - ? SessionClosed! + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed PickSessionClosed() => SessionClosed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionClosed' but the value was {ToString()}."); /// @@ -203,8 +203,8 @@ public bool TryPickSessionInputTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta PickSessionInputTranscriptDelta() => IsSessionInputTranscriptDelta - ? SessionInputTranscriptDelta! + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta PickSessionInputTranscriptDelta() => SessionInputTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionInputTranscriptDelta' but the value was {ToString()}."); /// @@ -242,8 +242,8 @@ public bool TryPickSessionOutputTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta PickSessionOutputTranscriptDelta() => IsSessionOutputTranscriptDelta - ? SessionOutputTranscriptDelta! + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta PickSessionOutputTranscriptDelta() => SessionOutputTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionOutputTranscriptDelta' but the value was {ToString()}."); /// @@ -281,8 +281,8 @@ public bool TryPickSessionOutputAudioDelta( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta PickSessionOutputAudioDelta() => IsSessionOutputAudioDelta - ? SessionOutputAudioDelta! + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta PickSessionOutputAudioDelta() => SessionOutputAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SessionOutputAudioDelta' but the value was {ToString()}."); /// /// @@ -522,33 +522,33 @@ public bool Validate() Validate(); } - if (IsError && error != null) + if (Error is { } __value0 && error != null) { - return error(Error!); + return error(__value0); } - else if (IsSessionCreated && sessionCreated != null) + else if (SessionCreated is { } __value1 && sessionCreated != null) { - return sessionCreated(SessionCreated!); + return sessionCreated(__value1); } - else if (IsSessionUpdated && sessionUpdated != null) + else if (SessionUpdated is { } __value2 && sessionUpdated != null) { - return sessionUpdated(SessionUpdated!); + return sessionUpdated(__value2); } - else if (IsSessionClosed && sessionClosed != null) + else if (SessionClosed is { } __value3 && sessionClosed != null) { - return sessionClosed(SessionClosed!); + return sessionClosed(__value3); } - else if (IsSessionInputTranscriptDelta && sessionInputTranscriptDelta != null) + else if (SessionInputTranscriptDelta is { } __value4 && sessionInputTranscriptDelta != null) { - return sessionInputTranscriptDelta(SessionInputTranscriptDelta!); + return sessionInputTranscriptDelta(__value4); } - else if (IsSessionOutputTranscriptDelta && sessionOutputTranscriptDelta != null) + else if (SessionOutputTranscriptDelta is { } __value5 && sessionOutputTranscriptDelta != null) { - return sessionOutputTranscriptDelta(SessionOutputTranscriptDelta!); + return sessionOutputTranscriptDelta(__value5); } - else if (IsSessionOutputAudioDelta && sessionOutputAudioDelta != null) + else if (SessionOutputAudioDelta is { } __value6 && sessionOutputAudioDelta != null) { - return sessionOutputAudioDelta(SessionOutputAudioDelta!); + return sessionOutputAudioDelta(__value6); } return default(TResult); @@ -578,33 +578,33 @@ public void Match( Validate(); } - if (IsError) + if (Error is { } __value0) { - error?.Invoke(Error!); + error?.Invoke(__value0); } - else if (IsSessionCreated) + else if (SessionCreated is { } __value1) { - sessionCreated?.Invoke(SessionCreated!); + sessionCreated?.Invoke(__value1); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value2) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value2); } - else if (IsSessionClosed) + else if (SessionClosed is { } __value3) { - sessionClosed?.Invoke(SessionClosed!); + sessionClosed?.Invoke(__value3); } - else if (IsSessionInputTranscriptDelta) + else if (SessionInputTranscriptDelta is { } __value4) { - sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + sessionInputTranscriptDelta?.Invoke(__value4); } - else if (IsSessionOutputTranscriptDelta) + else if (SessionOutputTranscriptDelta is { } __value5) { - sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + sessionOutputTranscriptDelta?.Invoke(__value5); } - else if (IsSessionOutputAudioDelta) + else if (SessionOutputAudioDelta is { } __value6) { - sessionOutputAudioDelta?.Invoke(SessionOutputAudioDelta!); + sessionOutputAudioDelta?.Invoke(__value6); } } @@ -626,33 +626,33 @@ public void Switch( Validate(); } - if (IsError) + if (Error is { } __value0) { - error?.Invoke(Error!); + error?.Invoke(__value0); } - else if (IsSessionCreated) + else if (SessionCreated is { } __value1) { - sessionCreated?.Invoke(SessionCreated!); + sessionCreated?.Invoke(__value1); } - else if (IsSessionUpdated) + else if (SessionUpdated is { } __value2) { - sessionUpdated?.Invoke(SessionUpdated!); + sessionUpdated?.Invoke(__value2); } - else if (IsSessionClosed) + else if (SessionClosed is { } __value3) { - sessionClosed?.Invoke(SessionClosed!); + sessionClosed?.Invoke(__value3); } - else if (IsSessionInputTranscriptDelta) + else if (SessionInputTranscriptDelta is { } __value4) { - sessionInputTranscriptDelta?.Invoke(SessionInputTranscriptDelta!); + sessionInputTranscriptDelta?.Invoke(__value4); } - else if (IsSessionOutputTranscriptDelta) + else if (SessionOutputTranscriptDelta is { } __value5) { - sessionOutputTranscriptDelta?.Invoke(SessionOutputTranscriptDelta!); + sessionOutputTranscriptDelta?.Invoke(__value5); } - else if (IsSessionOutputAudioDelta) + else if (SessionOutputAudioDelta is { } __value6) { - sessionOutputAudioDelta?.Invoke(SessionOutputAudioDelta!); + sessionOutputAudioDelta?.Invoke(__value6); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs index c1b533e85..2bca2db44 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs @@ -45,8 +45,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.RealtimeTruncationEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickRetentionRatioTruncation( /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2 PickRetentionRatioTruncation() => IsRetentionRatioTruncation - ? RetentionRatioTruncation! + public global::tryAGI.OpenAI.RealtimeTruncationEnum2 PickRetentionRatioTruncation() => RetentionRatioTruncation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RetentionRatioTruncation' but the value was {ToString()}."); /// /// @@ -180,13 +180,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsRetentionRatioTruncation && retentionRatioTruncation != null) + else if (RetentionRatioTruncation is { } __value1 && retentionRatioTruncation != null) { - return retentionRatioTruncation(RetentionRatioTruncation!); + return retentionRatioTruncation(__value1); } return default(TResult); @@ -206,13 +206,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsRetentionRatioTruncation) + else if (RetentionRatioTruncation is { } __value1) { - retentionRatioTruncation?.Invoke(RetentionRatioTruncation!); + retentionRatioTruncation?.Invoke(__value1); } } @@ -229,13 +229,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsRetentionRatioTruncation) + else if (RetentionRatioTruncation is { } __value1) { - retentionRatioTruncation?.Invoke(RetentionRatioTruncation!); + retentionRatioTruncation?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 54d7c91b3..54282a89a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -51,8 +51,8 @@ public bool TryPickServerVad( /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad PickServerVad() => IsServerVad - ? ServerVad! + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad PickServerVad() => ServerVad is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ServerVad' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickSemanticVad( /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad PickSemanticVad() => IsSemanticVad - ? SemanticVad! + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad PickSemanticVad() => SemanticVad is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SemanticVad' but the value was {ToString()}."); /// /// @@ -189,13 +189,13 @@ public bool Validate() Validate(); } - if (IsServerVad && serverVad != null) + if (ServerVad is { } __value0 && serverVad != null) { - return serverVad(ServerVad!); + return serverVad(__value0); } - else if (IsSemanticVad && semanticVad != null) + else if (SemanticVad is { } __value1 && semanticVad != null) { - return semanticVad(SemanticVad!); + return semanticVad(__value1); } return default(TResult); @@ -215,13 +215,13 @@ public void Match( Validate(); } - if (IsServerVad) + if (ServerVad is { } __value0) { - serverVad?.Invoke(ServerVad!); + serverVad?.Invoke(__value0); } - else if (IsSemanticVad) + else if (SemanticVad is { } __value1) { - semanticVad?.Invoke(SemanticVad!); + semanticVad?.Invoke(__value1); } } @@ -238,13 +238,13 @@ public void Switch( Validate(); } - if (IsServerVad) + if (ServerVad is { } __value0) { - serverVad?.Invoke(ServerVad!); + serverVad?.Invoke(__value0); } - else if (IsSemanticVad) + else if (SemanticVad is { } __value1) { - semanticVad?.Invoke(SemanticVad!); + semanticVad?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningModeEnum.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningModeEnum.g.cs index bfad40859..2413cf369 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningModeEnum.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ReasoningModeEnum.g.cs @@ -42,8 +42,8 @@ public bool TryPickReasoningModeEnumVariant1( /// /// /// - public string PickReasoningModeEnumVariant1() => IsReasoningModeEnumVariant1 - ? ReasoningModeEnumVariant1! + public string PickReasoningModeEnumVariant1() => ReasoningModeEnumVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningModeEnumVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickReasoningModeEnumEnum( /// /// /// - public global::tryAGI.OpenAI.ReasoningModeEnumEnum PickReasoningModeEnumEnum() => IsReasoningModeEnumEnum - ? ReasoningModeEnumEnum!.Value + public global::tryAGI.OpenAI.ReasoningModeEnumEnum PickReasoningModeEnumEnum() => ReasoningModeEnumEnum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ReasoningModeEnumEnum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsReasoningModeEnumVariant1 && reasoningModeEnumVariant1 != null) + if (ReasoningModeEnumVariant1 is { } __value0 && reasoningModeEnumVariant1 != null) { - return reasoningModeEnumVariant1(ReasoningModeEnumVariant1!); + return reasoningModeEnumVariant1(__value0); } - else if (IsReasoningModeEnumEnum && reasoningModeEnumEnum != null) + else if (ReasoningModeEnumEnum is { } __value1 && reasoningModeEnumEnum != null) { - return reasoningModeEnumEnum(ReasoningModeEnumEnum!); + return reasoningModeEnumEnum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsReasoningModeEnumVariant1) + if (ReasoningModeEnumVariant1 is { } __value0) { - reasoningModeEnumVariant1?.Invoke(ReasoningModeEnumVariant1!); + reasoningModeEnumVariant1?.Invoke(__value0); } - else if (IsReasoningModeEnumEnum) + else if (ReasoningModeEnumEnum is { } __value1) { - reasoningModeEnumEnum?.Invoke(ReasoningModeEnumEnum!); + reasoningModeEnumEnum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsReasoningModeEnumVariant1) + if (ReasoningModeEnumVariant1 is { } __value0) { - reasoningModeEnumVariant1?.Invoke(ReasoningModeEnumVariant1!); + reasoningModeEnumVariant1?.Invoke(__value0); } - else if (IsReasoningModeEnumEnum) + else if (ReasoningModeEnumEnum is { } __value1) { - reasoningModeEnumEnum?.Invoke(ReasoningModeEnumEnum!); + reasoningModeEnumEnum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs index 4000a175c..e59165947 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs @@ -5,7 +5,7 @@ namespace tryAGI.OpenAI { /// - /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// public readonly partial struct Response : global::System.IEquatable { @@ -42,8 +42,8 @@ public bool TryPickModelProperties( /// /// /// - public global::tryAGI.OpenAI.ModelResponseProperties PickModelProperties() => IsModelProperties - ? ModelProperties! + public global::tryAGI.OpenAI.ModelResponseProperties PickModelProperties() => ModelProperties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelProperties' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickProperties( /// /// /// - public global::tryAGI.OpenAI.ResponseProperties PickProperties() => IsProperties - ? Properties! + public global::tryAGI.OpenAI.ResponseProperties PickProperties() => Properties is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Properties' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickResponseVariant3( /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3 PickResponseVariant3() => IsResponseVariant3 - ? ResponseVariant3! + public global::tryAGI.OpenAI.ResponseVariant3 PickResponseVariant3() => ResponseVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseVariant3' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsModelProperties && modelProperties != null) + if (ModelProperties is { } __value0 && modelProperties != null) { - return modelProperties(ModelProperties!); + return modelProperties(__value0); } - else if (IsProperties && properties != null) + else if (Properties is { } __value1 && properties != null) { - return properties(Properties!); + return properties(__value1); } - else if (IsResponseVariant3 && responseVariant3 != null) + else if (ResponseVariant3 is { } __value2 && responseVariant3 != null) { - return responseVariant3(ResponseVariant3!); + return responseVariant3(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsResponseVariant3) + else if (ResponseVariant3 is { } __value2) { - responseVariant3?.Invoke(ResponseVariant3!); + responseVariant3?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsModelProperties) + if (ModelProperties is { } __value0) { - modelProperties?.Invoke(ModelProperties!); + modelProperties?.Invoke(__value0); } - else if (IsProperties) + else if (Properties is { } __value1) { - properties?.Invoke(Properties!); + properties?.Invoke(__value1); } - else if (IsResponseVariant3) + else if (ResponseVariant3 is { } __value2) { - responseVariant3?.Invoke(ResponseVariant3!); + responseVariant3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompactionCompactingEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompactionCompactingEvent.g.cs index 91460afac..f28f47919 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompactionCompactingEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompactionCompactingEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickStreaming( /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent PickStreaming() => IsStreaming - ? Streaming! + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent PickStreaming() => Streaming is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Streaming' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsStreaming && streaming != null) + if (Streaming is { } __value0 && streaming != null) { - return streaming(Streaming!); + return streaming(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsStreaming) + if (Streaming is { } __value0) { - streaming?.Invoke(Streaming!); + streaming?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsStreaming) + if (Streaming is { } __value0) { - streaming?.Invoke(Streaming!); + streaming?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompletedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompletedEvent.g.cs index 7888bd76b..391f5ad00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompletedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCompletedEvent.g.cs @@ -17,9 +17,9 @@ public sealed partial class ResponseCompletedEvent /// /// Properties of the completed response.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -43,7 +43,7 @@ public sealed partial class ResponseCompletedEvent ///
/// /// Properties of the completed response.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number for this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCreatedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCreatedEvent.g.cs index 09b635d5b..4847ef000 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCreatedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseCreatedEvent.g.cs @@ -17,9 +17,9 @@ public sealed partial class ResponseCreatedEvent /// /// The response that was created.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -43,7 +43,7 @@ public sealed partial class ResponseCreatedEvent ///
/// /// The response that was created.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number for this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFailedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFailedEvent.g.cs index 49876e305..a30c83bfe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFailedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFailedEvent.g.cs @@ -24,9 +24,9 @@ public sealed partial class ResponseFailedEvent /// /// The response that failed.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -46,7 +46,7 @@ public sealed partial class ResponseFailedEvent /// /// /// The response that failed.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The type of the event. Always `response.failed`. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs index f01f6b899..77482b9c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs @@ -54,8 +54,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.ResponseFormatText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -92,8 +92,8 @@ public bool TryPickJsonSchema( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchema PickJsonSchema() => IsJsonSchema - ? JsonSchema! + public global::tryAGI.OpenAI.ResponseFormatJsonSchema PickJsonSchema() => JsonSchema is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonSchema' but the value was {ToString()}."); /// @@ -132,8 +132,8 @@ public bool TryPickJsonObject( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObject PickJsonObject() => IsJsonObject - ? JsonObject! + public global::tryAGI.OpenAI.ResponseFormatJsonObject PickJsonObject() => JsonObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonObject' but the value was {ToString()}."); /// /// @@ -261,17 +261,17 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsJsonSchema && jsonSchema != null) + else if (JsonSchema is { } __value1 && jsonSchema != null) { - return jsonSchema(JsonSchema!); + return jsonSchema(__value1); } - else if (IsJsonObject && jsonObject != null) + else if (JsonObject is { } __value2 && jsonObject != null) { - return jsonObject(JsonObject!); + return jsonObject(__value2); } return default(TResult); @@ -293,17 +293,17 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } } @@ -321,17 +321,17 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseInProgressEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseInProgressEvent.g.cs index a3b806039..922e04aa6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseInProgressEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseInProgressEvent.g.cs @@ -17,9 +17,9 @@ public sealed partial class ResponseInProgressEvent /// /// The response that is in progress.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -43,7 +43,7 @@ public sealed partial class ResponseInProgressEvent ///
/// /// The response that is in progress.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number of this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseIncompleteEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseIncompleteEvent.g.cs index 1c1955afe..e9d755d5b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseIncompleteEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseIncompleteEvent.g.cs @@ -20,9 +20,9 @@ public sealed partial class ResponseIncompleteEvent /// /// The response that was incomplete.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -46,7 +46,7 @@ public sealed partial class ResponseIncompleteEvent ///
/// /// The response that was incomplete.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number of this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseQueuedEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseQueuedEvent.g.cs index bb7e7272c..25e8d52a2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseQueuedEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseQueuedEvent.g.cs @@ -17,9 +17,9 @@ public sealed partial class ResponseQueuedEvent /// /// The full response object that is queued.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} ///
- /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} [global::System.Text.Json.Serialization.JsonPropertyName("response")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] @@ -43,7 +43,7 @@ public sealed partial class ResponseQueuedEvent ///
/// /// The full response object that is queued.
- /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} + /// Example: {"id":"resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41","object":"response","access_programs":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","created_at":1741476777,"status":"completed","completed_at":1741476778,"error":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","incomplete_details":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","instructions":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","max_output_tokens":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","model":"gpt-6-astra","output":[{"type":"message","id":"msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41","status":"completed","role":"assistant","content":[{"type":"output_text","text":"The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","reasoning":{"effort":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","context":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},"store":true,"temperature":1,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1,"truncation":"disabled","usage":{"input_tokens":328,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":52,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":380},"user":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","metadata":{}} /// /// /// The sequence number for this event. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerErrorCode.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerErrorCode.g.cs index 2de1d7b08..84a0961f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerErrorCode.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerErrorCode.g.cs @@ -50,8 +50,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.ResponseSteerErrorCodeEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -87,8 +87,8 @@ public bool TryPickResponseSteerErrorCodeVariant2( /// /// /// - public string PickResponseSteerErrorCodeVariant2() => IsResponseSteerErrorCodeVariant2 - ? ResponseSteerErrorCodeVariant2! + public string PickResponseSteerErrorCodeVariant2() => ResponseSteerErrorCodeVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerErrorCodeVariant2' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsResponseSteerErrorCodeVariant2 && responseSteerErrorCodeVariant2 != null) + else if (ResponseSteerErrorCodeVariant2 is { } __value1 && responseSteerErrorCodeVariant2 != null) { - return responseSteerErrorCodeVariant2(ResponseSteerErrorCodeVariant2!); + return responseSteerErrorCodeVariant2(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsResponseSteerErrorCodeVariant2) + else if (ResponseSteerErrorCodeVariant2 is { } __value1) { - responseSteerErrorCodeVariant2?.Invoke(ResponseSteerErrorCodeVariant2!); + responseSteerErrorCodeVariant2?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsResponseSteerErrorCodeVariant2) + else if (ResponseSteerErrorCodeVariant2 is { } __value1) { - responseSteerErrorCodeVariant2?.Invoke(ResponseSteerErrorCodeVariant2!); + responseSteerErrorCodeVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInput.g.cs index cf010be83..8a6d6808c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInput.g.cs @@ -49,8 +49,8 @@ public bool TryPickTextInput( /// /// /// - public string PickTextInput() => IsTextInput - ? TextInput! + public string PickTextInput() => TextInput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextInput' but the value was {ToString()}."); /// @@ -86,8 +86,8 @@ public bool TryPickResponseSteerInputItemList( /// /// /// - public global::System.Collections.Generic.IList PickResponseSteerInputItemList() => IsResponseSteerInputItemList - ? ResponseSteerInputItemList! + public global::System.Collections.Generic.IList PickResponseSteerInputItemList() => ResponseSteerInputItemList is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerInputItemList' but the value was {ToString()}."); /// /// @@ -161,13 +161,13 @@ public bool Validate() Validate(); } - if (IsTextInput && textInput != null) + if (TextInput is { } __value0 && textInput != null) { - return textInput(TextInput!); + return textInput(__value0); } - else if (IsResponseSteerInputItemList && responseSteerInputItemList != null) + else if (ResponseSteerInputItemList is { } __value1 && responseSteerInputItemList != null) { - return responseSteerInputItemList(ResponseSteerInputItemList!); + return responseSteerInputItemList(__value1); } return default(TResult); @@ -187,13 +187,13 @@ public void Match( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsResponseSteerInputItemList) + else if (ResponseSteerInputItemList is { } __value1) { - responseSteerInputItemList?.Invoke(ResponseSteerInputItemList!); + responseSteerInputItemList?.Invoke(__value1); } } @@ -210,13 +210,13 @@ public void Switch( Validate(); } - if (IsTextInput) + if (TextInput is { } __value0) { - textInput?.Invoke(TextInput!); + textInput?.Invoke(__value0); } - else if (IsResponseSteerInputItemList) + else if (ResponseSteerInputItemList is { } __value1) { - responseSteerInputItemList?.Invoke(ResponseSteerInputItemList!); + responseSteerInputItemList?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInputItem.g.cs index 6ab5ad40b..aedbf36cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInputItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerInputItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.UserMessageItemParam PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.UserMessageItemParam PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.FunctionCallOutputItemParam PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value1 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value1) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value1) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerPendingReason.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerPendingReason.g.cs index e0610a227..110eae11e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerPendingReason.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerPendingReason.g.cs @@ -45,8 +45,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.ResponseSteerPendingReasonEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickResponseSteerPendingReasonVariant2( /// /// /// - public string PickResponseSteerPendingReasonVariant2() => IsResponseSteerPendingReasonVariant2 - ? ResponseSteerPendingReasonVariant2! + public string PickResponseSteerPendingReasonVariant2() => ResponseSteerPendingReasonVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerPendingReasonVariant2' but the value was {ToString()}."); /// /// @@ -180,13 +180,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsResponseSteerPendingReasonVariant2 && responseSteerPendingReasonVariant2 != null) + else if (ResponseSteerPendingReasonVariant2 is { } __value1 && responseSteerPendingReasonVariant2 != null) { - return responseSteerPendingReasonVariant2(ResponseSteerPendingReasonVariant2!); + return responseSteerPendingReasonVariant2(__value1); } return default(TResult); @@ -206,13 +206,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsResponseSteerPendingReasonVariant2) + else if (ResponseSteerPendingReasonVariant2 is { } __value1) { - responseSteerPendingReasonVariant2?.Invoke(ResponseSteerPendingReasonVariant2!); + responseSteerPendingReasonVariant2?.Invoke(__value1); } } @@ -229,13 +229,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsResponseSteerPendingReasonVariant2) + else if (ResponseSteerPendingReasonVariant2 is { } __value1) { - responseSteerPendingReasonVariant2?.Invoke(ResponseSteerPendingReasonVariant2!); + responseSteerPendingReasonVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerRequiredInput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerRequiredInput.g.cs index 1c1be60a7..bed0a9aa3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerRequiredInput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseSteerRequiredInput.g.cs @@ -51,8 +51,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredFunctionToolCallOutput PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -89,8 +89,8 @@ public bool TryPickCustomToolCallOutput( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput PickCustomToolCallOutput() => IsCustomToolCallOutput - ? CustomToolCallOutput! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredCustomToolCallOutput PickCustomToolCallOutput() => CustomToolCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomToolCallOutput' but the value was {ToString()}."); /// @@ -127,8 +127,8 @@ public bool TryPickComputerCallOutput( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput PickComputerCallOutput() => IsComputerCallOutput - ? ComputerCallOutput! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredComputerToolCallOutput PickComputerCallOutput() => ComputerCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerCallOutput' but the value was {ToString()}."); /// @@ -165,8 +165,8 @@ public bool TryPickShellCallOutput( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput PickShellCallOutput() => IsShellCallOutput - ? ShellCallOutput! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredShellToolCallOutput PickShellCallOutput() => ShellCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ShellCallOutput' but the value was {ToString()}."); /// @@ -203,8 +203,8 @@ public bool TryPickApplyPatchCallOutput( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput PickApplyPatchCallOutput() => IsApplyPatchCallOutput - ? ApplyPatchCallOutput! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredApplyPatchToolCallOutput PickApplyPatchCallOutput() => ApplyPatchCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatchCallOutput' but the value was {ToString()}."); /// @@ -241,8 +241,8 @@ public bool TryPickToolSearchOutput( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput PickToolSearchOutput() => IsToolSearchOutput - ? ToolSearchOutput! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredToolSearchOutput PickToolSearchOutput() => ToolSearchOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearchOutput' but the value was {ToString()}."); /// @@ -280,8 +280,8 @@ public bool TryPickMcpApprovalResponse( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse PickMcpApprovalResponse() => IsMcpApprovalResponse - ? McpApprovalResponse! + public global::tryAGI.OpenAI.ResponseSteerRequiredInputRequiredMcpApprovalResponse PickMcpApprovalResponse() => McpApprovalResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpApprovalResponse' but the value was {ToString()}."); /// /// @@ -521,33 +521,33 @@ public bool Validate() Validate(); } - if (IsFunctionCallOutput && functionCallOutput != null) + if (FunctionCallOutput is { } __value0 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value0); } - else if (IsCustomToolCallOutput && customToolCallOutput != null) + else if (CustomToolCallOutput is { } __value1 && customToolCallOutput != null) { - return customToolCallOutput(CustomToolCallOutput!); + return customToolCallOutput(__value1); } - else if (IsComputerCallOutput && computerCallOutput != null) + else if (ComputerCallOutput is { } __value2 && computerCallOutput != null) { - return computerCallOutput(ComputerCallOutput!); + return computerCallOutput(__value2); } - else if (IsShellCallOutput && shellCallOutput != null) + else if (ShellCallOutput is { } __value3 && shellCallOutput != null) { - return shellCallOutput(ShellCallOutput!); + return shellCallOutput(__value3); } - else if (IsApplyPatchCallOutput && applyPatchCallOutput != null) + else if (ApplyPatchCallOutput is { } __value4 && applyPatchCallOutput != null) { - return applyPatchCallOutput(ApplyPatchCallOutput!); + return applyPatchCallOutput(__value4); } - else if (IsToolSearchOutput && toolSearchOutput != null) + else if (ToolSearchOutput is { } __value5 && toolSearchOutput != null) { - return toolSearchOutput(ToolSearchOutput!); + return toolSearchOutput(__value5); } - else if (IsMcpApprovalResponse && mcpApprovalResponse != null) + else if (McpApprovalResponse is { } __value6 && mcpApprovalResponse != null) { - return mcpApprovalResponse(McpApprovalResponse!); + return mcpApprovalResponse(__value6); } return default(TResult); @@ -577,33 +577,33 @@ public void Match( Validate(); } - if (IsFunctionCallOutput) + if (FunctionCallOutput is { } __value0) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value0); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value1) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value1); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value2) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value2); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value3) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value3); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value4) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value4); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value5) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value5); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value6) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value6); } } @@ -625,33 +625,33 @@ public void Switch( Validate(); } - if (IsFunctionCallOutput) + if (FunctionCallOutput is { } __value0) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value0); } - else if (IsCustomToolCallOutput) + else if (CustomToolCallOutput is { } __value1) { - customToolCallOutput?.Invoke(CustomToolCallOutput!); + customToolCallOutput?.Invoke(__value1); } - else if (IsComputerCallOutput) + else if (ComputerCallOutput is { } __value2) { - computerCallOutput?.Invoke(ComputerCallOutput!); + computerCallOutput?.Invoke(__value2); } - else if (IsShellCallOutput) + else if (ShellCallOutput is { } __value3) { - shellCallOutput?.Invoke(ShellCallOutput!); + shellCallOutput?.Invoke(__value3); } - else if (IsApplyPatchCallOutput) + else if (ApplyPatchCallOutput is { } __value4) { - applyPatchCallOutput?.Invoke(ApplyPatchCallOutput!); + applyPatchCallOutput?.Invoke(__value4); } - else if (IsToolSearchOutput) + else if (ToolSearchOutput is { } __value5) { - toolSearchOutput?.Invoke(ToolSearchOutput!); + toolSearchOutput?.Invoke(__value5); } - else if (IsMcpApprovalResponse) + else if (McpApprovalResponse is { } __value6) { - mcpApprovalResponse?.Invoke(McpApprovalResponse!); + mcpApprovalResponse?.Invoke(__value6); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs index f20edef52..be7c737d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickResponseAudioDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent PickResponseAudioDelta() => IsResponseAudioDelta - ? ResponseAudioDelta! + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent PickResponseAudioDelta() => ResponseAudioDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioDelta' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickResponseAudioDone( /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent PickResponseAudioDone() => IsResponseAudioDone - ? ResponseAudioDone! + public global::tryAGI.OpenAI.ResponseAudioDoneEvent PickResponseAudioDone() => ResponseAudioDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioDone' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickResponseAudioTranscriptDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent PickResponseAudioTranscriptDelta() => IsResponseAudioTranscriptDelta - ? ResponseAudioTranscriptDelta! + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent PickResponseAudioTranscriptDelta() => ResponseAudioTranscriptDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioTranscriptDelta' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickResponseAudioTranscriptDone( /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent PickResponseAudioTranscriptDone() => IsResponseAudioTranscriptDone - ? ResponseAudioTranscriptDone! + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent PickResponseAudioTranscriptDone() => ResponseAudioTranscriptDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioTranscriptDone' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickResponseCodeInterpreterCallCodeDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent PickResponseCodeInterpreterCallCodeDelta() => IsResponseCodeInterpreterCallCodeDelta - ? ResponseCodeInterpreterCallCodeDelta! + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent PickResponseCodeInterpreterCallCodeDelta() => ResponseCodeInterpreterCallCodeDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCodeDelta' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickResponseCodeInterpreterCallCodeDone( /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent PickResponseCodeInterpreterCallCodeDone() => IsResponseCodeInterpreterCallCodeDone - ? ResponseCodeInterpreterCallCodeDone! + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent PickResponseCodeInterpreterCallCodeDone() => ResponseCodeInterpreterCallCodeDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCodeDone' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickResponseCodeInterpreterCallCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent PickResponseCodeInterpreterCallCompleted() => IsResponseCodeInterpreterCallCompleted - ? ResponseCodeInterpreterCallCompleted! + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent PickResponseCodeInterpreterCallCompleted() => ResponseCodeInterpreterCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCompleted' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickResponseCodeInterpreterCallInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent PickResponseCodeInterpreterCallInProgress() => IsResponseCodeInterpreterCallInProgress - ? ResponseCodeInterpreterCallInProgress! + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent PickResponseCodeInterpreterCallInProgress() => ResponseCodeInterpreterCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallInProgress' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickResponseCodeInterpreterCallInterpreting( /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent PickResponseCodeInterpreterCallInterpreting() => IsResponseCodeInterpreterCallInterpreting - ? ResponseCodeInterpreterCallInterpreting! + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent PickResponseCodeInterpreterCallInterpreting() => ResponseCodeInterpreterCallInterpreting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallInterpreting' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickResponseCompactionCompacting( /// /// /// - public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent PickResponseCompactionCompacting() => IsResponseCompactionCompacting - ? ResponseCompactionCompacting! + public global::tryAGI.OpenAI.ResponseCompactionCompactingStreamingEvent PickResponseCompactionCompacting() => ResponseCompactionCompacting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCompactionCompacting' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickResponseCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent PickResponseCompleted() => IsResponseCompleted - ? ResponseCompleted! + public global::tryAGI.OpenAI.ResponseCompletedEvent PickResponseCompleted() => ResponseCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCompleted' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickResponseContentPartAdded( /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent PickResponseContentPartAdded() => IsResponseContentPartAdded - ? ResponseContentPartAdded! + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent PickResponseContentPartAdded() => ResponseContentPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartAdded' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickResponseContentPartDone( /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent PickResponseContentPartDone() => IsResponseContentPartDone - ? ResponseContentPartDone! + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent PickResponseContentPartDone() => ResponseContentPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartDone' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickResponseCreated( /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent PickResponseCreated() => IsResponseCreated - ? ResponseCreated! + public global::tryAGI.OpenAI.ResponseCreatedEvent PickResponseCreated() => ResponseCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreated' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ResponseErrorEvent PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickResponseFileSearchCallCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent PickResponseFileSearchCallCompleted() => IsResponseFileSearchCallCompleted - ? ResponseFileSearchCallCompleted! + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent PickResponseFileSearchCallCompleted() => ResponseFileSearchCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallCompleted' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickResponseFileSearchCallInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent PickResponseFileSearchCallInProgress() => IsResponseFileSearchCallInProgress - ? ResponseFileSearchCallInProgress! + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent PickResponseFileSearchCallInProgress() => ResponseFileSearchCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallInProgress' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickResponseFileSearchCallSearching( /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent PickResponseFileSearchCallSearching() => IsResponseFileSearchCallSearching - ? ResponseFileSearchCallSearching! + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent PickResponseFileSearchCallSearching() => ResponseFileSearchCallSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallSearching' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickResponseFunctionCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent PickResponseFunctionCallArgumentsDelta() => IsResponseFunctionCallArgumentsDelta - ? ResponseFunctionCallArgumentsDelta! + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent PickResponseFunctionCallArgumentsDelta() => ResponseFunctionCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDelta' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickResponseFunctionCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent PickResponseFunctionCallArgumentsDone() => IsResponseFunctionCallArgumentsDone - ? ResponseFunctionCallArgumentsDone! + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent PickResponseFunctionCallArgumentsDone() => ResponseFunctionCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsDone' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickResponseShellCallCommandAdded( /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent PickResponseShellCallCommandAdded() => IsResponseShellCallCommandAdded - ? ResponseShellCallCommandAdded! + public global::tryAGI.OpenAI.ResponseShellCallCommandAddedStreamingEvent PickResponseShellCallCommandAdded() => ResponseShellCallCommandAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandAdded' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickResponseShellCallCommandDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent PickResponseShellCallCommandDelta() => IsResponseShellCallCommandDelta - ? ResponseShellCallCommandDelta! + public global::tryAGI.OpenAI.ResponseShellCallCommandDeltaStreamingEvent PickResponseShellCallCommandDelta() => ResponseShellCallCommandDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandDelta' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickResponseShellCallCommandDone( /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent PickResponseShellCallCommandDone() => IsResponseShellCallCommandDone - ? ResponseShellCallCommandDone! + public global::tryAGI.OpenAI.ResponseShellCallCommandDoneStreamingEvent PickResponseShellCallCommandDone() => ResponseShellCallCommandDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandDone' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickResponseShellCallOutputContentDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent PickResponseShellCallOutputContentDelta() => IsResponseShellCallOutputContentDelta - ? ResponseShellCallOutputContentDelta! + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDeltaStreamingEvent PickResponseShellCallOutputContentDelta() => ResponseShellCallOutputContentDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallOutputContentDelta' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickResponseShellCallOutputContentDone( /// /// /// - public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent PickResponseShellCallOutputContentDone() => IsResponseShellCallOutputContentDone - ? ResponseShellCallOutputContentDone! + public global::tryAGI.OpenAI.ResponseShellCallOutputContentDoneStreamingEvent PickResponseShellCallOutputContentDone() => ResponseShellCallOutputContentDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallOutputContentDone' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickResponseInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent PickResponseInProgress() => IsResponseInProgress - ? ResponseInProgress! + public global::tryAGI.OpenAI.ResponseInProgressEvent PickResponseInProgress() => ResponseInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseInProgress' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickResponseFailed( /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent PickResponseFailed() => IsResponseFailed - ? ResponseFailed! + public global::tryAGI.OpenAI.ResponseFailedEvent PickResponseFailed() => ResponseFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFailed' but the value was {ToString()}."); /// @@ -1049,8 +1049,8 @@ public bool TryPickResponseIncomplete( /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent PickResponseIncomplete() => IsResponseIncomplete - ? ResponseIncomplete! + public global::tryAGI.OpenAI.ResponseIncompleteEvent PickResponseIncomplete() => ResponseIncomplete is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseIncomplete' but the value was {ToString()}."); /// @@ -1086,8 +1086,8 @@ public bool TryPickResponseOutputItemAdded( /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent PickResponseOutputItemAdded() => IsResponseOutputItemAdded - ? ResponseOutputItemAdded! + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent PickResponseOutputItemAdded() => ResponseOutputItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemAdded' but the value was {ToString()}."); /// @@ -1123,8 +1123,8 @@ public bool TryPickResponseOutputItemDone( /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent PickResponseOutputItemDone() => IsResponseOutputItemDone - ? ResponseOutputItemDone! + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent PickResponseOutputItemDone() => ResponseOutputItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemDone' but the value was {ToString()}."); /// @@ -1160,8 +1160,8 @@ public bool TryPickResponseReasoningSummaryPartAdded( /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent PickResponseReasoningSummaryPartAdded() => IsResponseReasoningSummaryPartAdded - ? ResponseReasoningSummaryPartAdded! + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent PickResponseReasoningSummaryPartAdded() => ResponseReasoningSummaryPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryPartAdded' but the value was {ToString()}."); /// @@ -1197,8 +1197,8 @@ public bool TryPickResponseReasoningSummaryPartDone( /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent PickResponseReasoningSummaryPartDone() => IsResponseReasoningSummaryPartDone - ? ResponseReasoningSummaryPartDone! + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent PickResponseReasoningSummaryPartDone() => ResponseReasoningSummaryPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryPartDone' but the value was {ToString()}."); /// @@ -1234,8 +1234,8 @@ public bool TryPickResponseReasoningSummaryTextDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent PickResponseReasoningSummaryTextDelta() => IsResponseReasoningSummaryTextDelta - ? ResponseReasoningSummaryTextDelta! + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent PickResponseReasoningSummaryTextDelta() => ResponseReasoningSummaryTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryTextDelta' but the value was {ToString()}."); /// @@ -1271,8 +1271,8 @@ public bool TryPickResponseReasoningSummaryTextDone( /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent PickResponseReasoningSummaryTextDone() => IsResponseReasoningSummaryTextDone - ? ResponseReasoningSummaryTextDone! + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent PickResponseReasoningSummaryTextDone() => ResponseReasoningSummaryTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryTextDone' but the value was {ToString()}."); /// @@ -1308,8 +1308,8 @@ public bool TryPickResponseReasoningTextDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent PickResponseReasoningTextDelta() => IsResponseReasoningTextDelta - ? ResponseReasoningTextDelta! + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent PickResponseReasoningTextDelta() => ResponseReasoningTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextDelta' but the value was {ToString()}."); /// @@ -1345,8 +1345,8 @@ public bool TryPickResponseReasoningTextDone( /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent PickResponseReasoningTextDone() => IsResponseReasoningTextDone - ? ResponseReasoningTextDone! + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent PickResponseReasoningTextDone() => ResponseReasoningTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextDone' but the value was {ToString()}."); /// @@ -1382,8 +1382,8 @@ public bool TryPickResponseRefusalDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent PickResponseRefusalDelta() => IsResponseRefusalDelta - ? ResponseRefusalDelta! + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent PickResponseRefusalDelta() => ResponseRefusalDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseRefusalDelta' but the value was {ToString()}."); /// @@ -1419,8 +1419,8 @@ public bool TryPickResponseRefusalDone( /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent PickResponseRefusalDone() => IsResponseRefusalDone - ? ResponseRefusalDone! + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent PickResponseRefusalDone() => ResponseRefusalDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseRefusalDone' but the value was {ToString()}."); /// @@ -1456,8 +1456,8 @@ public bool TryPickResponseOutputTextDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent PickResponseOutputTextDelta() => IsResponseOutputTextDelta - ? ResponseOutputTextDelta! + public global::tryAGI.OpenAI.ResponseTextDeltaEvent PickResponseOutputTextDelta() => ResponseOutputTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDelta' but the value was {ToString()}."); /// @@ -1493,8 +1493,8 @@ public bool TryPickResponseOutputTextDone( /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent PickResponseOutputTextDone() => IsResponseOutputTextDone - ? ResponseOutputTextDone! + public global::tryAGI.OpenAI.ResponseTextDoneEvent PickResponseOutputTextDone() => ResponseOutputTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextDone' but the value was {ToString()}."); /// @@ -1530,8 +1530,8 @@ public bool TryPickResponseWebSearchCallCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent PickResponseWebSearchCallCompleted() => IsResponseWebSearchCallCompleted - ? ResponseWebSearchCallCompleted! + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent PickResponseWebSearchCallCompleted() => ResponseWebSearchCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallCompleted' but the value was {ToString()}."); /// @@ -1567,8 +1567,8 @@ public bool TryPickResponseWebSearchCallInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent PickResponseWebSearchCallInProgress() => IsResponseWebSearchCallInProgress - ? ResponseWebSearchCallInProgress! + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent PickResponseWebSearchCallInProgress() => ResponseWebSearchCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallInProgress' but the value was {ToString()}."); /// @@ -1604,8 +1604,8 @@ public bool TryPickResponseWebSearchCallSearching( /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent PickResponseWebSearchCallSearching() => IsResponseWebSearchCallSearching - ? ResponseWebSearchCallSearching! + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent PickResponseWebSearchCallSearching() => ResponseWebSearchCallSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallSearching' but the value was {ToString()}."); /// @@ -1641,8 +1641,8 @@ public bool TryPickResponseImageGenerationCallCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent PickResponseImageGenerationCallCompleted() => IsResponseImageGenerationCallCompleted - ? ResponseImageGenerationCallCompleted! + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent PickResponseImageGenerationCallCompleted() => ResponseImageGenerationCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallCompleted' but the value was {ToString()}."); /// @@ -1678,8 +1678,8 @@ public bool TryPickResponseImageGenerationCallGenerating( /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent PickResponseImageGenerationCallGenerating() => IsResponseImageGenerationCallGenerating - ? ResponseImageGenerationCallGenerating! + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent PickResponseImageGenerationCallGenerating() => ResponseImageGenerationCallGenerating is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallGenerating' but the value was {ToString()}."); /// @@ -1715,8 +1715,8 @@ public bool TryPickResponseImageGenerationCallInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent PickResponseImageGenerationCallInProgress() => IsResponseImageGenerationCallInProgress - ? ResponseImageGenerationCallInProgress! + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent PickResponseImageGenerationCallInProgress() => ResponseImageGenerationCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallInProgress' but the value was {ToString()}."); /// @@ -1752,8 +1752,8 @@ public bool TryPickResponseImageGenerationCallPartialImage( /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent PickResponseImageGenerationCallPartialImage() => IsResponseImageGenerationCallPartialImage - ? ResponseImageGenerationCallPartialImage! + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent PickResponseImageGenerationCallPartialImage() => ResponseImageGenerationCallPartialImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenerationCallPartialImage' but the value was {ToString()}."); /// @@ -1789,8 +1789,8 @@ public bool TryPickResponseMcpCallArgumentsDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent PickResponseMcpCallArgumentsDelta() => IsResponseMcpCallArgumentsDelta - ? ResponseMcpCallArgumentsDelta! + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent PickResponseMcpCallArgumentsDelta() => ResponseMcpCallArgumentsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDelta' but the value was {ToString()}."); /// @@ -1826,8 +1826,8 @@ public bool TryPickResponseMcpCallArgumentsDone( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent PickResponseMcpCallArgumentsDone() => IsResponseMcpCallArgumentsDone - ? ResponseMcpCallArgumentsDone! + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent PickResponseMcpCallArgumentsDone() => ResponseMcpCallArgumentsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsDone' but the value was {ToString()}."); /// @@ -1863,8 +1863,8 @@ public bool TryPickResponseMcpCallCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent PickResponseMcpCallCompleted() => IsResponseMcpCallCompleted - ? ResponseMcpCallCompleted! + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent PickResponseMcpCallCompleted() => ResponseMcpCallCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallCompleted' but the value was {ToString()}."); /// @@ -1900,8 +1900,8 @@ public bool TryPickResponseMcpCallFailed( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent PickResponseMcpCallFailed() => IsResponseMcpCallFailed - ? ResponseMcpCallFailed! + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent PickResponseMcpCallFailed() => ResponseMcpCallFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallFailed' but the value was {ToString()}."); /// @@ -1937,8 +1937,8 @@ public bool TryPickResponseMcpCallInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent PickResponseMcpCallInProgress() => IsResponseMcpCallInProgress - ? ResponseMcpCallInProgress! + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent PickResponseMcpCallInProgress() => ResponseMcpCallInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallInProgress' but the value was {ToString()}."); /// @@ -1974,8 +1974,8 @@ public bool TryPickResponseMcpListToolsCompleted( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent PickResponseMcpListToolsCompleted() => IsResponseMcpListToolsCompleted - ? ResponseMcpListToolsCompleted! + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent PickResponseMcpListToolsCompleted() => ResponseMcpListToolsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsCompleted' but the value was {ToString()}."); /// @@ -2011,8 +2011,8 @@ public bool TryPickResponseMcpListToolsFailed( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent PickResponseMcpListToolsFailed() => IsResponseMcpListToolsFailed - ? ResponseMcpListToolsFailed! + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent PickResponseMcpListToolsFailed() => ResponseMcpListToolsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsFailed' but the value was {ToString()}."); /// @@ -2048,8 +2048,8 @@ public bool TryPickResponseMcpListToolsInProgress( /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent PickResponseMcpListToolsInProgress() => IsResponseMcpListToolsInProgress - ? ResponseMcpListToolsInProgress! + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent PickResponseMcpListToolsInProgress() => ResponseMcpListToolsInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsInProgress' but the value was {ToString()}."); /// @@ -2085,8 +2085,8 @@ public bool TryPickResponseOutputTextAnnotationAdded( /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent PickResponseOutputTextAnnotationAdded() => IsResponseOutputTextAnnotationAdded - ? ResponseOutputTextAnnotationAdded! + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent PickResponseOutputTextAnnotationAdded() => ResponseOutputTextAnnotationAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextAnnotationAdded' but the value was {ToString()}."); /// @@ -2122,8 +2122,8 @@ public bool TryPickResponseQueued( /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent PickResponseQueued() => IsResponseQueued - ? ResponseQueued! + public global::tryAGI.OpenAI.ResponseQueuedEvent PickResponseQueued() => ResponseQueued is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseQueued' but the value was {ToString()}."); /// @@ -2159,8 +2159,8 @@ public bool TryPickResponseCustomToolCallInputDelta( /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent PickResponseCustomToolCallInputDelta() => IsResponseCustomToolCallInputDelta - ? ResponseCustomToolCallInputDelta! + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent PickResponseCustomToolCallInputDelta() => ResponseCustomToolCallInputDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallInputDelta' but the value was {ToString()}."); /// @@ -2196,8 +2196,8 @@ public bool TryPickResponseCustomToolCallInputDone( /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent PickResponseCustomToolCallInputDone() => IsResponseCustomToolCallInputDone - ? ResponseCustomToolCallInputDone! + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent PickResponseCustomToolCallInputDone() => ResponseCustomToolCallInputDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallInputDone' but the value was {ToString()}."); /// /// @@ -3893,241 +3893,241 @@ public bool Validate() Validate(); } - if (IsResponseAudioDelta && responseAudioDelta != null) + if (ResponseAudioDelta is { } __value0 && responseAudioDelta != null) { - return responseAudioDelta(ResponseAudioDelta!); + return responseAudioDelta(__value0); } - else if (IsResponseAudioDone && responseAudioDone != null) + else if (ResponseAudioDone is { } __value1 && responseAudioDone != null) { - return responseAudioDone(ResponseAudioDone!); + return responseAudioDone(__value1); } - else if (IsResponseAudioTranscriptDelta && responseAudioTranscriptDelta != null) + else if (ResponseAudioTranscriptDelta is { } __value2 && responseAudioTranscriptDelta != null) { - return responseAudioTranscriptDelta(ResponseAudioTranscriptDelta!); + return responseAudioTranscriptDelta(__value2); } - else if (IsResponseAudioTranscriptDone && responseAudioTranscriptDone != null) + else if (ResponseAudioTranscriptDone is { } __value3 && responseAudioTranscriptDone != null) { - return responseAudioTranscriptDone(ResponseAudioTranscriptDone!); + return responseAudioTranscriptDone(__value3); } - else if (IsResponseCodeInterpreterCallCodeDelta && responseCodeInterpreterCallCodeDelta != null) + else if (ResponseCodeInterpreterCallCodeDelta is { } __value4 && responseCodeInterpreterCallCodeDelta != null) { - return responseCodeInterpreterCallCodeDelta(ResponseCodeInterpreterCallCodeDelta!); + return responseCodeInterpreterCallCodeDelta(__value4); } - else if (IsResponseCodeInterpreterCallCodeDone && responseCodeInterpreterCallCodeDone != null) + else if (ResponseCodeInterpreterCallCodeDone is { } __value5 && responseCodeInterpreterCallCodeDone != null) { - return responseCodeInterpreterCallCodeDone(ResponseCodeInterpreterCallCodeDone!); + return responseCodeInterpreterCallCodeDone(__value5); } - else if (IsResponseCodeInterpreterCallCompleted && responseCodeInterpreterCallCompleted != null) + else if (ResponseCodeInterpreterCallCompleted is { } __value6 && responseCodeInterpreterCallCompleted != null) { - return responseCodeInterpreterCallCompleted(ResponseCodeInterpreterCallCompleted!); + return responseCodeInterpreterCallCompleted(__value6); } - else if (IsResponseCodeInterpreterCallInProgress && responseCodeInterpreterCallInProgress != null) + else if (ResponseCodeInterpreterCallInProgress is { } __value7 && responseCodeInterpreterCallInProgress != null) { - return responseCodeInterpreterCallInProgress(ResponseCodeInterpreterCallInProgress!); + return responseCodeInterpreterCallInProgress(__value7); } - else if (IsResponseCodeInterpreterCallInterpreting && responseCodeInterpreterCallInterpreting != null) + else if (ResponseCodeInterpreterCallInterpreting is { } __value8 && responseCodeInterpreterCallInterpreting != null) { - return responseCodeInterpreterCallInterpreting(ResponseCodeInterpreterCallInterpreting!); + return responseCodeInterpreterCallInterpreting(__value8); } - else if (IsResponseCompactionCompacting && responseCompactionCompacting != null) + else if (ResponseCompactionCompacting is { } __value9 && responseCompactionCompacting != null) { - return responseCompactionCompacting(ResponseCompactionCompacting!); + return responseCompactionCompacting(__value9); } - else if (IsResponseCompleted && responseCompleted != null) + else if (ResponseCompleted is { } __value10 && responseCompleted != null) { - return responseCompleted(ResponseCompleted!); + return responseCompleted(__value10); } - else if (IsResponseContentPartAdded && responseContentPartAdded != null) + else if (ResponseContentPartAdded is { } __value11 && responseContentPartAdded != null) { - return responseContentPartAdded(ResponseContentPartAdded!); + return responseContentPartAdded(__value11); } - else if (IsResponseContentPartDone && responseContentPartDone != null) + else if (ResponseContentPartDone is { } __value12 && responseContentPartDone != null) { - return responseContentPartDone(ResponseContentPartDone!); + return responseContentPartDone(__value12); } - else if (IsResponseCreated && responseCreated != null) + else if (ResponseCreated is { } __value13 && responseCreated != null) { - return responseCreated(ResponseCreated!); + return responseCreated(__value13); } - else if (IsError && error != null) + else if (Error is { } __value14 && error != null) { - return error(Error!); + return error(__value14); } - else if (IsResponseFileSearchCallCompleted && responseFileSearchCallCompleted != null) + else if (ResponseFileSearchCallCompleted is { } __value15 && responseFileSearchCallCompleted != null) { - return responseFileSearchCallCompleted(ResponseFileSearchCallCompleted!); + return responseFileSearchCallCompleted(__value15); } - else if (IsResponseFileSearchCallInProgress && responseFileSearchCallInProgress != null) + else if (ResponseFileSearchCallInProgress is { } __value16 && responseFileSearchCallInProgress != null) { - return responseFileSearchCallInProgress(ResponseFileSearchCallInProgress!); + return responseFileSearchCallInProgress(__value16); } - else if (IsResponseFileSearchCallSearching && responseFileSearchCallSearching != null) + else if (ResponseFileSearchCallSearching is { } __value17 && responseFileSearchCallSearching != null) { - return responseFileSearchCallSearching(ResponseFileSearchCallSearching!); + return responseFileSearchCallSearching(__value17); } - else if (IsResponseFunctionCallArgumentsDelta && responseFunctionCallArgumentsDelta != null) + else if (ResponseFunctionCallArgumentsDelta is { } __value18 && responseFunctionCallArgumentsDelta != null) { - return responseFunctionCallArgumentsDelta(ResponseFunctionCallArgumentsDelta!); + return responseFunctionCallArgumentsDelta(__value18); } - else if (IsResponseFunctionCallArgumentsDone && responseFunctionCallArgumentsDone != null) + else if (ResponseFunctionCallArgumentsDone is { } __value19 && responseFunctionCallArgumentsDone != null) { - return responseFunctionCallArgumentsDone(ResponseFunctionCallArgumentsDone!); + return responseFunctionCallArgumentsDone(__value19); } - else if (IsResponseShellCallCommandAdded && responseShellCallCommandAdded != null) + else if (ResponseShellCallCommandAdded is { } __value20 && responseShellCallCommandAdded != null) { - return responseShellCallCommandAdded(ResponseShellCallCommandAdded!); + return responseShellCallCommandAdded(__value20); } - else if (IsResponseShellCallCommandDelta && responseShellCallCommandDelta != null) + else if (ResponseShellCallCommandDelta is { } __value21 && responseShellCallCommandDelta != null) { - return responseShellCallCommandDelta(ResponseShellCallCommandDelta!); + return responseShellCallCommandDelta(__value21); } - else if (IsResponseShellCallCommandDone && responseShellCallCommandDone != null) + else if (ResponseShellCallCommandDone is { } __value22 && responseShellCallCommandDone != null) { - return responseShellCallCommandDone(ResponseShellCallCommandDone!); + return responseShellCallCommandDone(__value22); } - else if (IsResponseShellCallOutputContentDelta && responseShellCallOutputContentDelta != null) + else if (ResponseShellCallOutputContentDelta is { } __value23 && responseShellCallOutputContentDelta != null) { - return responseShellCallOutputContentDelta(ResponseShellCallOutputContentDelta!); + return responseShellCallOutputContentDelta(__value23); } - else if (IsResponseShellCallOutputContentDone && responseShellCallOutputContentDone != null) + else if (ResponseShellCallOutputContentDone is { } __value24 && responseShellCallOutputContentDone != null) { - return responseShellCallOutputContentDone(ResponseShellCallOutputContentDone!); + return responseShellCallOutputContentDone(__value24); } - else if (IsResponseInProgress && responseInProgress != null) + else if (ResponseInProgress is { } __value25 && responseInProgress != null) { - return responseInProgress(ResponseInProgress!); + return responseInProgress(__value25); } - else if (IsResponseFailed && responseFailed != null) + else if (ResponseFailed is { } __value26 && responseFailed != null) { - return responseFailed(ResponseFailed!); + return responseFailed(__value26); } - else if (IsResponseIncomplete && responseIncomplete != null) + else if (ResponseIncomplete is { } __value27 && responseIncomplete != null) { - return responseIncomplete(ResponseIncomplete!); + return responseIncomplete(__value27); } - else if (IsResponseOutputItemAdded && responseOutputItemAdded != null) + else if (ResponseOutputItemAdded is { } __value28 && responseOutputItemAdded != null) { - return responseOutputItemAdded(ResponseOutputItemAdded!); + return responseOutputItemAdded(__value28); } - else if (IsResponseOutputItemDone && responseOutputItemDone != null) + else if (ResponseOutputItemDone is { } __value29 && responseOutputItemDone != null) { - return responseOutputItemDone(ResponseOutputItemDone!); + return responseOutputItemDone(__value29); } - else if (IsResponseReasoningSummaryPartAdded && responseReasoningSummaryPartAdded != null) + else if (ResponseReasoningSummaryPartAdded is { } __value30 && responseReasoningSummaryPartAdded != null) { - return responseReasoningSummaryPartAdded(ResponseReasoningSummaryPartAdded!); + return responseReasoningSummaryPartAdded(__value30); } - else if (IsResponseReasoningSummaryPartDone && responseReasoningSummaryPartDone != null) + else if (ResponseReasoningSummaryPartDone is { } __value31 && responseReasoningSummaryPartDone != null) { - return responseReasoningSummaryPartDone(ResponseReasoningSummaryPartDone!); + return responseReasoningSummaryPartDone(__value31); } - else if (IsResponseReasoningSummaryTextDelta && responseReasoningSummaryTextDelta != null) + else if (ResponseReasoningSummaryTextDelta is { } __value32 && responseReasoningSummaryTextDelta != null) { - return responseReasoningSummaryTextDelta(ResponseReasoningSummaryTextDelta!); + return responseReasoningSummaryTextDelta(__value32); } - else if (IsResponseReasoningSummaryTextDone && responseReasoningSummaryTextDone != null) + else if (ResponseReasoningSummaryTextDone is { } __value33 && responseReasoningSummaryTextDone != null) { - return responseReasoningSummaryTextDone(ResponseReasoningSummaryTextDone!); + return responseReasoningSummaryTextDone(__value33); } - else if (IsResponseReasoningTextDelta && responseReasoningTextDelta != null) + else if (ResponseReasoningTextDelta is { } __value34 && responseReasoningTextDelta != null) { - return responseReasoningTextDelta(ResponseReasoningTextDelta!); + return responseReasoningTextDelta(__value34); } - else if (IsResponseReasoningTextDone && responseReasoningTextDone != null) + else if (ResponseReasoningTextDone is { } __value35 && responseReasoningTextDone != null) { - return responseReasoningTextDone(ResponseReasoningTextDone!); + return responseReasoningTextDone(__value35); } - else if (IsResponseRefusalDelta && responseRefusalDelta != null) + else if (ResponseRefusalDelta is { } __value36 && responseRefusalDelta != null) { - return responseRefusalDelta(ResponseRefusalDelta!); + return responseRefusalDelta(__value36); } - else if (IsResponseRefusalDone && responseRefusalDone != null) + else if (ResponseRefusalDone is { } __value37 && responseRefusalDone != null) { - return responseRefusalDone(ResponseRefusalDone!); + return responseRefusalDone(__value37); } - else if (IsResponseOutputTextDelta && responseOutputTextDelta != null) + else if (ResponseOutputTextDelta is { } __value38 && responseOutputTextDelta != null) { - return responseOutputTextDelta(ResponseOutputTextDelta!); + return responseOutputTextDelta(__value38); } - else if (IsResponseOutputTextDone && responseOutputTextDone != null) + else if (ResponseOutputTextDone is { } __value39 && responseOutputTextDone != null) { - return responseOutputTextDone(ResponseOutputTextDone!); + return responseOutputTextDone(__value39); } - else if (IsResponseWebSearchCallCompleted && responseWebSearchCallCompleted != null) + else if (ResponseWebSearchCallCompleted is { } __value40 && responseWebSearchCallCompleted != null) { - return responseWebSearchCallCompleted(ResponseWebSearchCallCompleted!); + return responseWebSearchCallCompleted(__value40); } - else if (IsResponseWebSearchCallInProgress && responseWebSearchCallInProgress != null) + else if (ResponseWebSearchCallInProgress is { } __value41 && responseWebSearchCallInProgress != null) { - return responseWebSearchCallInProgress(ResponseWebSearchCallInProgress!); + return responseWebSearchCallInProgress(__value41); } - else if (IsResponseWebSearchCallSearching && responseWebSearchCallSearching != null) + else if (ResponseWebSearchCallSearching is { } __value42 && responseWebSearchCallSearching != null) { - return responseWebSearchCallSearching(ResponseWebSearchCallSearching!); + return responseWebSearchCallSearching(__value42); } - else if (IsResponseImageGenerationCallCompleted && responseImageGenerationCallCompleted != null) + else if (ResponseImageGenerationCallCompleted is { } __value43 && responseImageGenerationCallCompleted != null) { - return responseImageGenerationCallCompleted(ResponseImageGenerationCallCompleted!); + return responseImageGenerationCallCompleted(__value43); } - else if (IsResponseImageGenerationCallGenerating && responseImageGenerationCallGenerating != null) + else if (ResponseImageGenerationCallGenerating is { } __value44 && responseImageGenerationCallGenerating != null) { - return responseImageGenerationCallGenerating(ResponseImageGenerationCallGenerating!); + return responseImageGenerationCallGenerating(__value44); } - else if (IsResponseImageGenerationCallInProgress && responseImageGenerationCallInProgress != null) + else if (ResponseImageGenerationCallInProgress is { } __value45 && responseImageGenerationCallInProgress != null) { - return responseImageGenerationCallInProgress(ResponseImageGenerationCallInProgress!); + return responseImageGenerationCallInProgress(__value45); } - else if (IsResponseImageGenerationCallPartialImage && responseImageGenerationCallPartialImage != null) + else if (ResponseImageGenerationCallPartialImage is { } __value46 && responseImageGenerationCallPartialImage != null) { - return responseImageGenerationCallPartialImage(ResponseImageGenerationCallPartialImage!); + return responseImageGenerationCallPartialImage(__value46); } - else if (IsResponseMcpCallArgumentsDelta && responseMcpCallArgumentsDelta != null) + else if (ResponseMcpCallArgumentsDelta is { } __value47 && responseMcpCallArgumentsDelta != null) { - return responseMcpCallArgumentsDelta(ResponseMcpCallArgumentsDelta!); + return responseMcpCallArgumentsDelta(__value47); } - else if (IsResponseMcpCallArgumentsDone && responseMcpCallArgumentsDone != null) + else if (ResponseMcpCallArgumentsDone is { } __value48 && responseMcpCallArgumentsDone != null) { - return responseMcpCallArgumentsDone(ResponseMcpCallArgumentsDone!); + return responseMcpCallArgumentsDone(__value48); } - else if (IsResponseMcpCallCompleted && responseMcpCallCompleted != null) + else if (ResponseMcpCallCompleted is { } __value49 && responseMcpCallCompleted != null) { - return responseMcpCallCompleted(ResponseMcpCallCompleted!); + return responseMcpCallCompleted(__value49); } - else if (IsResponseMcpCallFailed && responseMcpCallFailed != null) + else if (ResponseMcpCallFailed is { } __value50 && responseMcpCallFailed != null) { - return responseMcpCallFailed(ResponseMcpCallFailed!); + return responseMcpCallFailed(__value50); } - else if (IsResponseMcpCallInProgress && responseMcpCallInProgress != null) + else if (ResponseMcpCallInProgress is { } __value51 && responseMcpCallInProgress != null) { - return responseMcpCallInProgress(ResponseMcpCallInProgress!); + return responseMcpCallInProgress(__value51); } - else if (IsResponseMcpListToolsCompleted && responseMcpListToolsCompleted != null) + else if (ResponseMcpListToolsCompleted is { } __value52 && responseMcpListToolsCompleted != null) { - return responseMcpListToolsCompleted(ResponseMcpListToolsCompleted!); + return responseMcpListToolsCompleted(__value52); } - else if (IsResponseMcpListToolsFailed && responseMcpListToolsFailed != null) + else if (ResponseMcpListToolsFailed is { } __value53 && responseMcpListToolsFailed != null) { - return responseMcpListToolsFailed(ResponseMcpListToolsFailed!); + return responseMcpListToolsFailed(__value53); } - else if (IsResponseMcpListToolsInProgress && responseMcpListToolsInProgress != null) + else if (ResponseMcpListToolsInProgress is { } __value54 && responseMcpListToolsInProgress != null) { - return responseMcpListToolsInProgress(ResponseMcpListToolsInProgress!); + return responseMcpListToolsInProgress(__value54); } - else if (IsResponseOutputTextAnnotationAdded && responseOutputTextAnnotationAdded != null) + else if (ResponseOutputTextAnnotationAdded is { } __value55 && responseOutputTextAnnotationAdded != null) { - return responseOutputTextAnnotationAdded(ResponseOutputTextAnnotationAdded!); + return responseOutputTextAnnotationAdded(__value55); } - else if (IsResponseQueued && responseQueued != null) + else if (ResponseQueued is { } __value56 && responseQueued != null) { - return responseQueued(ResponseQueued!); + return responseQueued(__value56); } - else if (IsResponseCustomToolCallInputDelta && responseCustomToolCallInputDelta != null) + else if (ResponseCustomToolCallInputDelta is { } __value57 && responseCustomToolCallInputDelta != null) { - return responseCustomToolCallInputDelta(ResponseCustomToolCallInputDelta!); + return responseCustomToolCallInputDelta(__value57); } - else if (IsResponseCustomToolCallInputDone && responseCustomToolCallInputDone != null) + else if (ResponseCustomToolCallInputDone is { } __value58 && responseCustomToolCallInputDone != null) { - return responseCustomToolCallInputDone(ResponseCustomToolCallInputDone!); + return responseCustomToolCallInputDone(__value58); } return default(TResult); @@ -4261,241 +4261,241 @@ public void Match( Validate(); } - if (IsResponseAudioDelta) + if (ResponseAudioDelta is { } __value0) { - responseAudioDelta?.Invoke(ResponseAudioDelta!); + responseAudioDelta?.Invoke(__value0); } - else if (IsResponseAudioDone) + else if (ResponseAudioDone is { } __value1) { - responseAudioDone?.Invoke(ResponseAudioDone!); + responseAudioDone?.Invoke(__value1); } - else if (IsResponseAudioTranscriptDelta) + else if (ResponseAudioTranscriptDelta is { } __value2) { - responseAudioTranscriptDelta?.Invoke(ResponseAudioTranscriptDelta!); + responseAudioTranscriptDelta?.Invoke(__value2); } - else if (IsResponseAudioTranscriptDone) + else if (ResponseAudioTranscriptDone is { } __value3) { - responseAudioTranscriptDone?.Invoke(ResponseAudioTranscriptDone!); + responseAudioTranscriptDone?.Invoke(__value3); } - else if (IsResponseCodeInterpreterCallCodeDelta) + else if (ResponseCodeInterpreterCallCodeDelta is { } __value4) { - responseCodeInterpreterCallCodeDelta?.Invoke(ResponseCodeInterpreterCallCodeDelta!); + responseCodeInterpreterCallCodeDelta?.Invoke(__value4); } - else if (IsResponseCodeInterpreterCallCodeDone) + else if (ResponseCodeInterpreterCallCodeDone is { } __value5) { - responseCodeInterpreterCallCodeDone?.Invoke(ResponseCodeInterpreterCallCodeDone!); + responseCodeInterpreterCallCodeDone?.Invoke(__value5); } - else if (IsResponseCodeInterpreterCallCompleted) + else if (ResponseCodeInterpreterCallCompleted is { } __value6) { - responseCodeInterpreterCallCompleted?.Invoke(ResponseCodeInterpreterCallCompleted!); + responseCodeInterpreterCallCompleted?.Invoke(__value6); } - else if (IsResponseCodeInterpreterCallInProgress) + else if (ResponseCodeInterpreterCallInProgress is { } __value7) { - responseCodeInterpreterCallInProgress?.Invoke(ResponseCodeInterpreterCallInProgress!); + responseCodeInterpreterCallInProgress?.Invoke(__value7); } - else if (IsResponseCodeInterpreterCallInterpreting) + else if (ResponseCodeInterpreterCallInterpreting is { } __value8) { - responseCodeInterpreterCallInterpreting?.Invoke(ResponseCodeInterpreterCallInterpreting!); + responseCodeInterpreterCallInterpreting?.Invoke(__value8); } - else if (IsResponseCompactionCompacting) + else if (ResponseCompactionCompacting is { } __value9) { - responseCompactionCompacting?.Invoke(ResponseCompactionCompacting!); + responseCompactionCompacting?.Invoke(__value9); } - else if (IsResponseCompleted) + else if (ResponseCompleted is { } __value10) { - responseCompleted?.Invoke(ResponseCompleted!); + responseCompleted?.Invoke(__value10); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value11) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value11); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value12) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value12); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value13) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value13); } - else if (IsError) + else if (Error is { } __value14) { - error?.Invoke(Error!); + error?.Invoke(__value14); } - else if (IsResponseFileSearchCallCompleted) + else if (ResponseFileSearchCallCompleted is { } __value15) { - responseFileSearchCallCompleted?.Invoke(ResponseFileSearchCallCompleted!); + responseFileSearchCallCompleted?.Invoke(__value15); } - else if (IsResponseFileSearchCallInProgress) + else if (ResponseFileSearchCallInProgress is { } __value16) { - responseFileSearchCallInProgress?.Invoke(ResponseFileSearchCallInProgress!); + responseFileSearchCallInProgress?.Invoke(__value16); } - else if (IsResponseFileSearchCallSearching) + else if (ResponseFileSearchCallSearching is { } __value17) { - responseFileSearchCallSearching?.Invoke(ResponseFileSearchCallSearching!); + responseFileSearchCallSearching?.Invoke(__value17); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value18) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value18); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value19) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value19); } - else if (IsResponseShellCallCommandAdded) + else if (ResponseShellCallCommandAdded is { } __value20) { - responseShellCallCommandAdded?.Invoke(ResponseShellCallCommandAdded!); + responseShellCallCommandAdded?.Invoke(__value20); } - else if (IsResponseShellCallCommandDelta) + else if (ResponseShellCallCommandDelta is { } __value21) { - responseShellCallCommandDelta?.Invoke(ResponseShellCallCommandDelta!); + responseShellCallCommandDelta?.Invoke(__value21); } - else if (IsResponseShellCallCommandDone) + else if (ResponseShellCallCommandDone is { } __value22) { - responseShellCallCommandDone?.Invoke(ResponseShellCallCommandDone!); + responseShellCallCommandDone?.Invoke(__value22); } - else if (IsResponseShellCallOutputContentDelta) + else if (ResponseShellCallOutputContentDelta is { } __value23) { - responseShellCallOutputContentDelta?.Invoke(ResponseShellCallOutputContentDelta!); + responseShellCallOutputContentDelta?.Invoke(__value23); } - else if (IsResponseShellCallOutputContentDone) + else if (ResponseShellCallOutputContentDone is { } __value24) { - responseShellCallOutputContentDone?.Invoke(ResponseShellCallOutputContentDone!); + responseShellCallOutputContentDone?.Invoke(__value24); } - else if (IsResponseInProgress) + else if (ResponseInProgress is { } __value25) { - responseInProgress?.Invoke(ResponseInProgress!); + responseInProgress?.Invoke(__value25); } - else if (IsResponseFailed) + else if (ResponseFailed is { } __value26) { - responseFailed?.Invoke(ResponseFailed!); + responseFailed?.Invoke(__value26); } - else if (IsResponseIncomplete) + else if (ResponseIncomplete is { } __value27) { - responseIncomplete?.Invoke(ResponseIncomplete!); + responseIncomplete?.Invoke(__value27); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value28) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value28); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value29) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value29); } - else if (IsResponseReasoningSummaryPartAdded) + else if (ResponseReasoningSummaryPartAdded is { } __value30) { - responseReasoningSummaryPartAdded?.Invoke(ResponseReasoningSummaryPartAdded!); + responseReasoningSummaryPartAdded?.Invoke(__value30); } - else if (IsResponseReasoningSummaryPartDone) + else if (ResponseReasoningSummaryPartDone is { } __value31) { - responseReasoningSummaryPartDone?.Invoke(ResponseReasoningSummaryPartDone!); + responseReasoningSummaryPartDone?.Invoke(__value31); } - else if (IsResponseReasoningSummaryTextDelta) + else if (ResponseReasoningSummaryTextDelta is { } __value32) { - responseReasoningSummaryTextDelta?.Invoke(ResponseReasoningSummaryTextDelta!); + responseReasoningSummaryTextDelta?.Invoke(__value32); } - else if (IsResponseReasoningSummaryTextDone) + else if (ResponseReasoningSummaryTextDone is { } __value33) { - responseReasoningSummaryTextDone?.Invoke(ResponseReasoningSummaryTextDone!); + responseReasoningSummaryTextDone?.Invoke(__value33); } - else if (IsResponseReasoningTextDelta) + else if (ResponseReasoningTextDelta is { } __value34) { - responseReasoningTextDelta?.Invoke(ResponseReasoningTextDelta!); + responseReasoningTextDelta?.Invoke(__value34); } - else if (IsResponseReasoningTextDone) + else if (ResponseReasoningTextDone is { } __value35) { - responseReasoningTextDone?.Invoke(ResponseReasoningTextDone!); + responseReasoningTextDone?.Invoke(__value35); } - else if (IsResponseRefusalDelta) + else if (ResponseRefusalDelta is { } __value36) { - responseRefusalDelta?.Invoke(ResponseRefusalDelta!); + responseRefusalDelta?.Invoke(__value36); } - else if (IsResponseRefusalDone) + else if (ResponseRefusalDone is { } __value37) { - responseRefusalDone?.Invoke(ResponseRefusalDone!); + responseRefusalDone?.Invoke(__value37); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value38) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value38); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value39) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value39); } - else if (IsResponseWebSearchCallCompleted) + else if (ResponseWebSearchCallCompleted is { } __value40) { - responseWebSearchCallCompleted?.Invoke(ResponseWebSearchCallCompleted!); + responseWebSearchCallCompleted?.Invoke(__value40); } - else if (IsResponseWebSearchCallInProgress) + else if (ResponseWebSearchCallInProgress is { } __value41) { - responseWebSearchCallInProgress?.Invoke(ResponseWebSearchCallInProgress!); + responseWebSearchCallInProgress?.Invoke(__value41); } - else if (IsResponseWebSearchCallSearching) + else if (ResponseWebSearchCallSearching is { } __value42) { - responseWebSearchCallSearching?.Invoke(ResponseWebSearchCallSearching!); + responseWebSearchCallSearching?.Invoke(__value42); } - else if (IsResponseImageGenerationCallCompleted) + else if (ResponseImageGenerationCallCompleted is { } __value43) { - responseImageGenerationCallCompleted?.Invoke(ResponseImageGenerationCallCompleted!); + responseImageGenerationCallCompleted?.Invoke(__value43); } - else if (IsResponseImageGenerationCallGenerating) + else if (ResponseImageGenerationCallGenerating is { } __value44) { - responseImageGenerationCallGenerating?.Invoke(ResponseImageGenerationCallGenerating!); + responseImageGenerationCallGenerating?.Invoke(__value44); } - else if (IsResponseImageGenerationCallInProgress) + else if (ResponseImageGenerationCallInProgress is { } __value45) { - responseImageGenerationCallInProgress?.Invoke(ResponseImageGenerationCallInProgress!); + responseImageGenerationCallInProgress?.Invoke(__value45); } - else if (IsResponseImageGenerationCallPartialImage) + else if (ResponseImageGenerationCallPartialImage is { } __value46) { - responseImageGenerationCallPartialImage?.Invoke(ResponseImageGenerationCallPartialImage!); + responseImageGenerationCallPartialImage?.Invoke(__value46); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value47) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value47); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value48) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value48); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value49) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value49); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value50) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value50); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value51) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value51); } - else if (IsResponseMcpListToolsCompleted) + else if (ResponseMcpListToolsCompleted is { } __value52) { - responseMcpListToolsCompleted?.Invoke(ResponseMcpListToolsCompleted!); + responseMcpListToolsCompleted?.Invoke(__value52); } - else if (IsResponseMcpListToolsFailed) + else if (ResponseMcpListToolsFailed is { } __value53) { - responseMcpListToolsFailed?.Invoke(ResponseMcpListToolsFailed!); + responseMcpListToolsFailed?.Invoke(__value53); } - else if (IsResponseMcpListToolsInProgress) + else if (ResponseMcpListToolsInProgress is { } __value54) { - responseMcpListToolsInProgress?.Invoke(ResponseMcpListToolsInProgress!); + responseMcpListToolsInProgress?.Invoke(__value54); } - else if (IsResponseOutputTextAnnotationAdded) + else if (ResponseOutputTextAnnotationAdded is { } __value55) { - responseOutputTextAnnotationAdded?.Invoke(ResponseOutputTextAnnotationAdded!); + responseOutputTextAnnotationAdded?.Invoke(__value55); } - else if (IsResponseQueued) + else if (ResponseQueued is { } __value56) { - responseQueued?.Invoke(ResponseQueued!); + responseQueued?.Invoke(__value56); } - else if (IsResponseCustomToolCallInputDelta) + else if (ResponseCustomToolCallInputDelta is { } __value57) { - responseCustomToolCallInputDelta?.Invoke(ResponseCustomToolCallInputDelta!); + responseCustomToolCallInputDelta?.Invoke(__value57); } - else if (IsResponseCustomToolCallInputDone) + else if (ResponseCustomToolCallInputDone is { } __value58) { - responseCustomToolCallInputDone?.Invoke(ResponseCustomToolCallInputDone!); + responseCustomToolCallInputDone?.Invoke(__value58); } } @@ -4569,241 +4569,241 @@ public void Switch( Validate(); } - if (IsResponseAudioDelta) + if (ResponseAudioDelta is { } __value0) { - responseAudioDelta?.Invoke(ResponseAudioDelta!); + responseAudioDelta?.Invoke(__value0); } - else if (IsResponseAudioDone) + else if (ResponseAudioDone is { } __value1) { - responseAudioDone?.Invoke(ResponseAudioDone!); + responseAudioDone?.Invoke(__value1); } - else if (IsResponseAudioTranscriptDelta) + else if (ResponseAudioTranscriptDelta is { } __value2) { - responseAudioTranscriptDelta?.Invoke(ResponseAudioTranscriptDelta!); + responseAudioTranscriptDelta?.Invoke(__value2); } - else if (IsResponseAudioTranscriptDone) + else if (ResponseAudioTranscriptDone is { } __value3) { - responseAudioTranscriptDone?.Invoke(ResponseAudioTranscriptDone!); + responseAudioTranscriptDone?.Invoke(__value3); } - else if (IsResponseCodeInterpreterCallCodeDelta) + else if (ResponseCodeInterpreterCallCodeDelta is { } __value4) { - responseCodeInterpreterCallCodeDelta?.Invoke(ResponseCodeInterpreterCallCodeDelta!); + responseCodeInterpreterCallCodeDelta?.Invoke(__value4); } - else if (IsResponseCodeInterpreterCallCodeDone) + else if (ResponseCodeInterpreterCallCodeDone is { } __value5) { - responseCodeInterpreterCallCodeDone?.Invoke(ResponseCodeInterpreterCallCodeDone!); + responseCodeInterpreterCallCodeDone?.Invoke(__value5); } - else if (IsResponseCodeInterpreterCallCompleted) + else if (ResponseCodeInterpreterCallCompleted is { } __value6) { - responseCodeInterpreterCallCompleted?.Invoke(ResponseCodeInterpreterCallCompleted!); + responseCodeInterpreterCallCompleted?.Invoke(__value6); } - else if (IsResponseCodeInterpreterCallInProgress) + else if (ResponseCodeInterpreterCallInProgress is { } __value7) { - responseCodeInterpreterCallInProgress?.Invoke(ResponseCodeInterpreterCallInProgress!); + responseCodeInterpreterCallInProgress?.Invoke(__value7); } - else if (IsResponseCodeInterpreterCallInterpreting) + else if (ResponseCodeInterpreterCallInterpreting is { } __value8) { - responseCodeInterpreterCallInterpreting?.Invoke(ResponseCodeInterpreterCallInterpreting!); + responseCodeInterpreterCallInterpreting?.Invoke(__value8); } - else if (IsResponseCompactionCompacting) + else if (ResponseCompactionCompacting is { } __value9) { - responseCompactionCompacting?.Invoke(ResponseCompactionCompacting!); + responseCompactionCompacting?.Invoke(__value9); } - else if (IsResponseCompleted) + else if (ResponseCompleted is { } __value10) { - responseCompleted?.Invoke(ResponseCompleted!); + responseCompleted?.Invoke(__value10); } - else if (IsResponseContentPartAdded) + else if (ResponseContentPartAdded is { } __value11) { - responseContentPartAdded?.Invoke(ResponseContentPartAdded!); + responseContentPartAdded?.Invoke(__value11); } - else if (IsResponseContentPartDone) + else if (ResponseContentPartDone is { } __value12) { - responseContentPartDone?.Invoke(ResponseContentPartDone!); + responseContentPartDone?.Invoke(__value12); } - else if (IsResponseCreated) + else if (ResponseCreated is { } __value13) { - responseCreated?.Invoke(ResponseCreated!); + responseCreated?.Invoke(__value13); } - else if (IsError) + else if (Error is { } __value14) { - error?.Invoke(Error!); + error?.Invoke(__value14); } - else if (IsResponseFileSearchCallCompleted) + else if (ResponseFileSearchCallCompleted is { } __value15) { - responseFileSearchCallCompleted?.Invoke(ResponseFileSearchCallCompleted!); + responseFileSearchCallCompleted?.Invoke(__value15); } - else if (IsResponseFileSearchCallInProgress) + else if (ResponseFileSearchCallInProgress is { } __value16) { - responseFileSearchCallInProgress?.Invoke(ResponseFileSearchCallInProgress!); + responseFileSearchCallInProgress?.Invoke(__value16); } - else if (IsResponseFileSearchCallSearching) + else if (ResponseFileSearchCallSearching is { } __value17) { - responseFileSearchCallSearching?.Invoke(ResponseFileSearchCallSearching!); + responseFileSearchCallSearching?.Invoke(__value17); } - else if (IsResponseFunctionCallArgumentsDelta) + else if (ResponseFunctionCallArgumentsDelta is { } __value18) { - responseFunctionCallArgumentsDelta?.Invoke(ResponseFunctionCallArgumentsDelta!); + responseFunctionCallArgumentsDelta?.Invoke(__value18); } - else if (IsResponseFunctionCallArgumentsDone) + else if (ResponseFunctionCallArgumentsDone is { } __value19) { - responseFunctionCallArgumentsDone?.Invoke(ResponseFunctionCallArgumentsDone!); + responseFunctionCallArgumentsDone?.Invoke(__value19); } - else if (IsResponseShellCallCommandAdded) + else if (ResponseShellCallCommandAdded is { } __value20) { - responseShellCallCommandAdded?.Invoke(ResponseShellCallCommandAdded!); + responseShellCallCommandAdded?.Invoke(__value20); } - else if (IsResponseShellCallCommandDelta) + else if (ResponseShellCallCommandDelta is { } __value21) { - responseShellCallCommandDelta?.Invoke(ResponseShellCallCommandDelta!); + responseShellCallCommandDelta?.Invoke(__value21); } - else if (IsResponseShellCallCommandDone) + else if (ResponseShellCallCommandDone is { } __value22) { - responseShellCallCommandDone?.Invoke(ResponseShellCallCommandDone!); + responseShellCallCommandDone?.Invoke(__value22); } - else if (IsResponseShellCallOutputContentDelta) + else if (ResponseShellCallOutputContentDelta is { } __value23) { - responseShellCallOutputContentDelta?.Invoke(ResponseShellCallOutputContentDelta!); + responseShellCallOutputContentDelta?.Invoke(__value23); } - else if (IsResponseShellCallOutputContentDone) + else if (ResponseShellCallOutputContentDone is { } __value24) { - responseShellCallOutputContentDone?.Invoke(ResponseShellCallOutputContentDone!); + responseShellCallOutputContentDone?.Invoke(__value24); } - else if (IsResponseInProgress) + else if (ResponseInProgress is { } __value25) { - responseInProgress?.Invoke(ResponseInProgress!); + responseInProgress?.Invoke(__value25); } - else if (IsResponseFailed) + else if (ResponseFailed is { } __value26) { - responseFailed?.Invoke(ResponseFailed!); + responseFailed?.Invoke(__value26); } - else if (IsResponseIncomplete) + else if (ResponseIncomplete is { } __value27) { - responseIncomplete?.Invoke(ResponseIncomplete!); + responseIncomplete?.Invoke(__value27); } - else if (IsResponseOutputItemAdded) + else if (ResponseOutputItemAdded is { } __value28) { - responseOutputItemAdded?.Invoke(ResponseOutputItemAdded!); + responseOutputItemAdded?.Invoke(__value28); } - else if (IsResponseOutputItemDone) + else if (ResponseOutputItemDone is { } __value29) { - responseOutputItemDone?.Invoke(ResponseOutputItemDone!); + responseOutputItemDone?.Invoke(__value29); } - else if (IsResponseReasoningSummaryPartAdded) + else if (ResponseReasoningSummaryPartAdded is { } __value30) { - responseReasoningSummaryPartAdded?.Invoke(ResponseReasoningSummaryPartAdded!); + responseReasoningSummaryPartAdded?.Invoke(__value30); } - else if (IsResponseReasoningSummaryPartDone) + else if (ResponseReasoningSummaryPartDone is { } __value31) { - responseReasoningSummaryPartDone?.Invoke(ResponseReasoningSummaryPartDone!); + responseReasoningSummaryPartDone?.Invoke(__value31); } - else if (IsResponseReasoningSummaryTextDelta) + else if (ResponseReasoningSummaryTextDelta is { } __value32) { - responseReasoningSummaryTextDelta?.Invoke(ResponseReasoningSummaryTextDelta!); + responseReasoningSummaryTextDelta?.Invoke(__value32); } - else if (IsResponseReasoningSummaryTextDone) + else if (ResponseReasoningSummaryTextDone is { } __value33) { - responseReasoningSummaryTextDone?.Invoke(ResponseReasoningSummaryTextDone!); + responseReasoningSummaryTextDone?.Invoke(__value33); } - else if (IsResponseReasoningTextDelta) + else if (ResponseReasoningTextDelta is { } __value34) { - responseReasoningTextDelta?.Invoke(ResponseReasoningTextDelta!); + responseReasoningTextDelta?.Invoke(__value34); } - else if (IsResponseReasoningTextDone) + else if (ResponseReasoningTextDone is { } __value35) { - responseReasoningTextDone?.Invoke(ResponseReasoningTextDone!); + responseReasoningTextDone?.Invoke(__value35); } - else if (IsResponseRefusalDelta) + else if (ResponseRefusalDelta is { } __value36) { - responseRefusalDelta?.Invoke(ResponseRefusalDelta!); + responseRefusalDelta?.Invoke(__value36); } - else if (IsResponseRefusalDone) + else if (ResponseRefusalDone is { } __value37) { - responseRefusalDone?.Invoke(ResponseRefusalDone!); + responseRefusalDone?.Invoke(__value37); } - else if (IsResponseOutputTextDelta) + else if (ResponseOutputTextDelta is { } __value38) { - responseOutputTextDelta?.Invoke(ResponseOutputTextDelta!); + responseOutputTextDelta?.Invoke(__value38); } - else if (IsResponseOutputTextDone) + else if (ResponseOutputTextDone is { } __value39) { - responseOutputTextDone?.Invoke(ResponseOutputTextDone!); + responseOutputTextDone?.Invoke(__value39); } - else if (IsResponseWebSearchCallCompleted) + else if (ResponseWebSearchCallCompleted is { } __value40) { - responseWebSearchCallCompleted?.Invoke(ResponseWebSearchCallCompleted!); + responseWebSearchCallCompleted?.Invoke(__value40); } - else if (IsResponseWebSearchCallInProgress) + else if (ResponseWebSearchCallInProgress is { } __value41) { - responseWebSearchCallInProgress?.Invoke(ResponseWebSearchCallInProgress!); + responseWebSearchCallInProgress?.Invoke(__value41); } - else if (IsResponseWebSearchCallSearching) + else if (ResponseWebSearchCallSearching is { } __value42) { - responseWebSearchCallSearching?.Invoke(ResponseWebSearchCallSearching!); + responseWebSearchCallSearching?.Invoke(__value42); } - else if (IsResponseImageGenerationCallCompleted) + else if (ResponseImageGenerationCallCompleted is { } __value43) { - responseImageGenerationCallCompleted?.Invoke(ResponseImageGenerationCallCompleted!); + responseImageGenerationCallCompleted?.Invoke(__value43); } - else if (IsResponseImageGenerationCallGenerating) + else if (ResponseImageGenerationCallGenerating is { } __value44) { - responseImageGenerationCallGenerating?.Invoke(ResponseImageGenerationCallGenerating!); + responseImageGenerationCallGenerating?.Invoke(__value44); } - else if (IsResponseImageGenerationCallInProgress) + else if (ResponseImageGenerationCallInProgress is { } __value45) { - responseImageGenerationCallInProgress?.Invoke(ResponseImageGenerationCallInProgress!); + responseImageGenerationCallInProgress?.Invoke(__value45); } - else if (IsResponseImageGenerationCallPartialImage) + else if (ResponseImageGenerationCallPartialImage is { } __value46) { - responseImageGenerationCallPartialImage?.Invoke(ResponseImageGenerationCallPartialImage!); + responseImageGenerationCallPartialImage?.Invoke(__value46); } - else if (IsResponseMcpCallArgumentsDelta) + else if (ResponseMcpCallArgumentsDelta is { } __value47) { - responseMcpCallArgumentsDelta?.Invoke(ResponseMcpCallArgumentsDelta!); + responseMcpCallArgumentsDelta?.Invoke(__value47); } - else if (IsResponseMcpCallArgumentsDone) + else if (ResponseMcpCallArgumentsDone is { } __value48) { - responseMcpCallArgumentsDone?.Invoke(ResponseMcpCallArgumentsDone!); + responseMcpCallArgumentsDone?.Invoke(__value48); } - else if (IsResponseMcpCallCompleted) + else if (ResponseMcpCallCompleted is { } __value49) { - responseMcpCallCompleted?.Invoke(ResponseMcpCallCompleted!); + responseMcpCallCompleted?.Invoke(__value49); } - else if (IsResponseMcpCallFailed) + else if (ResponseMcpCallFailed is { } __value50) { - responseMcpCallFailed?.Invoke(ResponseMcpCallFailed!); + responseMcpCallFailed?.Invoke(__value50); } - else if (IsResponseMcpCallInProgress) + else if (ResponseMcpCallInProgress is { } __value51) { - responseMcpCallInProgress?.Invoke(ResponseMcpCallInProgress!); + responseMcpCallInProgress?.Invoke(__value51); } - else if (IsResponseMcpListToolsCompleted) + else if (ResponseMcpListToolsCompleted is { } __value52) { - responseMcpListToolsCompleted?.Invoke(ResponseMcpListToolsCompleted!); + responseMcpListToolsCompleted?.Invoke(__value52); } - else if (IsResponseMcpListToolsFailed) + else if (ResponseMcpListToolsFailed is { } __value53) { - responseMcpListToolsFailed?.Invoke(ResponseMcpListToolsFailed!); + responseMcpListToolsFailed?.Invoke(__value53); } - else if (IsResponseMcpListToolsInProgress) + else if (ResponseMcpListToolsInProgress is { } __value54) { - responseMcpListToolsInProgress?.Invoke(ResponseMcpListToolsInProgress!); + responseMcpListToolsInProgress?.Invoke(__value54); } - else if (IsResponseOutputTextAnnotationAdded) + else if (ResponseOutputTextAnnotationAdded is { } __value55) { - responseOutputTextAnnotationAdded?.Invoke(ResponseOutputTextAnnotationAdded!); + responseOutputTextAnnotationAdded?.Invoke(__value55); } - else if (IsResponseQueued) + else if (ResponseQueued is { } __value56) { - responseQueued?.Invoke(ResponseQueued!); + responseQueued?.Invoke(__value56); } - else if (IsResponseCustomToolCallInputDelta) + else if (ResponseCustomToolCallInputDelta is { } __value57) { - responseCustomToolCallInputDelta?.Invoke(ResponseCustomToolCallInputDelta!); + responseCustomToolCallInputDelta?.Invoke(__value57); } - else if (IsResponseCustomToolCallInputDone) + else if (ResponseCustomToolCallInputDone is { } __value58) { - responseCustomToolCallInputDone?.Invoke(ResponseCustomToolCallInputDone!); + responseCustomToolCallInputDone?.Invoke(__value58); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs index 73722bf5d..ca3ad5bdd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseVariant3.g.cs @@ -105,8 +105,7 @@ public sealed partial class ResponseVariant3 public string? OutputText { get; set; } /// - /// Represents token usage details including input tokens, output tokens,
- /// a breakdown of output tokens, and the total tokens used. + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::tryAGI.OpenAI.ResponseUsage? Usage { get; set; } @@ -194,10 +193,7 @@ public sealed partial class ResponseVariant3 /// /// /// - /// - /// Represents token usage details including input tokens, output tokens,
- /// a breakdown of output tokens, and the total tokens used. - /// + /// /// /// The prompt-caching options that were applied to the response. Supported for `gpt-5.6` and later models. /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs index 4748488ae..5cb8da932 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEvent.g.cs @@ -48,8 +48,8 @@ public bool TryPickResponseCreate( /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate PickResponseCreate() => IsResponseCreate - ? ResponseCreate!.Value + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate PickResponseCreate() => ResponseCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCreate' but the value was {ToString()}."); /// @@ -108,8 +108,8 @@ public bool TryPickResponseSteer( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerEvent PickResponseSteer() => IsResponseSteer - ? ResponseSteer! + public global::tryAGI.OpenAI.ResponseSteerEvent PickResponseSteer() => ResponseSteer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteer' but the value was {ToString()}."); /// /// @@ -206,13 +206,13 @@ public bool Validate() Validate(); } - if (IsResponseCreate && responseCreate != null) + if (ResponseCreate is { } __value0 && responseCreate != null) { - return responseCreate(ResponseCreate!); + return responseCreate(__value0); } - else if (IsResponseSteer && responseSteer != null) + else if (ResponseSteer is { } __value1 && responseSteer != null) { - return responseSteer(ResponseSteer!); + return responseSteer(__value1); } return default(TResult); @@ -232,13 +232,13 @@ public void Match( Validate(); } - if (IsResponseCreate) + if (ResponseCreate is { } __value0) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value0); } - else if (IsResponseSteer) + else if (ResponseSteer is { } __value1) { - responseSteer?.Invoke(ResponseSteer!); + responseSteer?.Invoke(__value1); } } @@ -255,13 +255,13 @@ public void Switch( Validate(); } - if (IsResponseCreate) + if (ResponseCreate is { } __value0) { - responseCreate?.Invoke(ResponseCreate!); + responseCreate?.Invoke(__value0); } - else if (IsResponseSteer) + else if (ResponseSteer is { } __value1) { - responseSteer?.Invoke(ResponseSteer!); + responseSteer?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs index ff1f39fe7..65cf2949a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs @@ -48,8 +48,8 @@ public bool TryPickResponsesClientEventResponseCreateVariant1( /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1 PickResponsesClientEventResponseCreateVariant1() => IsResponsesClientEventResponseCreateVariant1 - ? ResponsesClientEventResponseCreateVariant1! + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1 PickResponsesClientEventResponseCreateVariant1() => ResponsesClientEventResponseCreateVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesClientEventResponseCreateVariant1' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickCreateResponse( /// /// /// - public global::tryAGI.OpenAI.CreateResponse PickCreateResponse() => IsCreateResponse - ? CreateResponse!.Value + public global::tryAGI.OpenAI.CreateResponse PickCreateResponse() => CreateResponse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateResponse' but the value was {ToString()}."); /// /// @@ -183,13 +183,13 @@ public bool Validate() Validate(); } - if (IsResponsesClientEventResponseCreateVariant1 && responsesClientEventResponseCreateVariant1 != null) + if (ResponsesClientEventResponseCreateVariant1 is { } __value0 && responsesClientEventResponseCreateVariant1 != null) { - return responsesClientEventResponseCreateVariant1(ResponsesClientEventResponseCreateVariant1!); + return responsesClientEventResponseCreateVariant1(__value0); } - else if (IsCreateResponse && createResponse != null) + else if (CreateResponse is { } __value1 && createResponse != null) { - return createResponse(CreateResponse!); + return createResponse(__value1); } return default(TResult); @@ -209,13 +209,13 @@ public void Match( Validate(); } - if (IsResponsesClientEventResponseCreateVariant1) + if (ResponsesClientEventResponseCreateVariant1 is { } __value0) { - responsesClientEventResponseCreateVariant1?.Invoke(ResponsesClientEventResponseCreateVariant1!); + responsesClientEventResponseCreateVariant1?.Invoke(__value0); } - else if (IsCreateResponse) + else if (CreateResponse is { } __value1) { - createResponse?.Invoke(CreateResponse!); + createResponse?.Invoke(__value1); } } @@ -232,13 +232,13 @@ public void Switch( Validate(); } - if (IsResponsesClientEventResponseCreateVariant1) + if (ResponsesClientEventResponseCreateVariant1 is { } __value0) { - responsesClientEventResponseCreateVariant1?.Invoke(ResponsesClientEventResponseCreateVariant1!); + responsesClientEventResponseCreateVariant1?.Invoke(__value0); } - else if (IsCreateResponse) + else if (CreateResponse is { } __value1) { - createResponse?.Invoke(CreateResponse!); + createResponse?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs index dc1021850..ccf6c628d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesServerEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickResponseAudioWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseAudioWsDelta() => IsResponseAudioWsDelta - ? ResponseAudioWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseAudioWsDelta() => ResponseAudioWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioWsDelta' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickResponseAudioWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseAudioWsDone() => IsResponseAudioWsDone - ? ResponseAudioWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseAudioWsDone() => ResponseAudioWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioWsDone' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickResponseAudioTranscriptWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseAudioTranscriptWsDelta() => IsResponseAudioTranscriptWsDelta - ? ResponseAudioTranscriptWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseAudioTranscriptWsDelta() => ResponseAudioTranscriptWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioTranscriptWsDelta' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickResponseAudioTranscriptWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseAudioTranscriptWsDone() => IsResponseAudioTranscriptWsDone - ? ResponseAudioTranscriptWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseAudioTranscriptWsDone() => ResponseAudioTranscriptWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseAudioTranscriptWsDone' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickResponseCodeInterpreterCallCodeWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallCodeWsDelta() => IsResponseCodeInterpreterCallCodeWsDelta - ? ResponseCodeInterpreterCallCodeWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallCodeWsDelta() => ResponseCodeInterpreterCallCodeWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCodeWsDelta' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickResponseCodeInterpreterCallCodeWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallCodeWsDone() => IsResponseCodeInterpreterCallCodeWsDone - ? ResponseCodeInterpreterCallCodeWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallCodeWsDone() => ResponseCodeInterpreterCallCodeWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallCodeWsDone' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickResponseCodeInterpreterCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallWsCompleted() => IsResponseCodeInterpreterCallWsCompleted - ? ResponseCodeInterpreterCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallWsCompleted() => ResponseCodeInterpreterCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallWsCompleted' but the value was {ToString()}."); /// @@ -301,8 +301,8 @@ public bool TryPickResponseCodeInterpreterCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallInWsProgress() => IsResponseCodeInterpreterCallInWsProgress - ? ResponseCodeInterpreterCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallInWsProgress() => ResponseCodeInterpreterCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallInWsProgress' but the value was {ToString()}."); /// @@ -338,8 +338,8 @@ public bool TryPickResponseCodeInterpreterCallWsInterpreting( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallWsInterpreting() => IsResponseCodeInterpreterCallWsInterpreting - ? ResponseCodeInterpreterCallWsInterpreting!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCodeInterpreterCallWsInterpreting() => ResponseCodeInterpreterCallWsInterpreting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCodeInterpreterCallWsInterpreting' but the value was {ToString()}."); /// @@ -375,8 +375,8 @@ public bool TryPickResponseCompactionWsCompacting( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCompactionWsCompacting() => IsResponseCompactionWsCompacting - ? ResponseCompactionWsCompacting!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCompactionWsCompacting() => ResponseCompactionWsCompacting is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCompactionWsCompacting' but the value was {ToString()}."); /// @@ -412,8 +412,8 @@ public bool TryPickResponseWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWsCompleted() => IsResponseWsCompleted - ? ResponseWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWsCompleted() => ResponseWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWsCompleted' but the value was {ToString()}."); /// @@ -449,8 +449,8 @@ public bool TryPickResponseContentPartWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseContentPartWsAdded() => IsResponseContentPartWsAdded - ? ResponseContentPartWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickResponseContentPartWsAdded() => ResponseContentPartWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartWsAdded' but the value was {ToString()}."); /// @@ -486,8 +486,8 @@ public bool TryPickResponseContentPartWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseContentPartWsDone() => IsResponseContentPartWsDone - ? ResponseContentPartWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseContentPartWsDone() => ResponseContentPartWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseContentPartWsDone' but the value was {ToString()}."); /// @@ -523,8 +523,8 @@ public bool TryPickResponseWsCreated( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWsCreated() => IsResponseWsCreated - ? ResponseWsCreated!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWsCreated() => ResponseWsCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWsCreated' but the value was {ToString()}."); /// @@ -560,8 +560,8 @@ public bool TryPickResponseFileSearchCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseFileSearchCallWsCompleted() => IsResponseFileSearchCallWsCompleted - ? ResponseFileSearchCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseFileSearchCallWsCompleted() => ResponseFileSearchCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallWsCompleted' but the value was {ToString()}."); /// @@ -597,8 +597,8 @@ public bool TryPickResponseFileSearchCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseFileSearchCallInWsProgress() => IsResponseFileSearchCallInWsProgress - ? ResponseFileSearchCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseFileSearchCallInWsProgress() => ResponseFileSearchCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallInWsProgress' but the value was {ToString()}."); /// @@ -634,8 +634,8 @@ public bool TryPickResponseFileSearchCallWsSearching( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseFileSearchCallWsSearching() => IsResponseFileSearchCallWsSearching - ? ResponseFileSearchCallWsSearching!.Value + public global::tryAGI.OpenAI.AllOf PickResponseFileSearchCallWsSearching() => ResponseFileSearchCallWsSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFileSearchCallWsSearching' but the value was {ToString()}."); /// @@ -671,8 +671,8 @@ public bool TryPickResponseFunctionCallArgumentsWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseFunctionCallArgumentsWsDelta() => IsResponseFunctionCallArgumentsWsDelta - ? ResponseFunctionCallArgumentsWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseFunctionCallArgumentsWsDelta() => ResponseFunctionCallArgumentsWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsWsDelta' but the value was {ToString()}."); /// @@ -708,8 +708,8 @@ public bool TryPickResponseFunctionCallArgumentsWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseFunctionCallArgumentsWsDone() => IsResponseFunctionCallArgumentsWsDone - ? ResponseFunctionCallArgumentsWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseFunctionCallArgumentsWsDone() => ResponseFunctionCallArgumentsWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseFunctionCallArgumentsWsDone' but the value was {ToString()}."); /// @@ -745,8 +745,8 @@ public bool TryPickResponseShellCallCommandWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseShellCallCommandWsAdded() => IsResponseShellCallCommandWsAdded - ? ResponseShellCallCommandWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickResponseShellCallCommandWsAdded() => ResponseShellCallCommandWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandWsAdded' but the value was {ToString()}."); /// @@ -782,8 +782,8 @@ public bool TryPickResponseShellCallCommandWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseShellCallCommandWsDelta() => IsResponseShellCallCommandWsDelta - ? ResponseShellCallCommandWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseShellCallCommandWsDelta() => ResponseShellCallCommandWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandWsDelta' but the value was {ToString()}."); /// @@ -819,8 +819,8 @@ public bool TryPickResponseShellCallCommandWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseShellCallCommandWsDone() => IsResponseShellCallCommandWsDone - ? ResponseShellCallCommandWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseShellCallCommandWsDone() => ResponseShellCallCommandWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallCommandWsDone' but the value was {ToString()}."); /// @@ -856,8 +856,8 @@ public bool TryPickResponseShellCallOutputContentWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseShellCallOutputContentWsDelta() => IsResponseShellCallOutputContentWsDelta - ? ResponseShellCallOutputContentWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseShellCallOutputContentWsDelta() => ResponseShellCallOutputContentWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallOutputContentWsDelta' but the value was {ToString()}."); /// @@ -893,8 +893,8 @@ public bool TryPickResponseShellCallOutputContentWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseShellCallOutputContentWsDone() => IsResponseShellCallOutputContentWsDone - ? ResponseShellCallOutputContentWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseShellCallOutputContentWsDone() => ResponseShellCallOutputContentWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseShellCallOutputContentWsDone' but the value was {ToString()}."); /// @@ -930,8 +930,8 @@ public bool TryPickResponseInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseInWsProgress() => IsResponseInWsProgress - ? ResponseInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseInWsProgress() => ResponseInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseInWsProgress' but the value was {ToString()}."); /// @@ -967,8 +967,8 @@ public bool TryPickResponseWsFailed( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWsFailed() => IsResponseWsFailed - ? ResponseWsFailed!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWsFailed() => ResponseWsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWsFailed' but the value was {ToString()}."); /// @@ -1007,8 +1007,8 @@ public bool TryPickResponseWsIncomplete( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWsIncomplete() => IsResponseWsIncomplete - ? ResponseWsIncomplete!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWsIncomplete() => ResponseWsIncomplete is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWsIncomplete' but the value was {ToString()}."); /// @@ -1044,8 +1044,8 @@ public bool TryPickResponseOutputItemWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseOutputItemWsAdded() => IsResponseOutputItemWsAdded - ? ResponseOutputItemWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickResponseOutputItemWsAdded() => ResponseOutputItemWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemWsAdded' but the value was {ToString()}."); /// @@ -1081,8 +1081,8 @@ public bool TryPickResponseOutputItemWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseOutputItemWsDone() => IsResponseOutputItemWsDone - ? ResponseOutputItemWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseOutputItemWsDone() => ResponseOutputItemWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputItemWsDone' but the value was {ToString()}."); /// @@ -1118,8 +1118,8 @@ public bool TryPickResponseReasoningSummaryPartWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryPartWsAdded() => IsResponseReasoningSummaryPartWsAdded - ? ResponseReasoningSummaryPartWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryPartWsAdded() => ResponseReasoningSummaryPartWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryPartWsAdded' but the value was {ToString()}."); /// @@ -1155,8 +1155,8 @@ public bool TryPickResponseReasoningSummaryPartWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryPartWsDone() => IsResponseReasoningSummaryPartWsDone - ? ResponseReasoningSummaryPartWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryPartWsDone() => ResponseReasoningSummaryPartWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryPartWsDone' but the value was {ToString()}."); /// @@ -1192,8 +1192,8 @@ public bool TryPickResponseReasoningSummaryTextWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryTextWsDelta() => IsResponseReasoningSummaryTextWsDelta - ? ResponseReasoningSummaryTextWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryTextWsDelta() => ResponseReasoningSummaryTextWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryTextWsDelta' but the value was {ToString()}."); /// @@ -1229,8 +1229,8 @@ public bool TryPickResponseReasoningSummaryTextWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryTextWsDone() => IsResponseReasoningSummaryTextWsDone - ? ResponseReasoningSummaryTextWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseReasoningSummaryTextWsDone() => ResponseReasoningSummaryTextWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningSummaryTextWsDone' but the value was {ToString()}."); /// @@ -1266,8 +1266,8 @@ public bool TryPickResponseReasoningTextWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseReasoningTextWsDelta() => IsResponseReasoningTextWsDelta - ? ResponseReasoningTextWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseReasoningTextWsDelta() => ResponseReasoningTextWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextWsDelta' but the value was {ToString()}."); /// @@ -1303,8 +1303,8 @@ public bool TryPickResponseReasoningTextWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseReasoningTextWsDone() => IsResponseReasoningTextWsDone - ? ResponseReasoningTextWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseReasoningTextWsDone() => ResponseReasoningTextWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseReasoningTextWsDone' but the value was {ToString()}."); /// @@ -1340,8 +1340,8 @@ public bool TryPickResponseRefusalWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseRefusalWsDelta() => IsResponseRefusalWsDelta - ? ResponseRefusalWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseRefusalWsDelta() => ResponseRefusalWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseRefusalWsDelta' but the value was {ToString()}."); /// @@ -1377,8 +1377,8 @@ public bool TryPickResponseRefusalWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseRefusalWsDone() => IsResponseRefusalWsDone - ? ResponseRefusalWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseRefusalWsDone() => ResponseRefusalWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseRefusalWsDone' but the value was {ToString()}."); /// @@ -1414,8 +1414,8 @@ public bool TryPickResponseTextWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseTextWsDelta() => IsResponseTextWsDelta - ? ResponseTextWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseTextWsDelta() => ResponseTextWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseTextWsDelta' but the value was {ToString()}."); /// @@ -1451,8 +1451,8 @@ public bool TryPickResponseTextWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseTextWsDone() => IsResponseTextWsDone - ? ResponseTextWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseTextWsDone() => ResponseTextWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseTextWsDone' but the value was {ToString()}."); /// @@ -1488,8 +1488,8 @@ public bool TryPickResponseWebSearchCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWebSearchCallWsCompleted() => IsResponseWebSearchCallWsCompleted - ? ResponseWebSearchCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWebSearchCallWsCompleted() => ResponseWebSearchCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallWsCompleted' but the value was {ToString()}."); /// @@ -1525,8 +1525,8 @@ public bool TryPickResponseWebSearchCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWebSearchCallInWsProgress() => IsResponseWebSearchCallInWsProgress - ? ResponseWebSearchCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWebSearchCallInWsProgress() => ResponseWebSearchCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallInWsProgress' but the value was {ToString()}."); /// @@ -1562,8 +1562,8 @@ public bool TryPickResponseWebSearchCallWsSearching( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWebSearchCallWsSearching() => IsResponseWebSearchCallWsSearching - ? ResponseWebSearchCallWsSearching!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWebSearchCallWsSearching() => ResponseWebSearchCallWsSearching is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWebSearchCallWsSearching' but the value was {ToString()}."); /// @@ -1599,8 +1599,8 @@ public bool TryPickResponseImageGenCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallWsCompleted() => IsResponseImageGenCallWsCompleted - ? ResponseImageGenCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallWsCompleted() => ResponseImageGenCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenCallWsCompleted' but the value was {ToString()}."); /// @@ -1636,8 +1636,8 @@ public bool TryPickResponseImageGenCallWsGenerating( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallWsGenerating() => IsResponseImageGenCallWsGenerating - ? ResponseImageGenCallWsGenerating!.Value + public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallWsGenerating() => ResponseImageGenCallWsGenerating is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenCallWsGenerating' but the value was {ToString()}."); /// @@ -1673,8 +1673,8 @@ public bool TryPickResponseImageGenCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallInWsProgress() => IsResponseImageGenCallInWsProgress - ? ResponseImageGenCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallInWsProgress() => ResponseImageGenCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenCallInWsProgress' but the value was {ToString()}."); /// @@ -1710,8 +1710,8 @@ public bool TryPickResponseImageGenCallPartialWsImage( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallPartialWsImage() => IsResponseImageGenCallPartialWsImage - ? ResponseImageGenCallPartialWsImage!.Value + public global::tryAGI.OpenAI.AllOf PickResponseImageGenCallPartialWsImage() => ResponseImageGenCallPartialWsImage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseImageGenCallPartialWsImage' but the value was {ToString()}."); /// @@ -1747,8 +1747,8 @@ public bool TryPickResponseMcpCallArgumentsWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpCallArgumentsWsDelta() => IsResponseMcpCallArgumentsWsDelta - ? ResponseMcpCallArgumentsWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpCallArgumentsWsDelta() => ResponseMcpCallArgumentsWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsWsDelta' but the value was {ToString()}."); /// @@ -1784,8 +1784,8 @@ public bool TryPickResponseMcpCallArgumentsWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpCallArgumentsWsDone() => IsResponseMcpCallArgumentsWsDone - ? ResponseMcpCallArgumentsWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpCallArgumentsWsDone() => ResponseMcpCallArgumentsWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallArgumentsWsDone' but the value was {ToString()}."); /// @@ -1821,8 +1821,8 @@ public bool TryPickResponseMcpCallWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpCallWsCompleted() => IsResponseMcpCallWsCompleted - ? ResponseMcpCallWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpCallWsCompleted() => ResponseMcpCallWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallWsCompleted' but the value was {ToString()}."); /// @@ -1858,8 +1858,8 @@ public bool TryPickResponseMcpCallWsFailed( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpCallWsFailed() => IsResponseMcpCallWsFailed - ? ResponseMcpCallWsFailed!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpCallWsFailed() => ResponseMcpCallWsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallWsFailed' but the value was {ToString()}."); /// @@ -1895,8 +1895,8 @@ public bool TryPickResponseMcpCallInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpCallInWsProgress() => IsResponseMcpCallInWsProgress - ? ResponseMcpCallInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpCallInWsProgress() => ResponseMcpCallInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpCallInWsProgress' but the value was {ToString()}."); /// @@ -1932,8 +1932,8 @@ public bool TryPickResponseMcpListToolsWsCompleted( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpListToolsWsCompleted() => IsResponseMcpListToolsWsCompleted - ? ResponseMcpListToolsWsCompleted!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpListToolsWsCompleted() => ResponseMcpListToolsWsCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsWsCompleted' but the value was {ToString()}."); /// @@ -1969,8 +1969,8 @@ public bool TryPickResponseMcpListToolsWsFailed( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpListToolsWsFailed() => IsResponseMcpListToolsWsFailed - ? ResponseMcpListToolsWsFailed!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpListToolsWsFailed() => ResponseMcpListToolsWsFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsWsFailed' but the value was {ToString()}."); /// @@ -2006,8 +2006,8 @@ public bool TryPickResponseMcpListToolsInWsProgress( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseMcpListToolsInWsProgress() => IsResponseMcpListToolsInWsProgress - ? ResponseMcpListToolsInWsProgress!.Value + public global::tryAGI.OpenAI.AllOf PickResponseMcpListToolsInWsProgress() => ResponseMcpListToolsInWsProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseMcpListToolsInWsProgress' but the value was {ToString()}."); /// @@ -2043,8 +2043,8 @@ public bool TryPickResponseOutputTextAnnotationWsAdded( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseOutputTextAnnotationWsAdded() => IsResponseOutputTextAnnotationWsAdded - ? ResponseOutputTextAnnotationWsAdded!.Value + public global::tryAGI.OpenAI.AllOf PickResponseOutputTextAnnotationWsAdded() => ResponseOutputTextAnnotationWsAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseOutputTextAnnotationWsAdded' but the value was {ToString()}."); /// @@ -2080,8 +2080,8 @@ public bool TryPickResponseWsQueued( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseWsQueued() => IsResponseWsQueued - ? ResponseWsQueued!.Value + public global::tryAGI.OpenAI.AllOf PickResponseWsQueued() => ResponseWsQueued is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseWsQueued' but the value was {ToString()}."); /// @@ -2117,8 +2117,8 @@ public bool TryPickResponseCustomToolCallInputWsDelta( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCustomToolCallInputWsDelta() => IsResponseCustomToolCallInputWsDelta - ? ResponseCustomToolCallInputWsDelta!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCustomToolCallInputWsDelta() => ResponseCustomToolCallInputWsDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallInputWsDelta' but the value was {ToString()}."); /// @@ -2154,8 +2154,8 @@ public bool TryPickResponseCustomToolCallInputWsDone( /// /// /// - public global::tryAGI.OpenAI.AllOf PickResponseCustomToolCallInputWsDone() => IsResponseCustomToolCallInputWsDone - ? ResponseCustomToolCallInputWsDone!.Value + public global::tryAGI.OpenAI.AllOf PickResponseCustomToolCallInputWsDone() => ResponseCustomToolCallInputWsDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseCustomToolCallInputWsDone' but the value was {ToString()}."); /// @@ -2191,8 +2191,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.ResponseWsError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.ResponseWsError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -2236,8 +2236,8 @@ public bool TryPickResponseSteerAccepted( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerAcceptedEvent PickResponseSteerAccepted() => IsResponseSteerAccepted - ? ResponseSteerAccepted! + public global::tryAGI.OpenAI.ResponseSteerAcceptedEvent PickResponseSteerAccepted() => ResponseSteerAccepted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerAccepted' but the value was {ToString()}."); /// @@ -2286,8 +2286,8 @@ public bool TryPickResponseSteerPending( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerPendingEvent PickResponseSteerPending() => IsResponseSteerPending - ? ResponseSteerPending! + public global::tryAGI.OpenAI.ResponseSteerPendingEvent PickResponseSteerPending() => ResponseSteerPending is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerPending' but the value was {ToString()}."); /// @@ -2329,8 +2329,8 @@ public bool TryPickResponseSteerFailed( /// /// /// - public global::tryAGI.OpenAI.ResponseSteerFailedEvent PickResponseSteerFailed() => IsResponseSteerFailed - ? ResponseSteerFailed! + public global::tryAGI.OpenAI.ResponseSteerFailedEvent PickResponseSteerFailed() => ResponseSteerFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponseSteerFailed' but the value was {ToString()}."); /// /// @@ -4107,253 +4107,253 @@ public bool Validate() Validate(); } - if (IsResponseAudioWsDelta && responseAudioWsDelta != null) + if (ResponseAudioWsDelta is { } __value0 && responseAudioWsDelta != null) { - return responseAudioWsDelta(ResponseAudioWsDelta!); + return responseAudioWsDelta(__value0); } - else if (IsResponseAudioWsDone && responseAudioWsDone != null) + else if (ResponseAudioWsDone is { } __value1 && responseAudioWsDone != null) { - return responseAudioWsDone(ResponseAudioWsDone!); + return responseAudioWsDone(__value1); } - else if (IsResponseAudioTranscriptWsDelta && responseAudioTranscriptWsDelta != null) + else if (ResponseAudioTranscriptWsDelta is { } __value2 && responseAudioTranscriptWsDelta != null) { - return responseAudioTranscriptWsDelta(ResponseAudioTranscriptWsDelta!); + return responseAudioTranscriptWsDelta(__value2); } - else if (IsResponseAudioTranscriptWsDone && responseAudioTranscriptWsDone != null) + else if (ResponseAudioTranscriptWsDone is { } __value3 && responseAudioTranscriptWsDone != null) { - return responseAudioTranscriptWsDone(ResponseAudioTranscriptWsDone!); + return responseAudioTranscriptWsDone(__value3); } - else if (IsResponseCodeInterpreterCallCodeWsDelta && responseCodeInterpreterCallCodeWsDelta != null) + else if (ResponseCodeInterpreterCallCodeWsDelta is { } __value4 && responseCodeInterpreterCallCodeWsDelta != null) { - return responseCodeInterpreterCallCodeWsDelta(ResponseCodeInterpreterCallCodeWsDelta!); + return responseCodeInterpreterCallCodeWsDelta(__value4); } - else if (IsResponseCodeInterpreterCallCodeWsDone && responseCodeInterpreterCallCodeWsDone != null) + else if (ResponseCodeInterpreterCallCodeWsDone is { } __value5 && responseCodeInterpreterCallCodeWsDone != null) { - return responseCodeInterpreterCallCodeWsDone(ResponseCodeInterpreterCallCodeWsDone!); + return responseCodeInterpreterCallCodeWsDone(__value5); } - else if (IsResponseCodeInterpreterCallWsCompleted && responseCodeInterpreterCallWsCompleted != null) + else if (ResponseCodeInterpreterCallWsCompleted is { } __value6 && responseCodeInterpreterCallWsCompleted != null) { - return responseCodeInterpreterCallWsCompleted(ResponseCodeInterpreterCallWsCompleted!); + return responseCodeInterpreterCallWsCompleted(__value6); } - else if (IsResponseCodeInterpreterCallInWsProgress && responseCodeInterpreterCallInWsProgress != null) + else if (ResponseCodeInterpreterCallInWsProgress is { } __value7 && responseCodeInterpreterCallInWsProgress != null) { - return responseCodeInterpreterCallInWsProgress(ResponseCodeInterpreterCallInWsProgress!); + return responseCodeInterpreterCallInWsProgress(__value7); } - else if (IsResponseCodeInterpreterCallWsInterpreting && responseCodeInterpreterCallWsInterpreting != null) + else if (ResponseCodeInterpreterCallWsInterpreting is { } __value8 && responseCodeInterpreterCallWsInterpreting != null) { - return responseCodeInterpreterCallWsInterpreting(ResponseCodeInterpreterCallWsInterpreting!); + return responseCodeInterpreterCallWsInterpreting(__value8); } - else if (IsResponseCompactionWsCompacting && responseCompactionWsCompacting != null) + else if (ResponseCompactionWsCompacting is { } __value9 && responseCompactionWsCompacting != null) { - return responseCompactionWsCompacting(ResponseCompactionWsCompacting!); + return responseCompactionWsCompacting(__value9); } - else if (IsResponseWsCompleted && responseWsCompleted != null) + else if (ResponseWsCompleted is { } __value10 && responseWsCompleted != null) { - return responseWsCompleted(ResponseWsCompleted!); + return responseWsCompleted(__value10); } - else if (IsResponseContentPartWsAdded && responseContentPartWsAdded != null) + else if (ResponseContentPartWsAdded is { } __value11 && responseContentPartWsAdded != null) { - return responseContentPartWsAdded(ResponseContentPartWsAdded!); + return responseContentPartWsAdded(__value11); } - else if (IsResponseContentPartWsDone && responseContentPartWsDone != null) + else if (ResponseContentPartWsDone is { } __value12 && responseContentPartWsDone != null) { - return responseContentPartWsDone(ResponseContentPartWsDone!); + return responseContentPartWsDone(__value12); } - else if (IsResponseWsCreated && responseWsCreated != null) + else if (ResponseWsCreated is { } __value13 && responseWsCreated != null) { - return responseWsCreated(ResponseWsCreated!); + return responseWsCreated(__value13); } - else if (IsResponseFileSearchCallWsCompleted && responseFileSearchCallWsCompleted != null) + else if (ResponseFileSearchCallWsCompleted is { } __value14 && responseFileSearchCallWsCompleted != null) { - return responseFileSearchCallWsCompleted(ResponseFileSearchCallWsCompleted!); + return responseFileSearchCallWsCompleted(__value14); } - else if (IsResponseFileSearchCallInWsProgress && responseFileSearchCallInWsProgress != null) + else if (ResponseFileSearchCallInWsProgress is { } __value15 && responseFileSearchCallInWsProgress != null) { - return responseFileSearchCallInWsProgress(ResponseFileSearchCallInWsProgress!); + return responseFileSearchCallInWsProgress(__value15); } - else if (IsResponseFileSearchCallWsSearching && responseFileSearchCallWsSearching != null) + else if (ResponseFileSearchCallWsSearching is { } __value16 && responseFileSearchCallWsSearching != null) { - return responseFileSearchCallWsSearching(ResponseFileSearchCallWsSearching!); + return responseFileSearchCallWsSearching(__value16); } - else if (IsResponseFunctionCallArgumentsWsDelta && responseFunctionCallArgumentsWsDelta != null) + else if (ResponseFunctionCallArgumentsWsDelta is { } __value17 && responseFunctionCallArgumentsWsDelta != null) { - return responseFunctionCallArgumentsWsDelta(ResponseFunctionCallArgumentsWsDelta!); + return responseFunctionCallArgumentsWsDelta(__value17); } - else if (IsResponseFunctionCallArgumentsWsDone && responseFunctionCallArgumentsWsDone != null) + else if (ResponseFunctionCallArgumentsWsDone is { } __value18 && responseFunctionCallArgumentsWsDone != null) { - return responseFunctionCallArgumentsWsDone(ResponseFunctionCallArgumentsWsDone!); + return responseFunctionCallArgumentsWsDone(__value18); } - else if (IsResponseShellCallCommandWsAdded && responseShellCallCommandWsAdded != null) + else if (ResponseShellCallCommandWsAdded is { } __value19 && responseShellCallCommandWsAdded != null) { - return responseShellCallCommandWsAdded(ResponseShellCallCommandWsAdded!); + return responseShellCallCommandWsAdded(__value19); } - else if (IsResponseShellCallCommandWsDelta && responseShellCallCommandWsDelta != null) + else if (ResponseShellCallCommandWsDelta is { } __value20 && responseShellCallCommandWsDelta != null) { - return responseShellCallCommandWsDelta(ResponseShellCallCommandWsDelta!); + return responseShellCallCommandWsDelta(__value20); } - else if (IsResponseShellCallCommandWsDone && responseShellCallCommandWsDone != null) + else if (ResponseShellCallCommandWsDone is { } __value21 && responseShellCallCommandWsDone != null) { - return responseShellCallCommandWsDone(ResponseShellCallCommandWsDone!); + return responseShellCallCommandWsDone(__value21); } - else if (IsResponseShellCallOutputContentWsDelta && responseShellCallOutputContentWsDelta != null) + else if (ResponseShellCallOutputContentWsDelta is { } __value22 && responseShellCallOutputContentWsDelta != null) { - return responseShellCallOutputContentWsDelta(ResponseShellCallOutputContentWsDelta!); + return responseShellCallOutputContentWsDelta(__value22); } - else if (IsResponseShellCallOutputContentWsDone && responseShellCallOutputContentWsDone != null) + else if (ResponseShellCallOutputContentWsDone is { } __value23 && responseShellCallOutputContentWsDone != null) { - return responseShellCallOutputContentWsDone(ResponseShellCallOutputContentWsDone!); + return responseShellCallOutputContentWsDone(__value23); } - else if (IsResponseInWsProgress && responseInWsProgress != null) + else if (ResponseInWsProgress is { } __value24 && responseInWsProgress != null) { - return responseInWsProgress(ResponseInWsProgress!); + return responseInWsProgress(__value24); } - else if (IsResponseWsFailed && responseWsFailed != null) + else if (ResponseWsFailed is { } __value25 && responseWsFailed != null) { - return responseWsFailed(ResponseWsFailed!); + return responseWsFailed(__value25); } - else if (IsResponseWsIncomplete && responseWsIncomplete != null) + else if (ResponseWsIncomplete is { } __value26 && responseWsIncomplete != null) { - return responseWsIncomplete(ResponseWsIncomplete!); + return responseWsIncomplete(__value26); } - else if (IsResponseOutputItemWsAdded && responseOutputItemWsAdded != null) + else if (ResponseOutputItemWsAdded is { } __value27 && responseOutputItemWsAdded != null) { - return responseOutputItemWsAdded(ResponseOutputItemWsAdded!); + return responseOutputItemWsAdded(__value27); } - else if (IsResponseOutputItemWsDone && responseOutputItemWsDone != null) + else if (ResponseOutputItemWsDone is { } __value28 && responseOutputItemWsDone != null) { - return responseOutputItemWsDone(ResponseOutputItemWsDone!); + return responseOutputItemWsDone(__value28); } - else if (IsResponseReasoningSummaryPartWsAdded && responseReasoningSummaryPartWsAdded != null) + else if (ResponseReasoningSummaryPartWsAdded is { } __value29 && responseReasoningSummaryPartWsAdded != null) { - return responseReasoningSummaryPartWsAdded(ResponseReasoningSummaryPartWsAdded!); + return responseReasoningSummaryPartWsAdded(__value29); } - else if (IsResponseReasoningSummaryPartWsDone && responseReasoningSummaryPartWsDone != null) + else if (ResponseReasoningSummaryPartWsDone is { } __value30 && responseReasoningSummaryPartWsDone != null) { - return responseReasoningSummaryPartWsDone(ResponseReasoningSummaryPartWsDone!); + return responseReasoningSummaryPartWsDone(__value30); } - else if (IsResponseReasoningSummaryTextWsDelta && responseReasoningSummaryTextWsDelta != null) + else if (ResponseReasoningSummaryTextWsDelta is { } __value31 && responseReasoningSummaryTextWsDelta != null) { - return responseReasoningSummaryTextWsDelta(ResponseReasoningSummaryTextWsDelta!); + return responseReasoningSummaryTextWsDelta(__value31); } - else if (IsResponseReasoningSummaryTextWsDone && responseReasoningSummaryTextWsDone != null) + else if (ResponseReasoningSummaryTextWsDone is { } __value32 && responseReasoningSummaryTextWsDone != null) { - return responseReasoningSummaryTextWsDone(ResponseReasoningSummaryTextWsDone!); + return responseReasoningSummaryTextWsDone(__value32); } - else if (IsResponseReasoningTextWsDelta && responseReasoningTextWsDelta != null) + else if (ResponseReasoningTextWsDelta is { } __value33 && responseReasoningTextWsDelta != null) { - return responseReasoningTextWsDelta(ResponseReasoningTextWsDelta!); + return responseReasoningTextWsDelta(__value33); } - else if (IsResponseReasoningTextWsDone && responseReasoningTextWsDone != null) + else if (ResponseReasoningTextWsDone is { } __value34 && responseReasoningTextWsDone != null) { - return responseReasoningTextWsDone(ResponseReasoningTextWsDone!); + return responseReasoningTextWsDone(__value34); } - else if (IsResponseRefusalWsDelta && responseRefusalWsDelta != null) + else if (ResponseRefusalWsDelta is { } __value35 && responseRefusalWsDelta != null) { - return responseRefusalWsDelta(ResponseRefusalWsDelta!); + return responseRefusalWsDelta(__value35); } - else if (IsResponseRefusalWsDone && responseRefusalWsDone != null) + else if (ResponseRefusalWsDone is { } __value36 && responseRefusalWsDone != null) { - return responseRefusalWsDone(ResponseRefusalWsDone!); + return responseRefusalWsDone(__value36); } - else if (IsResponseTextWsDelta && responseTextWsDelta != null) + else if (ResponseTextWsDelta is { } __value37 && responseTextWsDelta != null) { - return responseTextWsDelta(ResponseTextWsDelta!); + return responseTextWsDelta(__value37); } - else if (IsResponseTextWsDone && responseTextWsDone != null) + else if (ResponseTextWsDone is { } __value38 && responseTextWsDone != null) { - return responseTextWsDone(ResponseTextWsDone!); + return responseTextWsDone(__value38); } - else if (IsResponseWebSearchCallWsCompleted && responseWebSearchCallWsCompleted != null) + else if (ResponseWebSearchCallWsCompleted is { } __value39 && responseWebSearchCallWsCompleted != null) { - return responseWebSearchCallWsCompleted(ResponseWebSearchCallWsCompleted!); + return responseWebSearchCallWsCompleted(__value39); } - else if (IsResponseWebSearchCallInWsProgress && responseWebSearchCallInWsProgress != null) + else if (ResponseWebSearchCallInWsProgress is { } __value40 && responseWebSearchCallInWsProgress != null) { - return responseWebSearchCallInWsProgress(ResponseWebSearchCallInWsProgress!); + return responseWebSearchCallInWsProgress(__value40); } - else if (IsResponseWebSearchCallWsSearching && responseWebSearchCallWsSearching != null) + else if (ResponseWebSearchCallWsSearching is { } __value41 && responseWebSearchCallWsSearching != null) { - return responseWebSearchCallWsSearching(ResponseWebSearchCallWsSearching!); + return responseWebSearchCallWsSearching(__value41); } - else if (IsResponseImageGenCallWsCompleted && responseImageGenCallWsCompleted != null) + else if (ResponseImageGenCallWsCompleted is { } __value42 && responseImageGenCallWsCompleted != null) { - return responseImageGenCallWsCompleted(ResponseImageGenCallWsCompleted!); + return responseImageGenCallWsCompleted(__value42); } - else if (IsResponseImageGenCallWsGenerating && responseImageGenCallWsGenerating != null) + else if (ResponseImageGenCallWsGenerating is { } __value43 && responseImageGenCallWsGenerating != null) { - return responseImageGenCallWsGenerating(ResponseImageGenCallWsGenerating!); + return responseImageGenCallWsGenerating(__value43); } - else if (IsResponseImageGenCallInWsProgress && responseImageGenCallInWsProgress != null) + else if (ResponseImageGenCallInWsProgress is { } __value44 && responseImageGenCallInWsProgress != null) { - return responseImageGenCallInWsProgress(ResponseImageGenCallInWsProgress!); + return responseImageGenCallInWsProgress(__value44); } - else if (IsResponseImageGenCallPartialWsImage && responseImageGenCallPartialWsImage != null) + else if (ResponseImageGenCallPartialWsImage is { } __value45 && responseImageGenCallPartialWsImage != null) { - return responseImageGenCallPartialWsImage(ResponseImageGenCallPartialWsImage!); + return responseImageGenCallPartialWsImage(__value45); } - else if (IsResponseMcpCallArgumentsWsDelta && responseMcpCallArgumentsWsDelta != null) + else if (ResponseMcpCallArgumentsWsDelta is { } __value46 && responseMcpCallArgumentsWsDelta != null) { - return responseMcpCallArgumentsWsDelta(ResponseMcpCallArgumentsWsDelta!); + return responseMcpCallArgumentsWsDelta(__value46); } - else if (IsResponseMcpCallArgumentsWsDone && responseMcpCallArgumentsWsDone != null) + else if (ResponseMcpCallArgumentsWsDone is { } __value47 && responseMcpCallArgumentsWsDone != null) { - return responseMcpCallArgumentsWsDone(ResponseMcpCallArgumentsWsDone!); + return responseMcpCallArgumentsWsDone(__value47); } - else if (IsResponseMcpCallWsCompleted && responseMcpCallWsCompleted != null) + else if (ResponseMcpCallWsCompleted is { } __value48 && responseMcpCallWsCompleted != null) { - return responseMcpCallWsCompleted(ResponseMcpCallWsCompleted!); + return responseMcpCallWsCompleted(__value48); } - else if (IsResponseMcpCallWsFailed && responseMcpCallWsFailed != null) + else if (ResponseMcpCallWsFailed is { } __value49 && responseMcpCallWsFailed != null) { - return responseMcpCallWsFailed(ResponseMcpCallWsFailed!); + return responseMcpCallWsFailed(__value49); } - else if (IsResponseMcpCallInWsProgress && responseMcpCallInWsProgress != null) + else if (ResponseMcpCallInWsProgress is { } __value50 && responseMcpCallInWsProgress != null) { - return responseMcpCallInWsProgress(ResponseMcpCallInWsProgress!); + return responseMcpCallInWsProgress(__value50); } - else if (IsResponseMcpListToolsWsCompleted && responseMcpListToolsWsCompleted != null) + else if (ResponseMcpListToolsWsCompleted is { } __value51 && responseMcpListToolsWsCompleted != null) { - return responseMcpListToolsWsCompleted(ResponseMcpListToolsWsCompleted!); + return responseMcpListToolsWsCompleted(__value51); } - else if (IsResponseMcpListToolsWsFailed && responseMcpListToolsWsFailed != null) + else if (ResponseMcpListToolsWsFailed is { } __value52 && responseMcpListToolsWsFailed != null) { - return responseMcpListToolsWsFailed(ResponseMcpListToolsWsFailed!); + return responseMcpListToolsWsFailed(__value52); } - else if (IsResponseMcpListToolsInWsProgress && responseMcpListToolsInWsProgress != null) + else if (ResponseMcpListToolsInWsProgress is { } __value53 && responseMcpListToolsInWsProgress != null) { - return responseMcpListToolsInWsProgress(ResponseMcpListToolsInWsProgress!); + return responseMcpListToolsInWsProgress(__value53); } - else if (IsResponseOutputTextAnnotationWsAdded && responseOutputTextAnnotationWsAdded != null) + else if (ResponseOutputTextAnnotationWsAdded is { } __value54 && responseOutputTextAnnotationWsAdded != null) { - return responseOutputTextAnnotationWsAdded(ResponseOutputTextAnnotationWsAdded!); + return responseOutputTextAnnotationWsAdded(__value54); } - else if (IsResponseWsQueued && responseWsQueued != null) + else if (ResponseWsQueued is { } __value55 && responseWsQueued != null) { - return responseWsQueued(ResponseWsQueued!); + return responseWsQueued(__value55); } - else if (IsResponseCustomToolCallInputWsDelta && responseCustomToolCallInputWsDelta != null) + else if (ResponseCustomToolCallInputWsDelta is { } __value56 && responseCustomToolCallInputWsDelta != null) { - return responseCustomToolCallInputWsDelta(ResponseCustomToolCallInputWsDelta!); + return responseCustomToolCallInputWsDelta(__value56); } - else if (IsResponseCustomToolCallInputWsDone && responseCustomToolCallInputWsDone != null) + else if (ResponseCustomToolCallInputWsDone is { } __value57 && responseCustomToolCallInputWsDone != null) { - return responseCustomToolCallInputWsDone(ResponseCustomToolCallInputWsDone!); + return responseCustomToolCallInputWsDone(__value57); } - else if (IsError && error != null) + else if (Error is { } __value58 && error != null) { - return error(Error!); + return error(__value58); } - else if (IsResponseSteerAccepted && responseSteerAccepted != null) + else if (ResponseSteerAccepted is { } __value59 && responseSteerAccepted != null) { - return responseSteerAccepted(ResponseSteerAccepted!); + return responseSteerAccepted(__value59); } - else if (IsResponseSteerPending && responseSteerPending != null) + else if (ResponseSteerPending is { } __value60 && responseSteerPending != null) { - return responseSteerPending(ResponseSteerPending!); + return responseSteerPending(__value60); } - else if (IsResponseSteerFailed && responseSteerFailed != null) + else if (ResponseSteerFailed is { } __value61 && responseSteerFailed != null) { - return responseSteerFailed(ResponseSteerFailed!); + return responseSteerFailed(__value61); } return default(TResult); @@ -4493,253 +4493,253 @@ public void Match( Validate(); } - if (IsResponseAudioWsDelta) + if (ResponseAudioWsDelta is { } __value0) { - responseAudioWsDelta?.Invoke(ResponseAudioWsDelta!); + responseAudioWsDelta?.Invoke(__value0); } - else if (IsResponseAudioWsDone) + else if (ResponseAudioWsDone is { } __value1) { - responseAudioWsDone?.Invoke(ResponseAudioWsDone!); + responseAudioWsDone?.Invoke(__value1); } - else if (IsResponseAudioTranscriptWsDelta) + else if (ResponseAudioTranscriptWsDelta is { } __value2) { - responseAudioTranscriptWsDelta?.Invoke(ResponseAudioTranscriptWsDelta!); + responseAudioTranscriptWsDelta?.Invoke(__value2); } - else if (IsResponseAudioTranscriptWsDone) + else if (ResponseAudioTranscriptWsDone is { } __value3) { - responseAudioTranscriptWsDone?.Invoke(ResponseAudioTranscriptWsDone!); + responseAudioTranscriptWsDone?.Invoke(__value3); } - else if (IsResponseCodeInterpreterCallCodeWsDelta) + else if (ResponseCodeInterpreterCallCodeWsDelta is { } __value4) { - responseCodeInterpreterCallCodeWsDelta?.Invoke(ResponseCodeInterpreterCallCodeWsDelta!); + responseCodeInterpreterCallCodeWsDelta?.Invoke(__value4); } - else if (IsResponseCodeInterpreterCallCodeWsDone) + else if (ResponseCodeInterpreterCallCodeWsDone is { } __value5) { - responseCodeInterpreterCallCodeWsDone?.Invoke(ResponseCodeInterpreterCallCodeWsDone!); + responseCodeInterpreterCallCodeWsDone?.Invoke(__value5); } - else if (IsResponseCodeInterpreterCallWsCompleted) + else if (ResponseCodeInterpreterCallWsCompleted is { } __value6) { - responseCodeInterpreterCallWsCompleted?.Invoke(ResponseCodeInterpreterCallWsCompleted!); + responseCodeInterpreterCallWsCompleted?.Invoke(__value6); } - else if (IsResponseCodeInterpreterCallInWsProgress) + else if (ResponseCodeInterpreterCallInWsProgress is { } __value7) { - responseCodeInterpreterCallInWsProgress?.Invoke(ResponseCodeInterpreterCallInWsProgress!); + responseCodeInterpreterCallInWsProgress?.Invoke(__value7); } - else if (IsResponseCodeInterpreterCallWsInterpreting) + else if (ResponseCodeInterpreterCallWsInterpreting is { } __value8) { - responseCodeInterpreterCallWsInterpreting?.Invoke(ResponseCodeInterpreterCallWsInterpreting!); + responseCodeInterpreterCallWsInterpreting?.Invoke(__value8); } - else if (IsResponseCompactionWsCompacting) + else if (ResponseCompactionWsCompacting is { } __value9) { - responseCompactionWsCompacting?.Invoke(ResponseCompactionWsCompacting!); + responseCompactionWsCompacting?.Invoke(__value9); } - else if (IsResponseWsCompleted) + else if (ResponseWsCompleted is { } __value10) { - responseWsCompleted?.Invoke(ResponseWsCompleted!); + responseWsCompleted?.Invoke(__value10); } - else if (IsResponseContentPartWsAdded) + else if (ResponseContentPartWsAdded is { } __value11) { - responseContentPartWsAdded?.Invoke(ResponseContentPartWsAdded!); + responseContentPartWsAdded?.Invoke(__value11); } - else if (IsResponseContentPartWsDone) + else if (ResponseContentPartWsDone is { } __value12) { - responseContentPartWsDone?.Invoke(ResponseContentPartWsDone!); + responseContentPartWsDone?.Invoke(__value12); } - else if (IsResponseWsCreated) + else if (ResponseWsCreated is { } __value13) { - responseWsCreated?.Invoke(ResponseWsCreated!); + responseWsCreated?.Invoke(__value13); } - else if (IsResponseFileSearchCallWsCompleted) + else if (ResponseFileSearchCallWsCompleted is { } __value14) { - responseFileSearchCallWsCompleted?.Invoke(ResponseFileSearchCallWsCompleted!); + responseFileSearchCallWsCompleted?.Invoke(__value14); } - else if (IsResponseFileSearchCallInWsProgress) + else if (ResponseFileSearchCallInWsProgress is { } __value15) { - responseFileSearchCallInWsProgress?.Invoke(ResponseFileSearchCallInWsProgress!); + responseFileSearchCallInWsProgress?.Invoke(__value15); } - else if (IsResponseFileSearchCallWsSearching) + else if (ResponseFileSearchCallWsSearching is { } __value16) { - responseFileSearchCallWsSearching?.Invoke(ResponseFileSearchCallWsSearching!); + responseFileSearchCallWsSearching?.Invoke(__value16); } - else if (IsResponseFunctionCallArgumentsWsDelta) + else if (ResponseFunctionCallArgumentsWsDelta is { } __value17) { - responseFunctionCallArgumentsWsDelta?.Invoke(ResponseFunctionCallArgumentsWsDelta!); + responseFunctionCallArgumentsWsDelta?.Invoke(__value17); } - else if (IsResponseFunctionCallArgumentsWsDone) + else if (ResponseFunctionCallArgumentsWsDone is { } __value18) { - responseFunctionCallArgumentsWsDone?.Invoke(ResponseFunctionCallArgumentsWsDone!); + responseFunctionCallArgumentsWsDone?.Invoke(__value18); } - else if (IsResponseShellCallCommandWsAdded) + else if (ResponseShellCallCommandWsAdded is { } __value19) { - responseShellCallCommandWsAdded?.Invoke(ResponseShellCallCommandWsAdded!); + responseShellCallCommandWsAdded?.Invoke(__value19); } - else if (IsResponseShellCallCommandWsDelta) + else if (ResponseShellCallCommandWsDelta is { } __value20) { - responseShellCallCommandWsDelta?.Invoke(ResponseShellCallCommandWsDelta!); + responseShellCallCommandWsDelta?.Invoke(__value20); } - else if (IsResponseShellCallCommandWsDone) + else if (ResponseShellCallCommandWsDone is { } __value21) { - responseShellCallCommandWsDone?.Invoke(ResponseShellCallCommandWsDone!); + responseShellCallCommandWsDone?.Invoke(__value21); } - else if (IsResponseShellCallOutputContentWsDelta) + else if (ResponseShellCallOutputContentWsDelta is { } __value22) { - responseShellCallOutputContentWsDelta?.Invoke(ResponseShellCallOutputContentWsDelta!); + responseShellCallOutputContentWsDelta?.Invoke(__value22); } - else if (IsResponseShellCallOutputContentWsDone) + else if (ResponseShellCallOutputContentWsDone is { } __value23) { - responseShellCallOutputContentWsDone?.Invoke(ResponseShellCallOutputContentWsDone!); + responseShellCallOutputContentWsDone?.Invoke(__value23); } - else if (IsResponseInWsProgress) + else if (ResponseInWsProgress is { } __value24) { - responseInWsProgress?.Invoke(ResponseInWsProgress!); + responseInWsProgress?.Invoke(__value24); } - else if (IsResponseWsFailed) + else if (ResponseWsFailed is { } __value25) { - responseWsFailed?.Invoke(ResponseWsFailed!); + responseWsFailed?.Invoke(__value25); } - else if (IsResponseWsIncomplete) + else if (ResponseWsIncomplete is { } __value26) { - responseWsIncomplete?.Invoke(ResponseWsIncomplete!); + responseWsIncomplete?.Invoke(__value26); } - else if (IsResponseOutputItemWsAdded) + else if (ResponseOutputItemWsAdded is { } __value27) { - responseOutputItemWsAdded?.Invoke(ResponseOutputItemWsAdded!); + responseOutputItemWsAdded?.Invoke(__value27); } - else if (IsResponseOutputItemWsDone) + else if (ResponseOutputItemWsDone is { } __value28) { - responseOutputItemWsDone?.Invoke(ResponseOutputItemWsDone!); + responseOutputItemWsDone?.Invoke(__value28); } - else if (IsResponseReasoningSummaryPartWsAdded) + else if (ResponseReasoningSummaryPartWsAdded is { } __value29) { - responseReasoningSummaryPartWsAdded?.Invoke(ResponseReasoningSummaryPartWsAdded!); + responseReasoningSummaryPartWsAdded?.Invoke(__value29); } - else if (IsResponseReasoningSummaryPartWsDone) + else if (ResponseReasoningSummaryPartWsDone is { } __value30) { - responseReasoningSummaryPartWsDone?.Invoke(ResponseReasoningSummaryPartWsDone!); + responseReasoningSummaryPartWsDone?.Invoke(__value30); } - else if (IsResponseReasoningSummaryTextWsDelta) + else if (ResponseReasoningSummaryTextWsDelta is { } __value31) { - responseReasoningSummaryTextWsDelta?.Invoke(ResponseReasoningSummaryTextWsDelta!); + responseReasoningSummaryTextWsDelta?.Invoke(__value31); } - else if (IsResponseReasoningSummaryTextWsDone) + else if (ResponseReasoningSummaryTextWsDone is { } __value32) { - responseReasoningSummaryTextWsDone?.Invoke(ResponseReasoningSummaryTextWsDone!); + responseReasoningSummaryTextWsDone?.Invoke(__value32); } - else if (IsResponseReasoningTextWsDelta) + else if (ResponseReasoningTextWsDelta is { } __value33) { - responseReasoningTextWsDelta?.Invoke(ResponseReasoningTextWsDelta!); + responseReasoningTextWsDelta?.Invoke(__value33); } - else if (IsResponseReasoningTextWsDone) + else if (ResponseReasoningTextWsDone is { } __value34) { - responseReasoningTextWsDone?.Invoke(ResponseReasoningTextWsDone!); + responseReasoningTextWsDone?.Invoke(__value34); } - else if (IsResponseRefusalWsDelta) + else if (ResponseRefusalWsDelta is { } __value35) { - responseRefusalWsDelta?.Invoke(ResponseRefusalWsDelta!); + responseRefusalWsDelta?.Invoke(__value35); } - else if (IsResponseRefusalWsDone) + else if (ResponseRefusalWsDone is { } __value36) { - responseRefusalWsDone?.Invoke(ResponseRefusalWsDone!); + responseRefusalWsDone?.Invoke(__value36); } - else if (IsResponseTextWsDelta) + else if (ResponseTextWsDelta is { } __value37) { - responseTextWsDelta?.Invoke(ResponseTextWsDelta!); + responseTextWsDelta?.Invoke(__value37); } - else if (IsResponseTextWsDone) + else if (ResponseTextWsDone is { } __value38) { - responseTextWsDone?.Invoke(ResponseTextWsDone!); + responseTextWsDone?.Invoke(__value38); } - else if (IsResponseWebSearchCallWsCompleted) + else if (ResponseWebSearchCallWsCompleted is { } __value39) { - responseWebSearchCallWsCompleted?.Invoke(ResponseWebSearchCallWsCompleted!); + responseWebSearchCallWsCompleted?.Invoke(__value39); } - else if (IsResponseWebSearchCallInWsProgress) + else if (ResponseWebSearchCallInWsProgress is { } __value40) { - responseWebSearchCallInWsProgress?.Invoke(ResponseWebSearchCallInWsProgress!); + responseWebSearchCallInWsProgress?.Invoke(__value40); } - else if (IsResponseWebSearchCallWsSearching) + else if (ResponseWebSearchCallWsSearching is { } __value41) { - responseWebSearchCallWsSearching?.Invoke(ResponseWebSearchCallWsSearching!); + responseWebSearchCallWsSearching?.Invoke(__value41); } - else if (IsResponseImageGenCallWsCompleted) + else if (ResponseImageGenCallWsCompleted is { } __value42) { - responseImageGenCallWsCompleted?.Invoke(ResponseImageGenCallWsCompleted!); + responseImageGenCallWsCompleted?.Invoke(__value42); } - else if (IsResponseImageGenCallWsGenerating) + else if (ResponseImageGenCallWsGenerating is { } __value43) { - responseImageGenCallWsGenerating?.Invoke(ResponseImageGenCallWsGenerating!); + responseImageGenCallWsGenerating?.Invoke(__value43); } - else if (IsResponseImageGenCallInWsProgress) + else if (ResponseImageGenCallInWsProgress is { } __value44) { - responseImageGenCallInWsProgress?.Invoke(ResponseImageGenCallInWsProgress!); + responseImageGenCallInWsProgress?.Invoke(__value44); } - else if (IsResponseImageGenCallPartialWsImage) + else if (ResponseImageGenCallPartialWsImage is { } __value45) { - responseImageGenCallPartialWsImage?.Invoke(ResponseImageGenCallPartialWsImage!); + responseImageGenCallPartialWsImage?.Invoke(__value45); } - else if (IsResponseMcpCallArgumentsWsDelta) + else if (ResponseMcpCallArgumentsWsDelta is { } __value46) { - responseMcpCallArgumentsWsDelta?.Invoke(ResponseMcpCallArgumentsWsDelta!); + responseMcpCallArgumentsWsDelta?.Invoke(__value46); } - else if (IsResponseMcpCallArgumentsWsDone) + else if (ResponseMcpCallArgumentsWsDone is { } __value47) { - responseMcpCallArgumentsWsDone?.Invoke(ResponseMcpCallArgumentsWsDone!); + responseMcpCallArgumentsWsDone?.Invoke(__value47); } - else if (IsResponseMcpCallWsCompleted) + else if (ResponseMcpCallWsCompleted is { } __value48) { - responseMcpCallWsCompleted?.Invoke(ResponseMcpCallWsCompleted!); + responseMcpCallWsCompleted?.Invoke(__value48); } - else if (IsResponseMcpCallWsFailed) + else if (ResponseMcpCallWsFailed is { } __value49) { - responseMcpCallWsFailed?.Invoke(ResponseMcpCallWsFailed!); + responseMcpCallWsFailed?.Invoke(__value49); } - else if (IsResponseMcpCallInWsProgress) + else if (ResponseMcpCallInWsProgress is { } __value50) { - responseMcpCallInWsProgress?.Invoke(ResponseMcpCallInWsProgress!); + responseMcpCallInWsProgress?.Invoke(__value50); } - else if (IsResponseMcpListToolsWsCompleted) + else if (ResponseMcpListToolsWsCompleted is { } __value51) { - responseMcpListToolsWsCompleted?.Invoke(ResponseMcpListToolsWsCompleted!); + responseMcpListToolsWsCompleted?.Invoke(__value51); } - else if (IsResponseMcpListToolsWsFailed) + else if (ResponseMcpListToolsWsFailed is { } __value52) { - responseMcpListToolsWsFailed?.Invoke(ResponseMcpListToolsWsFailed!); + responseMcpListToolsWsFailed?.Invoke(__value52); } - else if (IsResponseMcpListToolsInWsProgress) + else if (ResponseMcpListToolsInWsProgress is { } __value53) { - responseMcpListToolsInWsProgress?.Invoke(ResponseMcpListToolsInWsProgress!); + responseMcpListToolsInWsProgress?.Invoke(__value53); } - else if (IsResponseOutputTextAnnotationWsAdded) + else if (ResponseOutputTextAnnotationWsAdded is { } __value54) { - responseOutputTextAnnotationWsAdded?.Invoke(ResponseOutputTextAnnotationWsAdded!); + responseOutputTextAnnotationWsAdded?.Invoke(__value54); } - else if (IsResponseWsQueued) + else if (ResponseWsQueued is { } __value55) { - responseWsQueued?.Invoke(ResponseWsQueued!); + responseWsQueued?.Invoke(__value55); } - else if (IsResponseCustomToolCallInputWsDelta) + else if (ResponseCustomToolCallInputWsDelta is { } __value56) { - responseCustomToolCallInputWsDelta?.Invoke(ResponseCustomToolCallInputWsDelta!); + responseCustomToolCallInputWsDelta?.Invoke(__value56); } - else if (IsResponseCustomToolCallInputWsDone) + else if (ResponseCustomToolCallInputWsDone is { } __value57) { - responseCustomToolCallInputWsDone?.Invoke(ResponseCustomToolCallInputWsDone!); + responseCustomToolCallInputWsDone?.Invoke(__value57); } - else if (IsError) + else if (Error is { } __value58) { - error?.Invoke(Error!); + error?.Invoke(__value58); } - else if (IsResponseSteerAccepted) + else if (ResponseSteerAccepted is { } __value59) { - responseSteerAccepted?.Invoke(ResponseSteerAccepted!); + responseSteerAccepted?.Invoke(__value59); } - else if (IsResponseSteerPending) + else if (ResponseSteerPending is { } __value60) { - responseSteerPending?.Invoke(ResponseSteerPending!); + responseSteerPending?.Invoke(__value60); } - else if (IsResponseSteerFailed) + else if (ResponseSteerFailed is { } __value61) { - responseSteerFailed?.Invoke(ResponseSteerFailed!); + responseSteerFailed?.Invoke(__value61); } } @@ -4816,253 +4816,253 @@ public void Switch( Validate(); } - if (IsResponseAudioWsDelta) + if (ResponseAudioWsDelta is { } __value0) { - responseAudioWsDelta?.Invoke(ResponseAudioWsDelta!); + responseAudioWsDelta?.Invoke(__value0); } - else if (IsResponseAudioWsDone) + else if (ResponseAudioWsDone is { } __value1) { - responseAudioWsDone?.Invoke(ResponseAudioWsDone!); + responseAudioWsDone?.Invoke(__value1); } - else if (IsResponseAudioTranscriptWsDelta) + else if (ResponseAudioTranscriptWsDelta is { } __value2) { - responseAudioTranscriptWsDelta?.Invoke(ResponseAudioTranscriptWsDelta!); + responseAudioTranscriptWsDelta?.Invoke(__value2); } - else if (IsResponseAudioTranscriptWsDone) + else if (ResponseAudioTranscriptWsDone is { } __value3) { - responseAudioTranscriptWsDone?.Invoke(ResponseAudioTranscriptWsDone!); + responseAudioTranscriptWsDone?.Invoke(__value3); } - else if (IsResponseCodeInterpreterCallCodeWsDelta) + else if (ResponseCodeInterpreterCallCodeWsDelta is { } __value4) { - responseCodeInterpreterCallCodeWsDelta?.Invoke(ResponseCodeInterpreterCallCodeWsDelta!); + responseCodeInterpreterCallCodeWsDelta?.Invoke(__value4); } - else if (IsResponseCodeInterpreterCallCodeWsDone) + else if (ResponseCodeInterpreterCallCodeWsDone is { } __value5) { - responseCodeInterpreterCallCodeWsDone?.Invoke(ResponseCodeInterpreterCallCodeWsDone!); + responseCodeInterpreterCallCodeWsDone?.Invoke(__value5); } - else if (IsResponseCodeInterpreterCallWsCompleted) + else if (ResponseCodeInterpreterCallWsCompleted is { } __value6) { - responseCodeInterpreterCallWsCompleted?.Invoke(ResponseCodeInterpreterCallWsCompleted!); + responseCodeInterpreterCallWsCompleted?.Invoke(__value6); } - else if (IsResponseCodeInterpreterCallInWsProgress) + else if (ResponseCodeInterpreterCallInWsProgress is { } __value7) { - responseCodeInterpreterCallInWsProgress?.Invoke(ResponseCodeInterpreterCallInWsProgress!); + responseCodeInterpreterCallInWsProgress?.Invoke(__value7); } - else if (IsResponseCodeInterpreterCallWsInterpreting) + else if (ResponseCodeInterpreterCallWsInterpreting is { } __value8) { - responseCodeInterpreterCallWsInterpreting?.Invoke(ResponseCodeInterpreterCallWsInterpreting!); + responseCodeInterpreterCallWsInterpreting?.Invoke(__value8); } - else if (IsResponseCompactionWsCompacting) + else if (ResponseCompactionWsCompacting is { } __value9) { - responseCompactionWsCompacting?.Invoke(ResponseCompactionWsCompacting!); + responseCompactionWsCompacting?.Invoke(__value9); } - else if (IsResponseWsCompleted) + else if (ResponseWsCompleted is { } __value10) { - responseWsCompleted?.Invoke(ResponseWsCompleted!); + responseWsCompleted?.Invoke(__value10); } - else if (IsResponseContentPartWsAdded) + else if (ResponseContentPartWsAdded is { } __value11) { - responseContentPartWsAdded?.Invoke(ResponseContentPartWsAdded!); + responseContentPartWsAdded?.Invoke(__value11); } - else if (IsResponseContentPartWsDone) + else if (ResponseContentPartWsDone is { } __value12) { - responseContentPartWsDone?.Invoke(ResponseContentPartWsDone!); + responseContentPartWsDone?.Invoke(__value12); } - else if (IsResponseWsCreated) + else if (ResponseWsCreated is { } __value13) { - responseWsCreated?.Invoke(ResponseWsCreated!); + responseWsCreated?.Invoke(__value13); } - else if (IsResponseFileSearchCallWsCompleted) + else if (ResponseFileSearchCallWsCompleted is { } __value14) { - responseFileSearchCallWsCompleted?.Invoke(ResponseFileSearchCallWsCompleted!); + responseFileSearchCallWsCompleted?.Invoke(__value14); } - else if (IsResponseFileSearchCallInWsProgress) + else if (ResponseFileSearchCallInWsProgress is { } __value15) { - responseFileSearchCallInWsProgress?.Invoke(ResponseFileSearchCallInWsProgress!); + responseFileSearchCallInWsProgress?.Invoke(__value15); } - else if (IsResponseFileSearchCallWsSearching) + else if (ResponseFileSearchCallWsSearching is { } __value16) { - responseFileSearchCallWsSearching?.Invoke(ResponseFileSearchCallWsSearching!); + responseFileSearchCallWsSearching?.Invoke(__value16); } - else if (IsResponseFunctionCallArgumentsWsDelta) + else if (ResponseFunctionCallArgumentsWsDelta is { } __value17) { - responseFunctionCallArgumentsWsDelta?.Invoke(ResponseFunctionCallArgumentsWsDelta!); + responseFunctionCallArgumentsWsDelta?.Invoke(__value17); } - else if (IsResponseFunctionCallArgumentsWsDone) + else if (ResponseFunctionCallArgumentsWsDone is { } __value18) { - responseFunctionCallArgumentsWsDone?.Invoke(ResponseFunctionCallArgumentsWsDone!); + responseFunctionCallArgumentsWsDone?.Invoke(__value18); } - else if (IsResponseShellCallCommandWsAdded) + else if (ResponseShellCallCommandWsAdded is { } __value19) { - responseShellCallCommandWsAdded?.Invoke(ResponseShellCallCommandWsAdded!); + responseShellCallCommandWsAdded?.Invoke(__value19); } - else if (IsResponseShellCallCommandWsDelta) + else if (ResponseShellCallCommandWsDelta is { } __value20) { - responseShellCallCommandWsDelta?.Invoke(ResponseShellCallCommandWsDelta!); + responseShellCallCommandWsDelta?.Invoke(__value20); } - else if (IsResponseShellCallCommandWsDone) + else if (ResponseShellCallCommandWsDone is { } __value21) { - responseShellCallCommandWsDone?.Invoke(ResponseShellCallCommandWsDone!); + responseShellCallCommandWsDone?.Invoke(__value21); } - else if (IsResponseShellCallOutputContentWsDelta) + else if (ResponseShellCallOutputContentWsDelta is { } __value22) { - responseShellCallOutputContentWsDelta?.Invoke(ResponseShellCallOutputContentWsDelta!); + responseShellCallOutputContentWsDelta?.Invoke(__value22); } - else if (IsResponseShellCallOutputContentWsDone) + else if (ResponseShellCallOutputContentWsDone is { } __value23) { - responseShellCallOutputContentWsDone?.Invoke(ResponseShellCallOutputContentWsDone!); + responseShellCallOutputContentWsDone?.Invoke(__value23); } - else if (IsResponseInWsProgress) + else if (ResponseInWsProgress is { } __value24) { - responseInWsProgress?.Invoke(ResponseInWsProgress!); + responseInWsProgress?.Invoke(__value24); } - else if (IsResponseWsFailed) + else if (ResponseWsFailed is { } __value25) { - responseWsFailed?.Invoke(ResponseWsFailed!); + responseWsFailed?.Invoke(__value25); } - else if (IsResponseWsIncomplete) + else if (ResponseWsIncomplete is { } __value26) { - responseWsIncomplete?.Invoke(ResponseWsIncomplete!); + responseWsIncomplete?.Invoke(__value26); } - else if (IsResponseOutputItemWsAdded) + else if (ResponseOutputItemWsAdded is { } __value27) { - responseOutputItemWsAdded?.Invoke(ResponseOutputItemWsAdded!); + responseOutputItemWsAdded?.Invoke(__value27); } - else if (IsResponseOutputItemWsDone) + else if (ResponseOutputItemWsDone is { } __value28) { - responseOutputItemWsDone?.Invoke(ResponseOutputItemWsDone!); + responseOutputItemWsDone?.Invoke(__value28); } - else if (IsResponseReasoningSummaryPartWsAdded) + else if (ResponseReasoningSummaryPartWsAdded is { } __value29) { - responseReasoningSummaryPartWsAdded?.Invoke(ResponseReasoningSummaryPartWsAdded!); + responseReasoningSummaryPartWsAdded?.Invoke(__value29); } - else if (IsResponseReasoningSummaryPartWsDone) + else if (ResponseReasoningSummaryPartWsDone is { } __value30) { - responseReasoningSummaryPartWsDone?.Invoke(ResponseReasoningSummaryPartWsDone!); + responseReasoningSummaryPartWsDone?.Invoke(__value30); } - else if (IsResponseReasoningSummaryTextWsDelta) + else if (ResponseReasoningSummaryTextWsDelta is { } __value31) { - responseReasoningSummaryTextWsDelta?.Invoke(ResponseReasoningSummaryTextWsDelta!); + responseReasoningSummaryTextWsDelta?.Invoke(__value31); } - else if (IsResponseReasoningSummaryTextWsDone) + else if (ResponseReasoningSummaryTextWsDone is { } __value32) { - responseReasoningSummaryTextWsDone?.Invoke(ResponseReasoningSummaryTextWsDone!); + responseReasoningSummaryTextWsDone?.Invoke(__value32); } - else if (IsResponseReasoningTextWsDelta) + else if (ResponseReasoningTextWsDelta is { } __value33) { - responseReasoningTextWsDelta?.Invoke(ResponseReasoningTextWsDelta!); + responseReasoningTextWsDelta?.Invoke(__value33); } - else if (IsResponseReasoningTextWsDone) + else if (ResponseReasoningTextWsDone is { } __value34) { - responseReasoningTextWsDone?.Invoke(ResponseReasoningTextWsDone!); + responseReasoningTextWsDone?.Invoke(__value34); } - else if (IsResponseRefusalWsDelta) + else if (ResponseRefusalWsDelta is { } __value35) { - responseRefusalWsDelta?.Invoke(ResponseRefusalWsDelta!); + responseRefusalWsDelta?.Invoke(__value35); } - else if (IsResponseRefusalWsDone) + else if (ResponseRefusalWsDone is { } __value36) { - responseRefusalWsDone?.Invoke(ResponseRefusalWsDone!); + responseRefusalWsDone?.Invoke(__value36); } - else if (IsResponseTextWsDelta) + else if (ResponseTextWsDelta is { } __value37) { - responseTextWsDelta?.Invoke(ResponseTextWsDelta!); + responseTextWsDelta?.Invoke(__value37); } - else if (IsResponseTextWsDone) + else if (ResponseTextWsDone is { } __value38) { - responseTextWsDone?.Invoke(ResponseTextWsDone!); + responseTextWsDone?.Invoke(__value38); } - else if (IsResponseWebSearchCallWsCompleted) + else if (ResponseWebSearchCallWsCompleted is { } __value39) { - responseWebSearchCallWsCompleted?.Invoke(ResponseWebSearchCallWsCompleted!); + responseWebSearchCallWsCompleted?.Invoke(__value39); } - else if (IsResponseWebSearchCallInWsProgress) + else if (ResponseWebSearchCallInWsProgress is { } __value40) { - responseWebSearchCallInWsProgress?.Invoke(ResponseWebSearchCallInWsProgress!); + responseWebSearchCallInWsProgress?.Invoke(__value40); } - else if (IsResponseWebSearchCallWsSearching) + else if (ResponseWebSearchCallWsSearching is { } __value41) { - responseWebSearchCallWsSearching?.Invoke(ResponseWebSearchCallWsSearching!); + responseWebSearchCallWsSearching?.Invoke(__value41); } - else if (IsResponseImageGenCallWsCompleted) + else if (ResponseImageGenCallWsCompleted is { } __value42) { - responseImageGenCallWsCompleted?.Invoke(ResponseImageGenCallWsCompleted!); + responseImageGenCallWsCompleted?.Invoke(__value42); } - else if (IsResponseImageGenCallWsGenerating) + else if (ResponseImageGenCallWsGenerating is { } __value43) { - responseImageGenCallWsGenerating?.Invoke(ResponseImageGenCallWsGenerating!); + responseImageGenCallWsGenerating?.Invoke(__value43); } - else if (IsResponseImageGenCallInWsProgress) + else if (ResponseImageGenCallInWsProgress is { } __value44) { - responseImageGenCallInWsProgress?.Invoke(ResponseImageGenCallInWsProgress!); + responseImageGenCallInWsProgress?.Invoke(__value44); } - else if (IsResponseImageGenCallPartialWsImage) + else if (ResponseImageGenCallPartialWsImage is { } __value45) { - responseImageGenCallPartialWsImage?.Invoke(ResponseImageGenCallPartialWsImage!); + responseImageGenCallPartialWsImage?.Invoke(__value45); } - else if (IsResponseMcpCallArgumentsWsDelta) + else if (ResponseMcpCallArgumentsWsDelta is { } __value46) { - responseMcpCallArgumentsWsDelta?.Invoke(ResponseMcpCallArgumentsWsDelta!); + responseMcpCallArgumentsWsDelta?.Invoke(__value46); } - else if (IsResponseMcpCallArgumentsWsDone) + else if (ResponseMcpCallArgumentsWsDone is { } __value47) { - responseMcpCallArgumentsWsDone?.Invoke(ResponseMcpCallArgumentsWsDone!); + responseMcpCallArgumentsWsDone?.Invoke(__value47); } - else if (IsResponseMcpCallWsCompleted) + else if (ResponseMcpCallWsCompleted is { } __value48) { - responseMcpCallWsCompleted?.Invoke(ResponseMcpCallWsCompleted!); + responseMcpCallWsCompleted?.Invoke(__value48); } - else if (IsResponseMcpCallWsFailed) + else if (ResponseMcpCallWsFailed is { } __value49) { - responseMcpCallWsFailed?.Invoke(ResponseMcpCallWsFailed!); + responseMcpCallWsFailed?.Invoke(__value49); } - else if (IsResponseMcpCallInWsProgress) + else if (ResponseMcpCallInWsProgress is { } __value50) { - responseMcpCallInWsProgress?.Invoke(ResponseMcpCallInWsProgress!); + responseMcpCallInWsProgress?.Invoke(__value50); } - else if (IsResponseMcpListToolsWsCompleted) + else if (ResponseMcpListToolsWsCompleted is { } __value51) { - responseMcpListToolsWsCompleted?.Invoke(ResponseMcpListToolsWsCompleted!); + responseMcpListToolsWsCompleted?.Invoke(__value51); } - else if (IsResponseMcpListToolsWsFailed) + else if (ResponseMcpListToolsWsFailed is { } __value52) { - responseMcpListToolsWsFailed?.Invoke(ResponseMcpListToolsWsFailed!); + responseMcpListToolsWsFailed?.Invoke(__value52); } - else if (IsResponseMcpListToolsInWsProgress) + else if (ResponseMcpListToolsInWsProgress is { } __value53) { - responseMcpListToolsInWsProgress?.Invoke(ResponseMcpListToolsInWsProgress!); + responseMcpListToolsInWsProgress?.Invoke(__value53); } - else if (IsResponseOutputTextAnnotationWsAdded) + else if (ResponseOutputTextAnnotationWsAdded is { } __value54) { - responseOutputTextAnnotationWsAdded?.Invoke(ResponseOutputTextAnnotationWsAdded!); + responseOutputTextAnnotationWsAdded?.Invoke(__value54); } - else if (IsResponseWsQueued) + else if (ResponseWsQueued is { } __value55) { - responseWsQueued?.Invoke(ResponseWsQueued!); + responseWsQueued?.Invoke(__value55); } - else if (IsResponseCustomToolCallInputWsDelta) + else if (ResponseCustomToolCallInputWsDelta is { } __value56) { - responseCustomToolCallInputWsDelta?.Invoke(ResponseCustomToolCallInputWsDelta!); + responseCustomToolCallInputWsDelta?.Invoke(__value56); } - else if (IsResponseCustomToolCallInputWsDone) + else if (ResponseCustomToolCallInputWsDone is { } __value57) { - responseCustomToolCallInputWsDone?.Invoke(ResponseCustomToolCallInputWsDone!); + responseCustomToolCallInputWsDone?.Invoke(__value57); } - else if (IsError) + else if (Error is { } __value58) { - error?.Invoke(Error!); + error?.Invoke(__value58); } - else if (IsResponseSteerAccepted) + else if (ResponseSteerAccepted is { } __value59) { - responseSteerAccepted?.Invoke(ResponseSteerAccepted!); + responseSteerAccepted?.Invoke(__value59); } - else if (IsResponseSteerPending) + else if (ResponseSteerPending is { } __value60) { - responseSteerPending?.Invoke(ResponseSteerPending!); + responseSteerPending?.Invoke(__value60); } - else if (IsResponseSteerFailed) + else if (ResponseSteerFailed is { } __value61) { - responseSteerFailed?.Invoke(ResponseSteerFailed!); + responseSteerFailed?.Invoke(__value61); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesWebSocketStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesWebSocketStreamEvent.g.cs index c0a89080b..9a18e6198 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesWebSocketStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesWebSocketStreamEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickResponsesWebSocketStreamEventVariant1( /// /// /// - public global::tryAGI.OpenAI.AnyOf PickResponsesWebSocketStreamEventVariant1() => IsResponsesWebSocketStreamEventVariant1 - ? ResponsesWebSocketStreamEventVariant1!.Value + public global::tryAGI.OpenAI.AnyOf PickResponsesWebSocketStreamEventVariant1() => ResponsesWebSocketStreamEventVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesWebSocketStreamEventVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickResponsesWebSocketStreamEventVariant2( /// /// /// - public global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2 PickResponsesWebSocketStreamEventVariant2() => IsResponsesWebSocketStreamEventVariant2 - ? ResponsesWebSocketStreamEventVariant2! + public global::tryAGI.OpenAI.ResponsesWebSocketStreamEventVariant2 PickResponsesWebSocketStreamEventVariant2() => ResponsesWebSocketStreamEventVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResponsesWebSocketStreamEventVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsResponsesWebSocketStreamEventVariant1 && responsesWebSocketStreamEventVariant1 != null) + if (ResponsesWebSocketStreamEventVariant1 is { } __value0 && responsesWebSocketStreamEventVariant1 != null) { - return responsesWebSocketStreamEventVariant1(ResponsesWebSocketStreamEventVariant1!); + return responsesWebSocketStreamEventVariant1(__value0); } - else if (IsResponsesWebSocketStreamEventVariant2 && responsesWebSocketStreamEventVariant2 != null) + else if (ResponsesWebSocketStreamEventVariant2 is { } __value1 && responsesWebSocketStreamEventVariant2 != null) { - return responsesWebSocketStreamEventVariant2(ResponsesWebSocketStreamEventVariant2!); + return responsesWebSocketStreamEventVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsResponsesWebSocketStreamEventVariant1) + if (ResponsesWebSocketStreamEventVariant1 is { } __value0) { - responsesWebSocketStreamEventVariant1?.Invoke(ResponsesWebSocketStreamEventVariant1!); + responsesWebSocketStreamEventVariant1?.Invoke(__value0); } - else if (IsResponsesWebSocketStreamEventVariant2) + else if (ResponsesWebSocketStreamEventVariant2 is { } __value1) { - responsesWebSocketStreamEventVariant2?.Invoke(ResponsesWebSocketStreamEventVariant2!); + responsesWebSocketStreamEventVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsResponsesWebSocketStreamEventVariant1) + if (ResponsesWebSocketStreamEventVariant1 is { } __value0) { - responsesWebSocketStreamEventVariant1?.Invoke(ResponsesWebSocketStreamEventVariant1!); + responsesWebSocketStreamEventVariant1?.Invoke(__value0); } - else if (IsResponsesWebSocketStreamEventVariant2) + else if (ResponsesWebSocketStreamEventVariant2 is { } __value1) { - responsesWebSocketStreamEventVariant2?.Invoke(ResponsesWebSocketStreamEventVariant2!); + responsesWebSocketStreamEventVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs index 396374f12..79a91e0b1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickOrganizationUsageCompletionsResult( /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult PickOrganizationUsageCompletionsResult() => IsOrganizationUsageCompletionsResult - ? OrganizationUsageCompletionsResult! + public global::tryAGI.OpenAI.UsageCompletionsResult PickOrganizationUsageCompletionsResult() => OrganizationUsageCompletionsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageCompletionsResult' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOrganizationUsageEmbeddingsResult( /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult PickOrganizationUsageEmbeddingsResult() => IsOrganizationUsageEmbeddingsResult - ? OrganizationUsageEmbeddingsResult! + public global::tryAGI.OpenAI.UsageEmbeddingsResult PickOrganizationUsageEmbeddingsResult() => OrganizationUsageEmbeddingsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageEmbeddingsResult' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickOrganizationUsageModerationsResult( /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult PickOrganizationUsageModerationsResult() => IsOrganizationUsageModerationsResult - ? OrganizationUsageModerationsResult! + public global::tryAGI.OpenAI.UsageModerationsResult PickOrganizationUsageModerationsResult() => OrganizationUsageModerationsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageModerationsResult' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickOrganizationUsageImagesResult( /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult PickOrganizationUsageImagesResult() => IsOrganizationUsageImagesResult - ? OrganizationUsageImagesResult! + public global::tryAGI.OpenAI.UsageImagesResult PickOrganizationUsageImagesResult() => OrganizationUsageImagesResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageImagesResult' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickOrganizationUsageAudioSpeechesResult( /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult PickOrganizationUsageAudioSpeechesResult() => IsOrganizationUsageAudioSpeechesResult - ? OrganizationUsageAudioSpeechesResult! + public global::tryAGI.OpenAI.UsageAudioSpeechesResult PickOrganizationUsageAudioSpeechesResult() => OrganizationUsageAudioSpeechesResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageAudioSpeechesResult' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickOrganizationUsageAudioTranscriptionsResult( /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult PickOrganizationUsageAudioTranscriptionsResult() => IsOrganizationUsageAudioTranscriptionsResult - ? OrganizationUsageAudioTranscriptionsResult! + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult PickOrganizationUsageAudioTranscriptionsResult() => OrganizationUsageAudioTranscriptionsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageAudioTranscriptionsResult' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickOrganizationUsageVectorStoresResult( /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult PickOrganizationUsageVectorStoresResult() => IsOrganizationUsageVectorStoresResult - ? OrganizationUsageVectorStoresResult! + public global::tryAGI.OpenAI.UsageVectorStoresResult PickOrganizationUsageVectorStoresResult() => OrganizationUsageVectorStoresResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageVectorStoresResult' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickOrganizationUsageCodeInterpreterSessionsResult( /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult PickOrganizationUsageCodeInterpreterSessionsResult() => IsOrganizationUsageCodeInterpreterSessionsResult - ? OrganizationUsageCodeInterpreterSessionsResult! + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult PickOrganizationUsageCodeInterpreterSessionsResult() => OrganizationUsageCodeInterpreterSessionsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageCodeInterpreterSessionsResult' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickOrganizationUsageFileSearchesResult( /// /// /// - public global::tryAGI.OpenAI.UsageFileSearchCallsResult PickOrganizationUsageFileSearchesResult() => IsOrganizationUsageFileSearchesResult - ? OrganizationUsageFileSearchesResult! + public global::tryAGI.OpenAI.UsageFileSearchCallsResult PickOrganizationUsageFileSearchesResult() => OrganizationUsageFileSearchesResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageFileSearchesResult' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickOrganizationUsageWebSearchesResult( /// /// /// - public global::tryAGI.OpenAI.UsageWebSearchCallsResult PickOrganizationUsageWebSearchesResult() => IsOrganizationUsageWebSearchesResult - ? OrganizationUsageWebSearchesResult! + public global::tryAGI.OpenAI.UsageWebSearchCallsResult PickOrganizationUsageWebSearchesResult() => OrganizationUsageWebSearchesResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationUsageWebSearchesResult' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickOrganizationCostsResult( /// /// /// - public global::tryAGI.OpenAI.CostsResult PickOrganizationCostsResult() => IsOrganizationCostsResult - ? OrganizationCostsResult! + public global::tryAGI.OpenAI.CostsResult PickOrganizationCostsResult() => OrganizationCostsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OrganizationCostsResult' but the value was {ToString()}."); /// /// @@ -770,49 +770,49 @@ public bool Validate() Validate(); } - if (IsOrganizationUsageCompletionsResult && organizationUsageCompletionsResult != null) + if (OrganizationUsageCompletionsResult is { } __value0 && organizationUsageCompletionsResult != null) { - return organizationUsageCompletionsResult(OrganizationUsageCompletionsResult!); + return organizationUsageCompletionsResult(__value0); } - else if (IsOrganizationUsageEmbeddingsResult && organizationUsageEmbeddingsResult != null) + else if (OrganizationUsageEmbeddingsResult is { } __value1 && organizationUsageEmbeddingsResult != null) { - return organizationUsageEmbeddingsResult(OrganizationUsageEmbeddingsResult!); + return organizationUsageEmbeddingsResult(__value1); } - else if (IsOrganizationUsageModerationsResult && organizationUsageModerationsResult != null) + else if (OrganizationUsageModerationsResult is { } __value2 && organizationUsageModerationsResult != null) { - return organizationUsageModerationsResult(OrganizationUsageModerationsResult!); + return organizationUsageModerationsResult(__value2); } - else if (IsOrganizationUsageImagesResult && organizationUsageImagesResult != null) + else if (OrganizationUsageImagesResult is { } __value3 && organizationUsageImagesResult != null) { - return organizationUsageImagesResult(OrganizationUsageImagesResult!); + return organizationUsageImagesResult(__value3); } - else if (IsOrganizationUsageAudioSpeechesResult && organizationUsageAudioSpeechesResult != null) + else if (OrganizationUsageAudioSpeechesResult is { } __value4 && organizationUsageAudioSpeechesResult != null) { - return organizationUsageAudioSpeechesResult(OrganizationUsageAudioSpeechesResult!); + return organizationUsageAudioSpeechesResult(__value4); } - else if (IsOrganizationUsageAudioTranscriptionsResult && organizationUsageAudioTranscriptionsResult != null) + else if (OrganizationUsageAudioTranscriptionsResult is { } __value5 && organizationUsageAudioTranscriptionsResult != null) { - return organizationUsageAudioTranscriptionsResult(OrganizationUsageAudioTranscriptionsResult!); + return organizationUsageAudioTranscriptionsResult(__value5); } - else if (IsOrganizationUsageVectorStoresResult && organizationUsageVectorStoresResult != null) + else if (OrganizationUsageVectorStoresResult is { } __value6 && organizationUsageVectorStoresResult != null) { - return organizationUsageVectorStoresResult(OrganizationUsageVectorStoresResult!); + return organizationUsageVectorStoresResult(__value6); } - else if (IsOrganizationUsageCodeInterpreterSessionsResult && organizationUsageCodeInterpreterSessionsResult != null) + else if (OrganizationUsageCodeInterpreterSessionsResult is { } __value7 && organizationUsageCodeInterpreterSessionsResult != null) { - return organizationUsageCodeInterpreterSessionsResult(OrganizationUsageCodeInterpreterSessionsResult!); + return organizationUsageCodeInterpreterSessionsResult(__value7); } - else if (IsOrganizationUsageFileSearchesResult && organizationUsageFileSearchesResult != null) + else if (OrganizationUsageFileSearchesResult is { } __value8 && organizationUsageFileSearchesResult != null) { - return organizationUsageFileSearchesResult(OrganizationUsageFileSearchesResult!); + return organizationUsageFileSearchesResult(__value8); } - else if (IsOrganizationUsageWebSearchesResult && organizationUsageWebSearchesResult != null) + else if (OrganizationUsageWebSearchesResult is { } __value9 && organizationUsageWebSearchesResult != null) { - return organizationUsageWebSearchesResult(OrganizationUsageWebSearchesResult!); + return organizationUsageWebSearchesResult(__value9); } - else if (IsOrganizationCostsResult && organizationCostsResult != null) + else if (OrganizationCostsResult is { } __value10 && organizationCostsResult != null) { - return organizationCostsResult(OrganizationCostsResult!); + return organizationCostsResult(__value10); } return default(TResult); @@ -850,49 +850,49 @@ public void Match( Validate(); } - if (IsOrganizationUsageCompletionsResult) + if (OrganizationUsageCompletionsResult is { } __value0) { - organizationUsageCompletionsResult?.Invoke(OrganizationUsageCompletionsResult!); + organizationUsageCompletionsResult?.Invoke(__value0); } - else if (IsOrganizationUsageEmbeddingsResult) + else if (OrganizationUsageEmbeddingsResult is { } __value1) { - organizationUsageEmbeddingsResult?.Invoke(OrganizationUsageEmbeddingsResult!); + organizationUsageEmbeddingsResult?.Invoke(__value1); } - else if (IsOrganizationUsageModerationsResult) + else if (OrganizationUsageModerationsResult is { } __value2) { - organizationUsageModerationsResult?.Invoke(OrganizationUsageModerationsResult!); + organizationUsageModerationsResult?.Invoke(__value2); } - else if (IsOrganizationUsageImagesResult) + else if (OrganizationUsageImagesResult is { } __value3) { - organizationUsageImagesResult?.Invoke(OrganizationUsageImagesResult!); + organizationUsageImagesResult?.Invoke(__value3); } - else if (IsOrganizationUsageAudioSpeechesResult) + else if (OrganizationUsageAudioSpeechesResult is { } __value4) { - organizationUsageAudioSpeechesResult?.Invoke(OrganizationUsageAudioSpeechesResult!); + organizationUsageAudioSpeechesResult?.Invoke(__value4); } - else if (IsOrganizationUsageAudioTranscriptionsResult) + else if (OrganizationUsageAudioTranscriptionsResult is { } __value5) { - organizationUsageAudioTranscriptionsResult?.Invoke(OrganizationUsageAudioTranscriptionsResult!); + organizationUsageAudioTranscriptionsResult?.Invoke(__value5); } - else if (IsOrganizationUsageVectorStoresResult) + else if (OrganizationUsageVectorStoresResult is { } __value6) { - organizationUsageVectorStoresResult?.Invoke(OrganizationUsageVectorStoresResult!); + organizationUsageVectorStoresResult?.Invoke(__value6); } - else if (IsOrganizationUsageCodeInterpreterSessionsResult) + else if (OrganizationUsageCodeInterpreterSessionsResult is { } __value7) { - organizationUsageCodeInterpreterSessionsResult?.Invoke(OrganizationUsageCodeInterpreterSessionsResult!); + organizationUsageCodeInterpreterSessionsResult?.Invoke(__value7); } - else if (IsOrganizationUsageFileSearchesResult) + else if (OrganizationUsageFileSearchesResult is { } __value8) { - organizationUsageFileSearchesResult?.Invoke(OrganizationUsageFileSearchesResult!); + organizationUsageFileSearchesResult?.Invoke(__value8); } - else if (IsOrganizationUsageWebSearchesResult) + else if (OrganizationUsageWebSearchesResult is { } __value9) { - organizationUsageWebSearchesResult?.Invoke(OrganizationUsageWebSearchesResult!); + organizationUsageWebSearchesResult?.Invoke(__value9); } - else if (IsOrganizationCostsResult) + else if (OrganizationCostsResult is { } __value10) { - organizationCostsResult?.Invoke(OrganizationCostsResult!); + organizationCostsResult?.Invoke(__value10); } } @@ -918,49 +918,49 @@ public void Switch( Validate(); } - if (IsOrganizationUsageCompletionsResult) + if (OrganizationUsageCompletionsResult is { } __value0) { - organizationUsageCompletionsResult?.Invoke(OrganizationUsageCompletionsResult!); + organizationUsageCompletionsResult?.Invoke(__value0); } - else if (IsOrganizationUsageEmbeddingsResult) + else if (OrganizationUsageEmbeddingsResult is { } __value1) { - organizationUsageEmbeddingsResult?.Invoke(OrganizationUsageEmbeddingsResult!); + organizationUsageEmbeddingsResult?.Invoke(__value1); } - else if (IsOrganizationUsageModerationsResult) + else if (OrganizationUsageModerationsResult is { } __value2) { - organizationUsageModerationsResult?.Invoke(OrganizationUsageModerationsResult!); + organizationUsageModerationsResult?.Invoke(__value2); } - else if (IsOrganizationUsageImagesResult) + else if (OrganizationUsageImagesResult is { } __value3) { - organizationUsageImagesResult?.Invoke(OrganizationUsageImagesResult!); + organizationUsageImagesResult?.Invoke(__value3); } - else if (IsOrganizationUsageAudioSpeechesResult) + else if (OrganizationUsageAudioSpeechesResult is { } __value4) { - organizationUsageAudioSpeechesResult?.Invoke(OrganizationUsageAudioSpeechesResult!); + organizationUsageAudioSpeechesResult?.Invoke(__value4); } - else if (IsOrganizationUsageAudioTranscriptionsResult) + else if (OrganizationUsageAudioTranscriptionsResult is { } __value5) { - organizationUsageAudioTranscriptionsResult?.Invoke(OrganizationUsageAudioTranscriptionsResult!); + organizationUsageAudioTranscriptionsResult?.Invoke(__value5); } - else if (IsOrganizationUsageVectorStoresResult) + else if (OrganizationUsageVectorStoresResult is { } __value6) { - organizationUsageVectorStoresResult?.Invoke(OrganizationUsageVectorStoresResult!); + organizationUsageVectorStoresResult?.Invoke(__value6); } - else if (IsOrganizationUsageCodeInterpreterSessionsResult) + else if (OrganizationUsageCodeInterpreterSessionsResult is { } __value7) { - organizationUsageCodeInterpreterSessionsResult?.Invoke(OrganizationUsageCodeInterpreterSessionsResult!); + organizationUsageCodeInterpreterSessionsResult?.Invoke(__value7); } - else if (IsOrganizationUsageFileSearchesResult) + else if (OrganizationUsageFileSearchesResult is { } __value8) { - organizationUsageFileSearchesResult?.Invoke(OrganizationUsageFileSearchesResult!); + organizationUsageFileSearchesResult?.Invoke(__value8); } - else if (IsOrganizationUsageWebSearchesResult) + else if (OrganizationUsageWebSearchesResult is { } __value9) { - organizationUsageWebSearchesResult?.Invoke(OrganizationUsageWebSearchesResult!); + organizationUsageWebSearchesResult?.Invoke(__value9); } - else if (IsOrganizationCostsResult) + else if (OrganizationCostsResult is { } __value10) { - organizationCostsResult?.Invoke(OrganizationCostsResult!); + organizationCostsResult?.Invoke(__value10); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem2.g.cs index 171d52972..da0c658e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem2.g.cs @@ -47,8 +47,8 @@ public bool TryPickC2pa( /// /// /// - public global::tryAGI.OpenAI.C2PAProvenanceResult PickC2pa() => IsC2pa - ? C2pa! + public global::tryAGI.OpenAI.C2PAProvenanceResult PickC2pa() => C2pa is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'C2pa' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickSynthid( /// /// /// - public global::tryAGI.OpenAI.SynthIDProvenanceResult PickSynthid() => IsSynthid - ? Synthid! + public global::tryAGI.OpenAI.SynthIDProvenanceResult PickSynthid() => Synthid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Synthid' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsC2pa && c2pa != null) + if (C2pa is { } __value0 && c2pa != null) { - return c2pa(C2pa!); + return c2pa(__value0); } - else if (IsSynthid && synthid != null) + else if (Synthid is { } __value1 && synthid != null) { - return synthid(Synthid!); + return synthid(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsC2pa) + if (C2pa is { } __value0) { - c2pa?.Invoke(C2pa!); + c2pa?.Invoke(__value0); } - else if (IsSynthid) + else if (Synthid is { } __value1) { - synthid?.Invoke(Synthid!); + synthid?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsC2pa) + if (C2pa is { } __value0) { - c2pa?.Invoke(C2pa!); + c2pa?.Invoke(__value0); } - else if (IsSynthid) + else if (Synthid is { } __value1) { - synthid?.Invoke(Synthid!); + synthid?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateMcpOauthTokenEndpointAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateMcpOauthTokenEndpointAuthParam.g.cs index 53de4e013..7196bc07e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateMcpOauthTokenEndpointAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateMcpOauthTokenEndpointAuthParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickClientSecretBasic( /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic PickClientSecretBasic() => IsClientSecretBasic - ? ClientSecretBasic! + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretBasic PickClientSecretBasic() => ClientSecretBasic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ClientSecretBasic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickClientSecretPost( /// /// /// - public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost PickClientSecretPost() => IsClientSecretPost - ? ClientSecretPost! + public global::tryAGI.OpenAI.RotateMcpOauthTokenEndpointAuthParamClientSecretPost PickClientSecretPost() => ClientSecretPost is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ClientSecretPost' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsClientSecretBasic && clientSecretBasic != null) + if (ClientSecretBasic is { } __value0 && clientSecretBasic != null) { - return clientSecretBasic(ClientSecretBasic!); + return clientSecretBasic(__value0); } - else if (IsClientSecretPost && clientSecretPost != null) + else if (ClientSecretPost is { } __value1 && clientSecretPost != null) { - return clientSecretPost(ClientSecretPost!); + return clientSecretPost(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsClientSecretBasic) + if (ClientSecretBasic is { } __value0) { - clientSecretBasic?.Invoke(ClientSecretBasic!); + clientSecretBasic?.Invoke(__value0); } - else if (IsClientSecretPost) + else if (ClientSecretPost is { } __value1) { - clientSecretPost?.Invoke(ClientSecretPost!); + clientSecretPost?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsClientSecretBasic) + if (ClientSecretBasic is { } __value0) { - clientSecretBasic?.Invoke(ClientSecretBasic!); + clientSecretBasic?.Invoke(__value0); } - else if (IsClientSecretPost) + else if (ClientSecretPost is { } __value1) { - clientSecretPost?.Invoke(ClientSecretPost!); + clientSecretPost?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateVaultCredentialAuthParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateVaultCredentialAuthParam.g.cs index 4471a2a5d..d90e1dc0d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateVaultCredentialAuthParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RotateVaultCredentialAuthParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickMcpOauth( /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth PickMcpOauth() => IsMcpOauth - ? McpOauth! + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamMcpOauth PickMcpOauth() => McpOauth is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpOauth' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStaticBearer( /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer PickStaticBearer() => IsStaticBearer - ? StaticBearer! + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamStaticBearer PickStaticBearer() => StaticBearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StaticBearer' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickEnvironmentVariable( /// /// /// - public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable PickEnvironmentVariable() => IsEnvironmentVariable - ? EnvironmentVariable! + public global::tryAGI.OpenAI.RotateVaultCredentialAuthParamEnvironmentVariable PickEnvironmentVariable() => EnvironmentVariable is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EnvironmentVariable' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsMcpOauth && mcpOauth != null) + if (McpOauth is { } __value0 && mcpOauth != null) { - return mcpOauth(McpOauth!); + return mcpOauth(__value0); } - else if (IsStaticBearer && staticBearer != null) + else if (StaticBearer is { } __value1 && staticBearer != null) { - return staticBearer(StaticBearer!); + return staticBearer(__value1); } - else if (IsEnvironmentVariable && environmentVariable != null) + else if (EnvironmentVariable is { } __value2 && environmentVariable != null) { - return environmentVariable(EnvironmentVariable!); + return environmentVariable(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsMcpOauth) + if (McpOauth is { } __value0) { - mcpOauth?.Invoke(McpOauth!); + mcpOauth?.Invoke(__value0); } - else if (IsStaticBearer) + else if (StaticBearer is { } __value1) { - staticBearer?.Invoke(StaticBearer!); + staticBearer?.Invoke(__value1); } - else if (IsEnvironmentVariable) + else if (EnvironmentVariable is { } __value2) { - environmentVariable?.Invoke(EnvironmentVariable!); + environmentVariable?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsMcpOauth) + if (McpOauth is { } __value0) { - mcpOauth?.Invoke(McpOauth!); + mcpOauth?.Invoke(__value0); } - else if (IsStaticBearer) + else if (StaticBearer is { } __value1) { - staticBearer?.Invoke(StaticBearer!); + staticBearer?.Invoke(__value1); } - else if (IsEnvironmentVariable) + else if (EnvironmentVariable is { } __value2) { - environmentVariable?.Invoke(EnvironmentVariable!); + environmentVariable?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs index c2591f2bd..9b51af4b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunObject.g.cs @@ -161,17 +161,13 @@ public sealed partial class RunObject /// /// [global::System.Text.Json.Serialization.JsonPropertyName("truncation_strategy")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.AllOf TruncationStrategy { get; set; } + public global::tryAGI.OpenAI.TruncationObject? TruncationStrategy { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.AllOf ToolChoice { get; set; } + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? ToolChoice { get; set; } /// /// Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.
@@ -182,15 +178,10 @@ public sealed partial class RunObject public required bool ParallelToolCalls { get; set; } /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
- /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
- /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOptionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.AssistantsApiResponseFormatOption ResponseFormat { get; set; } + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? ResponseFormat { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -226,18 +217,10 @@ public sealed partial class RunObject /// The list of tools that the [assistant](https://developers.openai.com/api/docs/assistants/migration) used for this run.
/// Default Value: [] /// - /// - /// /// /// Whether to enable [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling) during tool use.
/// Default Value: true /// - /// - /// Specifies the format that the model must output. Compatible with [GPT-4o](https://developers.openai.com/api/docs/models/gpt-4o), [GPT-4 Turbo](https://developers.openai.com/api/docs/models/gpt-4-turbo), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
- /// Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
- /// Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
- /// **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length. - /// /// /// The object type, which is always `thread.run`. /// @@ -279,6 +262,9 @@ public sealed partial class RunObject /// /// The maximum number of completion tokens specified to have been used over the course of the run. /// + /// + /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -291,10 +277,7 @@ public RunObject( string model, string instructions, global::System.Collections.Generic.IList> tools, - global::tryAGI.OpenAI.AllOf truncationStrategy, - global::tryAGI.OpenAI.AllOf toolChoice, bool parallelToolCalls, - global::tryAGI.OpenAI.AssistantsApiResponseFormatOption responseFormat, global::tryAGI.OpenAI.RunObjectObject @object, global::tryAGI.OpenAI.RunObjectRequiredAction? requiredAction, global::tryAGI.OpenAI.RunObjectLastError? lastError, @@ -309,7 +292,10 @@ public RunObject( double? temperature, double? topP, int? maxPromptTokens, - int? maxCompletionTokens) + int? maxCompletionTokens, + global::tryAGI.OpenAI.TruncationObject? truncationStrategy, + global::tryAGI.OpenAI.AssistantsApiToolChoiceOption? toolChoice, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOption? responseFormat) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Object = @object; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs index 91c8a8b67..eb0c9207b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickRunStepStreamEventVariant1( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1 PickRunStepStreamEventVariant1() => IsRunStepStreamEventVariant1 - ? RunStepStreamEventVariant1! + public global::tryAGI.OpenAI.RunStepStreamEventVariant1 PickRunStepStreamEventVariant1() => RunStepStreamEventVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickRunStepStreamEventVariant2( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2 PickRunStepStreamEventVariant2() => IsRunStepStreamEventVariant2 - ? RunStepStreamEventVariant2! + public global::tryAGI.OpenAI.RunStepStreamEventVariant2 PickRunStepStreamEventVariant2() => RunStepStreamEventVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant2' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickRunStepStreamEventVariant3( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3 PickRunStepStreamEventVariant3() => IsRunStepStreamEventVariant3 - ? RunStepStreamEventVariant3! + public global::tryAGI.OpenAI.RunStepStreamEventVariant3 PickRunStepStreamEventVariant3() => RunStepStreamEventVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant3' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickRunStepStreamEventVariant4( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4 PickRunStepStreamEventVariant4() => IsRunStepStreamEventVariant4 - ? RunStepStreamEventVariant4! + public global::tryAGI.OpenAI.RunStepStreamEventVariant4 PickRunStepStreamEventVariant4() => RunStepStreamEventVariant4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant4' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickRunStepStreamEventVariant5( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5 PickRunStepStreamEventVariant5() => IsRunStepStreamEventVariant5 - ? RunStepStreamEventVariant5! + public global::tryAGI.OpenAI.RunStepStreamEventVariant5 PickRunStepStreamEventVariant5() => RunStepStreamEventVariant5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant5' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickRunStepStreamEventVariant6( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6 PickRunStepStreamEventVariant6() => IsRunStepStreamEventVariant6 - ? RunStepStreamEventVariant6! + public global::tryAGI.OpenAI.RunStepStreamEventVariant6 PickRunStepStreamEventVariant6() => RunStepStreamEventVariant6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant6' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickRunStepStreamEventVariant7( /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7 PickRunStepStreamEventVariant7() => IsRunStepStreamEventVariant7 - ? RunStepStreamEventVariant7! + public global::tryAGI.OpenAI.RunStepStreamEventVariant7 PickRunStepStreamEventVariant7() => RunStepStreamEventVariant7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStepStreamEventVariant7' but the value was {ToString()}."); /// /// @@ -502,33 +502,33 @@ public bool Validate() Validate(); } - if (IsRunStepStreamEventVariant1 && runStepStreamEventVariant1 != null) + if (RunStepStreamEventVariant1 is { } __value0 && runStepStreamEventVariant1 != null) { - return runStepStreamEventVariant1(RunStepStreamEventVariant1!); + return runStepStreamEventVariant1(__value0); } - else if (IsRunStepStreamEventVariant2 && runStepStreamEventVariant2 != null) + else if (RunStepStreamEventVariant2 is { } __value1 && runStepStreamEventVariant2 != null) { - return runStepStreamEventVariant2(RunStepStreamEventVariant2!); + return runStepStreamEventVariant2(__value1); } - else if (IsRunStepStreamEventVariant3 && runStepStreamEventVariant3 != null) + else if (RunStepStreamEventVariant3 is { } __value2 && runStepStreamEventVariant3 != null) { - return runStepStreamEventVariant3(RunStepStreamEventVariant3!); + return runStepStreamEventVariant3(__value2); } - else if (IsRunStepStreamEventVariant4 && runStepStreamEventVariant4 != null) + else if (RunStepStreamEventVariant4 is { } __value3 && runStepStreamEventVariant4 != null) { - return runStepStreamEventVariant4(RunStepStreamEventVariant4!); + return runStepStreamEventVariant4(__value3); } - else if (IsRunStepStreamEventVariant5 && runStepStreamEventVariant5 != null) + else if (RunStepStreamEventVariant5 is { } __value4 && runStepStreamEventVariant5 != null) { - return runStepStreamEventVariant5(RunStepStreamEventVariant5!); + return runStepStreamEventVariant5(__value4); } - else if (IsRunStepStreamEventVariant6 && runStepStreamEventVariant6 != null) + else if (RunStepStreamEventVariant6 is { } __value5 && runStepStreamEventVariant6 != null) { - return runStepStreamEventVariant6(RunStepStreamEventVariant6!); + return runStepStreamEventVariant6(__value5); } - else if (IsRunStepStreamEventVariant7 && runStepStreamEventVariant7 != null) + else if (RunStepStreamEventVariant7 is { } __value6 && runStepStreamEventVariant7 != null) { - return runStepStreamEventVariant7(RunStepStreamEventVariant7!); + return runStepStreamEventVariant7(__value6); } return default(TResult); @@ -558,33 +558,33 @@ public void Match( Validate(); } - if (IsRunStepStreamEventVariant1) + if (RunStepStreamEventVariant1 is { } __value0) { - runStepStreamEventVariant1?.Invoke(RunStepStreamEventVariant1!); + runStepStreamEventVariant1?.Invoke(__value0); } - else if (IsRunStepStreamEventVariant2) + else if (RunStepStreamEventVariant2 is { } __value1) { - runStepStreamEventVariant2?.Invoke(RunStepStreamEventVariant2!); + runStepStreamEventVariant2?.Invoke(__value1); } - else if (IsRunStepStreamEventVariant3) + else if (RunStepStreamEventVariant3 is { } __value2) { - runStepStreamEventVariant3?.Invoke(RunStepStreamEventVariant3!); + runStepStreamEventVariant3?.Invoke(__value2); } - else if (IsRunStepStreamEventVariant4) + else if (RunStepStreamEventVariant4 is { } __value3) { - runStepStreamEventVariant4?.Invoke(RunStepStreamEventVariant4!); + runStepStreamEventVariant4?.Invoke(__value3); } - else if (IsRunStepStreamEventVariant5) + else if (RunStepStreamEventVariant5 is { } __value4) { - runStepStreamEventVariant5?.Invoke(RunStepStreamEventVariant5!); + runStepStreamEventVariant5?.Invoke(__value4); } - else if (IsRunStepStreamEventVariant6) + else if (RunStepStreamEventVariant6 is { } __value5) { - runStepStreamEventVariant6?.Invoke(RunStepStreamEventVariant6!); + runStepStreamEventVariant6?.Invoke(__value5); } - else if (IsRunStepStreamEventVariant7) + else if (RunStepStreamEventVariant7 is { } __value6) { - runStepStreamEventVariant7?.Invoke(RunStepStreamEventVariant7!); + runStepStreamEventVariant7?.Invoke(__value6); } } @@ -606,33 +606,33 @@ public void Switch( Validate(); } - if (IsRunStepStreamEventVariant1) + if (RunStepStreamEventVariant1 is { } __value0) { - runStepStreamEventVariant1?.Invoke(RunStepStreamEventVariant1!); + runStepStreamEventVariant1?.Invoke(__value0); } - else if (IsRunStepStreamEventVariant2) + else if (RunStepStreamEventVariant2 is { } __value1) { - runStepStreamEventVariant2?.Invoke(RunStepStreamEventVariant2!); + runStepStreamEventVariant2?.Invoke(__value1); } - else if (IsRunStepStreamEventVariant3) + else if (RunStepStreamEventVariant3 is { } __value2) { - runStepStreamEventVariant3?.Invoke(RunStepStreamEventVariant3!); + runStepStreamEventVariant3?.Invoke(__value2); } - else if (IsRunStepStreamEventVariant4) + else if (RunStepStreamEventVariant4 is { } __value3) { - runStepStreamEventVariant4?.Invoke(RunStepStreamEventVariant4!); + runStepStreamEventVariant4?.Invoke(__value3); } - else if (IsRunStepStreamEventVariant5) + else if (RunStepStreamEventVariant5 is { } __value4) { - runStepStreamEventVariant5?.Invoke(RunStepStreamEventVariant5!); + runStepStreamEventVariant5?.Invoke(__value4); } - else if (IsRunStepStreamEventVariant6) + else if (RunStepStreamEventVariant6 is { } __value5) { - runStepStreamEventVariant6?.Invoke(RunStepStreamEventVariant6!); + runStepStreamEventVariant6?.Invoke(__value5); } - else if (IsRunStepStreamEventVariant7) + else if (RunStepStreamEventVariant7 is { } __value6) { - runStepStreamEventVariant7?.Invoke(RunStepStreamEventVariant7!); + runStepStreamEventVariant7?.Invoke(__value6); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs index 42e8d4c0a..7bcf3843b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickRunStreamEventVariant1( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1 PickRunStreamEventVariant1() => IsRunStreamEventVariant1 - ? RunStreamEventVariant1! + public global::tryAGI.OpenAI.RunStreamEventVariant1 PickRunStreamEventVariant1() => RunStreamEventVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickRunStreamEventVariant2( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2 PickRunStreamEventVariant2() => IsRunStreamEventVariant2 - ? RunStreamEventVariant2! + public global::tryAGI.OpenAI.RunStreamEventVariant2 PickRunStreamEventVariant2() => RunStreamEventVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant2' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickRunStreamEventVariant3( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3 PickRunStreamEventVariant3() => IsRunStreamEventVariant3 - ? RunStreamEventVariant3! + public global::tryAGI.OpenAI.RunStreamEventVariant3 PickRunStreamEventVariant3() => RunStreamEventVariant3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant3' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickRunStreamEventVariant4( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4 PickRunStreamEventVariant4() => IsRunStreamEventVariant4 - ? RunStreamEventVariant4! + public global::tryAGI.OpenAI.RunStreamEventVariant4 PickRunStreamEventVariant4() => RunStreamEventVariant4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant4' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickRunStreamEventVariant5( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5 PickRunStreamEventVariant5() => IsRunStreamEventVariant5 - ? RunStreamEventVariant5! + public global::tryAGI.OpenAI.RunStreamEventVariant5 PickRunStreamEventVariant5() => RunStreamEventVariant5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant5' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickRunStreamEventVariant6( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6 PickRunStreamEventVariant6() => IsRunStreamEventVariant6 - ? RunStreamEventVariant6! + public global::tryAGI.OpenAI.RunStreamEventVariant6 PickRunStreamEventVariant6() => RunStreamEventVariant6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant6' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickRunStreamEventVariant7( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7 PickRunStreamEventVariant7() => IsRunStreamEventVariant7 - ? RunStreamEventVariant7! + public global::tryAGI.OpenAI.RunStreamEventVariant7 PickRunStreamEventVariant7() => RunStreamEventVariant7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant7' but the value was {ToString()}."); /// @@ -301,8 +301,8 @@ public bool TryPickRunStreamEventVariant8( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8 PickRunStreamEventVariant8() => IsRunStreamEventVariant8 - ? RunStreamEventVariant8! + public global::tryAGI.OpenAI.RunStreamEventVariant8 PickRunStreamEventVariant8() => RunStreamEventVariant8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant8' but the value was {ToString()}."); /// @@ -338,8 +338,8 @@ public bool TryPickRunStreamEventVariant9( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9 PickRunStreamEventVariant9() => IsRunStreamEventVariant9 - ? RunStreamEventVariant9! + public global::tryAGI.OpenAI.RunStreamEventVariant9 PickRunStreamEventVariant9() => RunStreamEventVariant9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant9' but the value was {ToString()}."); /// @@ -375,8 +375,8 @@ public bool TryPickRunStreamEventVariant10( /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10 PickRunStreamEventVariant10() => IsRunStreamEventVariant10 - ? RunStreamEventVariant10! + public global::tryAGI.OpenAI.RunStreamEventVariant10 PickRunStreamEventVariant10() => RunStreamEventVariant10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RunStreamEventVariant10' but the value was {ToString()}."); /// /// @@ -697,45 +697,45 @@ public bool Validate() Validate(); } - if (IsRunStreamEventVariant1 && runStreamEventVariant1 != null) + if (RunStreamEventVariant1 is { } __value0 && runStreamEventVariant1 != null) { - return runStreamEventVariant1(RunStreamEventVariant1!); + return runStreamEventVariant1(__value0); } - else if (IsRunStreamEventVariant2 && runStreamEventVariant2 != null) + else if (RunStreamEventVariant2 is { } __value1 && runStreamEventVariant2 != null) { - return runStreamEventVariant2(RunStreamEventVariant2!); + return runStreamEventVariant2(__value1); } - else if (IsRunStreamEventVariant3 && runStreamEventVariant3 != null) + else if (RunStreamEventVariant3 is { } __value2 && runStreamEventVariant3 != null) { - return runStreamEventVariant3(RunStreamEventVariant3!); + return runStreamEventVariant3(__value2); } - else if (IsRunStreamEventVariant4 && runStreamEventVariant4 != null) + else if (RunStreamEventVariant4 is { } __value3 && runStreamEventVariant4 != null) { - return runStreamEventVariant4(RunStreamEventVariant4!); + return runStreamEventVariant4(__value3); } - else if (IsRunStreamEventVariant5 && runStreamEventVariant5 != null) + else if (RunStreamEventVariant5 is { } __value4 && runStreamEventVariant5 != null) { - return runStreamEventVariant5(RunStreamEventVariant5!); + return runStreamEventVariant5(__value4); } - else if (IsRunStreamEventVariant6 && runStreamEventVariant6 != null) + else if (RunStreamEventVariant6 is { } __value5 && runStreamEventVariant6 != null) { - return runStreamEventVariant6(RunStreamEventVariant6!); + return runStreamEventVariant6(__value5); } - else if (IsRunStreamEventVariant7 && runStreamEventVariant7 != null) + else if (RunStreamEventVariant7 is { } __value6 && runStreamEventVariant7 != null) { - return runStreamEventVariant7(RunStreamEventVariant7!); + return runStreamEventVariant7(__value6); } - else if (IsRunStreamEventVariant8 && runStreamEventVariant8 != null) + else if (RunStreamEventVariant8 is { } __value7 && runStreamEventVariant8 != null) { - return runStreamEventVariant8(RunStreamEventVariant8!); + return runStreamEventVariant8(__value7); } - else if (IsRunStreamEventVariant9 && runStreamEventVariant9 != null) + else if (RunStreamEventVariant9 is { } __value8 && runStreamEventVariant9 != null) { - return runStreamEventVariant9(RunStreamEventVariant9!); + return runStreamEventVariant9(__value8); } - else if (IsRunStreamEventVariant10 && runStreamEventVariant10 != null) + else if (RunStreamEventVariant10 is { } __value9 && runStreamEventVariant10 != null) { - return runStreamEventVariant10(RunStreamEventVariant10!); + return runStreamEventVariant10(__value9); } return default(TResult); @@ -771,45 +771,45 @@ public void Match( Validate(); } - if (IsRunStreamEventVariant1) + if (RunStreamEventVariant1 is { } __value0) { - runStreamEventVariant1?.Invoke(RunStreamEventVariant1!); + runStreamEventVariant1?.Invoke(__value0); } - else if (IsRunStreamEventVariant2) + else if (RunStreamEventVariant2 is { } __value1) { - runStreamEventVariant2?.Invoke(RunStreamEventVariant2!); + runStreamEventVariant2?.Invoke(__value1); } - else if (IsRunStreamEventVariant3) + else if (RunStreamEventVariant3 is { } __value2) { - runStreamEventVariant3?.Invoke(RunStreamEventVariant3!); + runStreamEventVariant3?.Invoke(__value2); } - else if (IsRunStreamEventVariant4) + else if (RunStreamEventVariant4 is { } __value3) { - runStreamEventVariant4?.Invoke(RunStreamEventVariant4!); + runStreamEventVariant4?.Invoke(__value3); } - else if (IsRunStreamEventVariant5) + else if (RunStreamEventVariant5 is { } __value4) { - runStreamEventVariant5?.Invoke(RunStreamEventVariant5!); + runStreamEventVariant5?.Invoke(__value4); } - else if (IsRunStreamEventVariant6) + else if (RunStreamEventVariant6 is { } __value5) { - runStreamEventVariant6?.Invoke(RunStreamEventVariant6!); + runStreamEventVariant6?.Invoke(__value5); } - else if (IsRunStreamEventVariant7) + else if (RunStreamEventVariant7 is { } __value6) { - runStreamEventVariant7?.Invoke(RunStreamEventVariant7!); + runStreamEventVariant7?.Invoke(__value6); } - else if (IsRunStreamEventVariant8) + else if (RunStreamEventVariant8 is { } __value7) { - runStreamEventVariant8?.Invoke(RunStreamEventVariant8!); + runStreamEventVariant8?.Invoke(__value7); } - else if (IsRunStreamEventVariant9) + else if (RunStreamEventVariant9 is { } __value8) { - runStreamEventVariant9?.Invoke(RunStreamEventVariant9!); + runStreamEventVariant9?.Invoke(__value8); } - else if (IsRunStreamEventVariant10) + else if (RunStreamEventVariant10 is { } __value9) { - runStreamEventVariant10?.Invoke(RunStreamEventVariant10!); + runStreamEventVariant10?.Invoke(__value9); } } @@ -834,45 +834,45 @@ public void Switch( Validate(); } - if (IsRunStreamEventVariant1) + if (RunStreamEventVariant1 is { } __value0) { - runStreamEventVariant1?.Invoke(RunStreamEventVariant1!); + runStreamEventVariant1?.Invoke(__value0); } - else if (IsRunStreamEventVariant2) + else if (RunStreamEventVariant2 is { } __value1) { - runStreamEventVariant2?.Invoke(RunStreamEventVariant2!); + runStreamEventVariant2?.Invoke(__value1); } - else if (IsRunStreamEventVariant3) + else if (RunStreamEventVariant3 is { } __value2) { - runStreamEventVariant3?.Invoke(RunStreamEventVariant3!); + runStreamEventVariant3?.Invoke(__value2); } - else if (IsRunStreamEventVariant4) + else if (RunStreamEventVariant4 is { } __value3) { - runStreamEventVariant4?.Invoke(RunStreamEventVariant4!); + runStreamEventVariant4?.Invoke(__value3); } - else if (IsRunStreamEventVariant5) + else if (RunStreamEventVariant5 is { } __value4) { - runStreamEventVariant5?.Invoke(RunStreamEventVariant5!); + runStreamEventVariant5?.Invoke(__value4); } - else if (IsRunStreamEventVariant6) + else if (RunStreamEventVariant6 is { } __value5) { - runStreamEventVariant6?.Invoke(RunStreamEventVariant6!); + runStreamEventVariant6?.Invoke(__value5); } - else if (IsRunStreamEventVariant7) + else if (RunStreamEventVariant7 is { } __value6) { - runStreamEventVariant7?.Invoke(RunStreamEventVariant7!); + runStreamEventVariant7?.Invoke(__value6); } - else if (IsRunStreamEventVariant8) + else if (RunStreamEventVariant8 is { } __value7) { - runStreamEventVariant8?.Invoke(RunStreamEventVariant8!); + runStreamEventVariant8?.Invoke(__value7); } - else if (IsRunStreamEventVariant9) + else if (RunStreamEventVariant9 is { } __value8) { - runStreamEventVariant9?.Invoke(RunStreamEventVariant9!); + runStreamEventVariant9?.Invoke(__value8); } - else if (IsRunStreamEventVariant10) + else if (RunStreamEventVariant10 is { } __value9) { - runStreamEventVariant10?.Invoke(RunStreamEventVariant10!); + runStreamEventVariant10?.Invoke(__value9); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs index 6a4f01715..c6567e66c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs @@ -47,8 +47,8 @@ public bool TryPickRealtime( /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA PickRealtime() => IsRealtime - ? Realtime! + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA PickRealtime() => Realtime is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Realtime' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTranscription( /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA PickTranscription() => IsTranscription - ? Transcription! + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA PickTranscription() => Transcription is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Transcription' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsRealtime && realtime != null) + if (Realtime is { } __value0 && realtime != null) { - return realtime(Realtime!); + return realtime(__value0); } - else if (IsTranscription && transcription != null) + else if (Transcription is { } __value1 && transcription != null) { - return transcription(Transcription!); + return transcription(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsRealtime) + if (Realtime is { } __value0) { - realtime?.Invoke(Realtime!); + realtime?.Invoke(__value0); } - else if (IsTranscription) + else if (Transcription is { } __value1) { - transcription?.Invoke(Transcription!); + transcription?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsRealtime) + if (Realtime is { } __value0) { - realtime?.Invoke(Realtime!); + realtime?.Invoke(__value0); } - else if (IsTranscription) + else if (Transcription is { } __value1) { - transcription?.Invoke(Transcription!); + transcription?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionEvent.g.cs index f0cfecf29..37d6c0321 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionEvent.g.cs @@ -47,8 +47,8 @@ public bool TryPickError( /// /// /// - public global::tryAGI.OpenAI.SessionEventError PickError() => IsError - ? Error! + public global::tryAGI.OpenAI.SessionEventError PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAgentSessionEnvironmentReady( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady PickAgentSessionEnvironmentReady() => IsAgentSessionEnvironmentReady - ? AgentSessionEnvironmentReady! + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReady PickAgentSessionEnvironmentReady() => AgentSessionEnvironmentReady is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionEnvironmentReady' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAgentSessionEnvironmentReset( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset PickAgentSessionEnvironmentReset() => IsAgentSessionEnvironmentReset - ? AgentSessionEnvironmentReset! + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentReset PickAgentSessionEnvironmentReset() => AgentSessionEnvironmentReset is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionEnvironmentReset' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAgentOutputCommandExecutionOutputDelta( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta PickAgentOutputCommandExecutionOutputDelta() => IsAgentOutputCommandExecutionOutputDelta - ? AgentOutputCommandExecutionOutputDelta! + public global::tryAGI.OpenAI.SessionEventAgentOutputCommandExecutionOutputDelta PickAgentOutputCommandExecutionOutputDelta() => AgentOutputCommandExecutionOutputDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentOutputCommandExecutionOutputDelta' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAgentSessionCreated( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionCreated PickAgentSessionCreated() => IsAgentSessionCreated - ? AgentSessionCreated! + public global::tryAGI.OpenAI.SessionEventAgentSessionCreated PickAgentSessionCreated() => AgentSessionCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionCreated' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAgentSessionTurnCreated( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated PickAgentSessionTurnCreated() => IsAgentSessionTurnCreated - ? AgentSessionTurnCreated! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCreated PickAgentSessionTurnCreated() => AgentSessionTurnCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnCreated' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickAgentSessionTurnInProgress( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress PickAgentSessionTurnInProgress() => IsAgentSessionTurnInProgress - ? AgentSessionTurnInProgress! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnInProgress PickAgentSessionTurnInProgress() => AgentSessionTurnInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnInProgress' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickAgentSessionTurnCompleted( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted PickAgentSessionTurnCompleted() => IsAgentSessionTurnCompleted - ? AgentSessionTurnCompleted! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCompleted PickAgentSessionTurnCompleted() => AgentSessionTurnCompleted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnCompleted' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickAgentSessionTurnFailed( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed PickAgentSessionTurnFailed() => IsAgentSessionTurnFailed - ? AgentSessionTurnFailed! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnFailed PickAgentSessionTurnFailed() => AgentSessionTurnFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnFailed' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickAgentSessionTurnCancelled( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled PickAgentSessionTurnCancelled() => IsAgentSessionTurnCancelled - ? AgentSessionTurnCancelled! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnCancelled PickAgentSessionTurnCancelled() => AgentSessionTurnCancelled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnCancelled' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickAgentSessionTurnItemAdded( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded PickAgentSessionTurnItemAdded() => IsAgentSessionTurnItemAdded - ? AgentSessionTurnItemAdded! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemAdded PickAgentSessionTurnItemAdded() => AgentSessionTurnItemAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnItemAdded' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickAgentSessionIdle( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionIdle PickAgentSessionIdle() => IsAgentSessionIdle - ? AgentSessionIdle! + public global::tryAGI.OpenAI.SessionEventAgentSessionIdle PickAgentSessionIdle() => AgentSessionIdle is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionIdle' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickAgentSessionInProgress( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress PickAgentSessionInProgress() => IsAgentSessionInProgress - ? AgentSessionInProgress! + public global::tryAGI.OpenAI.SessionEventAgentSessionInProgress PickAgentSessionInProgress() => AgentSessionInProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionInProgress' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickAgentSessionRequiresAction( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction PickAgentSessionRequiresAction() => IsAgentSessionRequiresAction - ? AgentSessionRequiresAction! + public global::tryAGI.OpenAI.SessionEventAgentSessionRequiresAction PickAgentSessionRequiresAction() => AgentSessionRequiresAction is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionRequiresAction' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickAgentSessionFailed( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionFailed PickAgentSessionFailed() => IsAgentSessionFailed - ? AgentSessionFailed! + public global::tryAGI.OpenAI.SessionEventAgentSessionFailed PickAgentSessionFailed() => AgentSessionFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionFailed' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickAgentSessionEnvironmentPending( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending PickAgentSessionEnvironmentPending() => IsAgentSessionEnvironmentPending - ? AgentSessionEnvironmentPending! + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentPending PickAgentSessionEnvironmentPending() => AgentSessionEnvironmentPending is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionEnvironmentPending' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickAgentSessionEnvironmentConnected( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected PickAgentSessionEnvironmentConnected() => IsAgentSessionEnvironmentConnected - ? AgentSessionEnvironmentConnected! + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentConnected PickAgentSessionEnvironmentConnected() => AgentSessionEnvironmentConnected is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionEnvironmentConnected' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickAgentSessionEnvironmentDisconnected( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected PickAgentSessionEnvironmentDisconnected() => IsAgentSessionEnvironmentDisconnected - ? AgentSessionEnvironmentDisconnected! + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentDisconnected PickAgentSessionEnvironmentDisconnected() => AgentSessionEnvironmentDisconnected is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionEnvironmentDisconnected' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickAgentSessionEnvironmentFailed( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed PickAgentSessionEnvironmentFailed() => IsAgentSessionEnvironmentFailed - ? AgentSessionEnvironmentFailed! + public global::tryAGI.OpenAI.SessionEventAgentSessionEnvironmentFailed PickAgentSessionEnvironmentFailed() => AgentSessionEnvironmentFailed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionEnvironmentFailed' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickAgentSessionSubagentCreated( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated PickAgentSessionSubagentCreated() => IsAgentSessionSubagentCreated - ? AgentSessionSubagentCreated! + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentCreated PickAgentSessionSubagentCreated() => AgentSessionSubagentCreated is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionSubagentCreated' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickAgentSessionSubagentActive( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive PickAgentSessionSubagentActive() => IsAgentSessionSubagentActive - ? AgentSessionSubagentActive! + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentActive PickAgentSessionSubagentActive() => AgentSessionSubagentActive is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionSubagentActive' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickAgentSessionSubagentClosed( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed PickAgentSessionSubagentClosed() => IsAgentSessionSubagentClosed - ? AgentSessionSubagentClosed! + public global::tryAGI.OpenAI.SessionEventAgentSessionSubagentClosed PickAgentSessionSubagentClosed() => AgentSessionSubagentClosed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionSubagentClosed' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickAgentSessionTurnItemDone( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone PickAgentSessionTurnItemDone() => IsAgentSessionTurnItemDone - ? AgentSessionTurnItemDone! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnItemDone PickAgentSessionTurnItemDone() => AgentSessionTurnItemDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnItemDone' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickAgentSessionTurnContentPartAdded( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded PickAgentSessionTurnContentPartAdded() => IsAgentSessionTurnContentPartAdded - ? AgentSessionTurnContentPartAdded! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartAdded PickAgentSessionTurnContentPartAdded() => AgentSessionTurnContentPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnContentPartAdded' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickAgentSessionTurnContentPartDone( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone PickAgentSessionTurnContentPartDone() => IsAgentSessionTurnContentPartDone - ? AgentSessionTurnContentPartDone! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnContentPartDone PickAgentSessionTurnContentPartDone() => AgentSessionTurnContentPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnContentPartDone' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickAgentSessionTurnOutputTextDelta( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta PickAgentSessionTurnOutputTextDelta() => IsAgentSessionTurnOutputTextDelta - ? AgentSessionTurnOutputTextDelta! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDelta PickAgentSessionTurnOutputTextDelta() => AgentSessionTurnOutputTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnOutputTextDelta' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickAgentSessionTurnOutputTextDone( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone PickAgentSessionTurnOutputTextDone() => IsAgentSessionTurnOutputTextDone - ? AgentSessionTurnOutputTextDone! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnOutputTextDone PickAgentSessionTurnOutputTextDone() => AgentSessionTurnOutputTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnOutputTextDone' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickAgentSessionTurnReasoningSummaryPartAdded( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded PickAgentSessionTurnReasoningSummaryPartAdded() => IsAgentSessionTurnReasoningSummaryPartAdded - ? AgentSessionTurnReasoningSummaryPartAdded! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartAdded PickAgentSessionTurnReasoningSummaryPartAdded() => AgentSessionTurnReasoningSummaryPartAdded is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnReasoningSummaryPartAdded' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickAgentSessionTurnReasoningSummaryPartDone( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone PickAgentSessionTurnReasoningSummaryPartDone() => IsAgentSessionTurnReasoningSummaryPartDone - ? AgentSessionTurnReasoningSummaryPartDone! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryPartDone PickAgentSessionTurnReasoningSummaryPartDone() => AgentSessionTurnReasoningSummaryPartDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnReasoningSummaryPartDone' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickAgentSessionTurnReasoningSummaryTextDelta( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta PickAgentSessionTurnReasoningSummaryTextDelta() => IsAgentSessionTurnReasoningSummaryTextDelta - ? AgentSessionTurnReasoningSummaryTextDelta! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDelta PickAgentSessionTurnReasoningSummaryTextDelta() => AgentSessionTurnReasoningSummaryTextDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnReasoningSummaryTextDelta' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickAgentSessionTurnReasoningSummaryTextDone( /// /// /// - public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone PickAgentSessionTurnReasoningSummaryTextDone() => IsAgentSessionTurnReasoningSummaryTextDone - ? AgentSessionTurnReasoningSummaryTextDone! + public global::tryAGI.OpenAI.SessionEventAgentSessionTurnReasoningSummaryTextDone PickAgentSessionTurnReasoningSummaryTextDone() => AgentSessionTurnReasoningSummaryTextDone is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionTurnReasoningSummaryTextDone' but the value was {ToString()}."); /// /// @@ -2070,129 +2070,129 @@ public bool Validate() Validate(); } - if (IsError && error != null) + if (Error is { } __value0 && error != null) { - return error(Error!); + return error(__value0); } - else if (IsAgentSessionEnvironmentReady && agentSessionEnvironmentReady != null) + else if (AgentSessionEnvironmentReady is { } __value1 && agentSessionEnvironmentReady != null) { - return agentSessionEnvironmentReady(AgentSessionEnvironmentReady!); + return agentSessionEnvironmentReady(__value1); } - else if (IsAgentSessionEnvironmentReset && agentSessionEnvironmentReset != null) + else if (AgentSessionEnvironmentReset is { } __value2 && agentSessionEnvironmentReset != null) { - return agentSessionEnvironmentReset(AgentSessionEnvironmentReset!); + return agentSessionEnvironmentReset(__value2); } - else if (IsAgentOutputCommandExecutionOutputDelta && agentOutputCommandExecutionOutputDelta != null) + else if (AgentOutputCommandExecutionOutputDelta is { } __value3 && agentOutputCommandExecutionOutputDelta != null) { - return agentOutputCommandExecutionOutputDelta(AgentOutputCommandExecutionOutputDelta!); + return agentOutputCommandExecutionOutputDelta(__value3); } - else if (IsAgentSessionCreated && agentSessionCreated != null) + else if (AgentSessionCreated is { } __value4 && agentSessionCreated != null) { - return agentSessionCreated(AgentSessionCreated!); + return agentSessionCreated(__value4); } - else if (IsAgentSessionTurnCreated && agentSessionTurnCreated != null) + else if (AgentSessionTurnCreated is { } __value5 && agentSessionTurnCreated != null) { - return agentSessionTurnCreated(AgentSessionTurnCreated!); + return agentSessionTurnCreated(__value5); } - else if (IsAgentSessionTurnInProgress && agentSessionTurnInProgress != null) + else if (AgentSessionTurnInProgress is { } __value6 && agentSessionTurnInProgress != null) { - return agentSessionTurnInProgress(AgentSessionTurnInProgress!); + return agentSessionTurnInProgress(__value6); } - else if (IsAgentSessionTurnCompleted && agentSessionTurnCompleted != null) + else if (AgentSessionTurnCompleted is { } __value7 && agentSessionTurnCompleted != null) { - return agentSessionTurnCompleted(AgentSessionTurnCompleted!); + return agentSessionTurnCompleted(__value7); } - else if (IsAgentSessionTurnFailed && agentSessionTurnFailed != null) + else if (AgentSessionTurnFailed is { } __value8 && agentSessionTurnFailed != null) { - return agentSessionTurnFailed(AgentSessionTurnFailed!); + return agentSessionTurnFailed(__value8); } - else if (IsAgentSessionTurnCancelled && agentSessionTurnCancelled != null) + else if (AgentSessionTurnCancelled is { } __value9 && agentSessionTurnCancelled != null) { - return agentSessionTurnCancelled(AgentSessionTurnCancelled!); + return agentSessionTurnCancelled(__value9); } - else if (IsAgentSessionTurnItemAdded && agentSessionTurnItemAdded != null) + else if (AgentSessionTurnItemAdded is { } __value10 && agentSessionTurnItemAdded != null) { - return agentSessionTurnItemAdded(AgentSessionTurnItemAdded!); + return agentSessionTurnItemAdded(__value10); } - else if (IsAgentSessionIdle && agentSessionIdle != null) + else if (AgentSessionIdle is { } __value11 && agentSessionIdle != null) { - return agentSessionIdle(AgentSessionIdle!); + return agentSessionIdle(__value11); } - else if (IsAgentSessionInProgress && agentSessionInProgress != null) + else if (AgentSessionInProgress is { } __value12 && agentSessionInProgress != null) { - return agentSessionInProgress(AgentSessionInProgress!); + return agentSessionInProgress(__value12); } - else if (IsAgentSessionRequiresAction && agentSessionRequiresAction != null) + else if (AgentSessionRequiresAction is { } __value13 && agentSessionRequiresAction != null) { - return agentSessionRequiresAction(AgentSessionRequiresAction!); + return agentSessionRequiresAction(__value13); } - else if (IsAgentSessionFailed && agentSessionFailed != null) + else if (AgentSessionFailed is { } __value14 && agentSessionFailed != null) { - return agentSessionFailed(AgentSessionFailed!); + return agentSessionFailed(__value14); } - else if (IsAgentSessionEnvironmentPending && agentSessionEnvironmentPending != null) + else if (AgentSessionEnvironmentPending is { } __value15 && agentSessionEnvironmentPending != null) { - return agentSessionEnvironmentPending(AgentSessionEnvironmentPending!); + return agentSessionEnvironmentPending(__value15); } - else if (IsAgentSessionEnvironmentConnected && agentSessionEnvironmentConnected != null) + else if (AgentSessionEnvironmentConnected is { } __value16 && agentSessionEnvironmentConnected != null) { - return agentSessionEnvironmentConnected(AgentSessionEnvironmentConnected!); + return agentSessionEnvironmentConnected(__value16); } - else if (IsAgentSessionEnvironmentDisconnected && agentSessionEnvironmentDisconnected != null) + else if (AgentSessionEnvironmentDisconnected is { } __value17 && agentSessionEnvironmentDisconnected != null) { - return agentSessionEnvironmentDisconnected(AgentSessionEnvironmentDisconnected!); + return agentSessionEnvironmentDisconnected(__value17); } - else if (IsAgentSessionEnvironmentFailed && agentSessionEnvironmentFailed != null) + else if (AgentSessionEnvironmentFailed is { } __value18 && agentSessionEnvironmentFailed != null) { - return agentSessionEnvironmentFailed(AgentSessionEnvironmentFailed!); + return agentSessionEnvironmentFailed(__value18); } - else if (IsAgentSessionSubagentCreated && agentSessionSubagentCreated != null) + else if (AgentSessionSubagentCreated is { } __value19 && agentSessionSubagentCreated != null) { - return agentSessionSubagentCreated(AgentSessionSubagentCreated!); + return agentSessionSubagentCreated(__value19); } - else if (IsAgentSessionSubagentActive && agentSessionSubagentActive != null) + else if (AgentSessionSubagentActive is { } __value20 && agentSessionSubagentActive != null) { - return agentSessionSubagentActive(AgentSessionSubagentActive!); + return agentSessionSubagentActive(__value20); } - else if (IsAgentSessionSubagentClosed && agentSessionSubagentClosed != null) + else if (AgentSessionSubagentClosed is { } __value21 && agentSessionSubagentClosed != null) { - return agentSessionSubagentClosed(AgentSessionSubagentClosed!); + return agentSessionSubagentClosed(__value21); } - else if (IsAgentSessionTurnItemDone && agentSessionTurnItemDone != null) + else if (AgentSessionTurnItemDone is { } __value22 && agentSessionTurnItemDone != null) { - return agentSessionTurnItemDone(AgentSessionTurnItemDone!); + return agentSessionTurnItemDone(__value22); } - else if (IsAgentSessionTurnContentPartAdded && agentSessionTurnContentPartAdded != null) + else if (AgentSessionTurnContentPartAdded is { } __value23 && agentSessionTurnContentPartAdded != null) { - return agentSessionTurnContentPartAdded(AgentSessionTurnContentPartAdded!); + return agentSessionTurnContentPartAdded(__value23); } - else if (IsAgentSessionTurnContentPartDone && agentSessionTurnContentPartDone != null) + else if (AgentSessionTurnContentPartDone is { } __value24 && agentSessionTurnContentPartDone != null) { - return agentSessionTurnContentPartDone(AgentSessionTurnContentPartDone!); + return agentSessionTurnContentPartDone(__value24); } - else if (IsAgentSessionTurnOutputTextDelta && agentSessionTurnOutputTextDelta != null) + else if (AgentSessionTurnOutputTextDelta is { } __value25 && agentSessionTurnOutputTextDelta != null) { - return agentSessionTurnOutputTextDelta(AgentSessionTurnOutputTextDelta!); + return agentSessionTurnOutputTextDelta(__value25); } - else if (IsAgentSessionTurnOutputTextDone && agentSessionTurnOutputTextDone != null) + else if (AgentSessionTurnOutputTextDone is { } __value26 && agentSessionTurnOutputTextDone != null) { - return agentSessionTurnOutputTextDone(AgentSessionTurnOutputTextDone!); + return agentSessionTurnOutputTextDone(__value26); } - else if (IsAgentSessionTurnReasoningSummaryPartAdded && agentSessionTurnReasoningSummaryPartAdded != null) + else if (AgentSessionTurnReasoningSummaryPartAdded is { } __value27 && agentSessionTurnReasoningSummaryPartAdded != null) { - return agentSessionTurnReasoningSummaryPartAdded(AgentSessionTurnReasoningSummaryPartAdded!); + return agentSessionTurnReasoningSummaryPartAdded(__value27); } - else if (IsAgentSessionTurnReasoningSummaryPartDone && agentSessionTurnReasoningSummaryPartDone != null) + else if (AgentSessionTurnReasoningSummaryPartDone is { } __value28 && agentSessionTurnReasoningSummaryPartDone != null) { - return agentSessionTurnReasoningSummaryPartDone(AgentSessionTurnReasoningSummaryPartDone!); + return agentSessionTurnReasoningSummaryPartDone(__value28); } - else if (IsAgentSessionTurnReasoningSummaryTextDelta && agentSessionTurnReasoningSummaryTextDelta != null) + else if (AgentSessionTurnReasoningSummaryTextDelta is { } __value29 && agentSessionTurnReasoningSummaryTextDelta != null) { - return agentSessionTurnReasoningSummaryTextDelta(AgentSessionTurnReasoningSummaryTextDelta!); + return agentSessionTurnReasoningSummaryTextDelta(__value29); } - else if (IsAgentSessionTurnReasoningSummaryTextDone && agentSessionTurnReasoningSummaryTextDone != null) + else if (AgentSessionTurnReasoningSummaryTextDone is { } __value30 && agentSessionTurnReasoningSummaryTextDone != null) { - return agentSessionTurnReasoningSummaryTextDone(AgentSessionTurnReasoningSummaryTextDone!); + return agentSessionTurnReasoningSummaryTextDone(__value30); } return default(TResult); @@ -2270,129 +2270,129 @@ public void Match( Validate(); } - if (IsError) + if (Error is { } __value0) { - error?.Invoke(Error!); + error?.Invoke(__value0); } - else if (IsAgentSessionEnvironmentReady) + else if (AgentSessionEnvironmentReady is { } __value1) { - agentSessionEnvironmentReady?.Invoke(AgentSessionEnvironmentReady!); + agentSessionEnvironmentReady?.Invoke(__value1); } - else if (IsAgentSessionEnvironmentReset) + else if (AgentSessionEnvironmentReset is { } __value2) { - agentSessionEnvironmentReset?.Invoke(AgentSessionEnvironmentReset!); + agentSessionEnvironmentReset?.Invoke(__value2); } - else if (IsAgentOutputCommandExecutionOutputDelta) + else if (AgentOutputCommandExecutionOutputDelta is { } __value3) { - agentOutputCommandExecutionOutputDelta?.Invoke(AgentOutputCommandExecutionOutputDelta!); + agentOutputCommandExecutionOutputDelta?.Invoke(__value3); } - else if (IsAgentSessionCreated) + else if (AgentSessionCreated is { } __value4) { - agentSessionCreated?.Invoke(AgentSessionCreated!); + agentSessionCreated?.Invoke(__value4); } - else if (IsAgentSessionTurnCreated) + else if (AgentSessionTurnCreated is { } __value5) { - agentSessionTurnCreated?.Invoke(AgentSessionTurnCreated!); + agentSessionTurnCreated?.Invoke(__value5); } - else if (IsAgentSessionTurnInProgress) + else if (AgentSessionTurnInProgress is { } __value6) { - agentSessionTurnInProgress?.Invoke(AgentSessionTurnInProgress!); + agentSessionTurnInProgress?.Invoke(__value6); } - else if (IsAgentSessionTurnCompleted) + else if (AgentSessionTurnCompleted is { } __value7) { - agentSessionTurnCompleted?.Invoke(AgentSessionTurnCompleted!); + agentSessionTurnCompleted?.Invoke(__value7); } - else if (IsAgentSessionTurnFailed) + else if (AgentSessionTurnFailed is { } __value8) { - agentSessionTurnFailed?.Invoke(AgentSessionTurnFailed!); + agentSessionTurnFailed?.Invoke(__value8); } - else if (IsAgentSessionTurnCancelled) + else if (AgentSessionTurnCancelled is { } __value9) { - agentSessionTurnCancelled?.Invoke(AgentSessionTurnCancelled!); + agentSessionTurnCancelled?.Invoke(__value9); } - else if (IsAgentSessionTurnItemAdded) + else if (AgentSessionTurnItemAdded is { } __value10) { - agentSessionTurnItemAdded?.Invoke(AgentSessionTurnItemAdded!); + agentSessionTurnItemAdded?.Invoke(__value10); } - else if (IsAgentSessionIdle) + else if (AgentSessionIdle is { } __value11) { - agentSessionIdle?.Invoke(AgentSessionIdle!); + agentSessionIdle?.Invoke(__value11); } - else if (IsAgentSessionInProgress) + else if (AgentSessionInProgress is { } __value12) { - agentSessionInProgress?.Invoke(AgentSessionInProgress!); + agentSessionInProgress?.Invoke(__value12); } - else if (IsAgentSessionRequiresAction) + else if (AgentSessionRequiresAction is { } __value13) { - agentSessionRequiresAction?.Invoke(AgentSessionRequiresAction!); + agentSessionRequiresAction?.Invoke(__value13); } - else if (IsAgentSessionFailed) + else if (AgentSessionFailed is { } __value14) { - agentSessionFailed?.Invoke(AgentSessionFailed!); + agentSessionFailed?.Invoke(__value14); } - else if (IsAgentSessionEnvironmentPending) + else if (AgentSessionEnvironmentPending is { } __value15) { - agentSessionEnvironmentPending?.Invoke(AgentSessionEnvironmentPending!); + agentSessionEnvironmentPending?.Invoke(__value15); } - else if (IsAgentSessionEnvironmentConnected) + else if (AgentSessionEnvironmentConnected is { } __value16) { - agentSessionEnvironmentConnected?.Invoke(AgentSessionEnvironmentConnected!); + agentSessionEnvironmentConnected?.Invoke(__value16); } - else if (IsAgentSessionEnvironmentDisconnected) + else if (AgentSessionEnvironmentDisconnected is { } __value17) { - agentSessionEnvironmentDisconnected?.Invoke(AgentSessionEnvironmentDisconnected!); + agentSessionEnvironmentDisconnected?.Invoke(__value17); } - else if (IsAgentSessionEnvironmentFailed) + else if (AgentSessionEnvironmentFailed is { } __value18) { - agentSessionEnvironmentFailed?.Invoke(AgentSessionEnvironmentFailed!); + agentSessionEnvironmentFailed?.Invoke(__value18); } - else if (IsAgentSessionSubagentCreated) + else if (AgentSessionSubagentCreated is { } __value19) { - agentSessionSubagentCreated?.Invoke(AgentSessionSubagentCreated!); + agentSessionSubagentCreated?.Invoke(__value19); } - else if (IsAgentSessionSubagentActive) + else if (AgentSessionSubagentActive is { } __value20) { - agentSessionSubagentActive?.Invoke(AgentSessionSubagentActive!); + agentSessionSubagentActive?.Invoke(__value20); } - else if (IsAgentSessionSubagentClosed) + else if (AgentSessionSubagentClosed is { } __value21) { - agentSessionSubagentClosed?.Invoke(AgentSessionSubagentClosed!); + agentSessionSubagentClosed?.Invoke(__value21); } - else if (IsAgentSessionTurnItemDone) + else if (AgentSessionTurnItemDone is { } __value22) { - agentSessionTurnItemDone?.Invoke(AgentSessionTurnItemDone!); + agentSessionTurnItemDone?.Invoke(__value22); } - else if (IsAgentSessionTurnContentPartAdded) + else if (AgentSessionTurnContentPartAdded is { } __value23) { - agentSessionTurnContentPartAdded?.Invoke(AgentSessionTurnContentPartAdded!); + agentSessionTurnContentPartAdded?.Invoke(__value23); } - else if (IsAgentSessionTurnContentPartDone) + else if (AgentSessionTurnContentPartDone is { } __value24) { - agentSessionTurnContentPartDone?.Invoke(AgentSessionTurnContentPartDone!); + agentSessionTurnContentPartDone?.Invoke(__value24); } - else if (IsAgentSessionTurnOutputTextDelta) + else if (AgentSessionTurnOutputTextDelta is { } __value25) { - agentSessionTurnOutputTextDelta?.Invoke(AgentSessionTurnOutputTextDelta!); + agentSessionTurnOutputTextDelta?.Invoke(__value25); } - else if (IsAgentSessionTurnOutputTextDone) + else if (AgentSessionTurnOutputTextDone is { } __value26) { - agentSessionTurnOutputTextDone?.Invoke(AgentSessionTurnOutputTextDone!); + agentSessionTurnOutputTextDone?.Invoke(__value26); } - else if (IsAgentSessionTurnReasoningSummaryPartAdded) + else if (AgentSessionTurnReasoningSummaryPartAdded is { } __value27) { - agentSessionTurnReasoningSummaryPartAdded?.Invoke(AgentSessionTurnReasoningSummaryPartAdded!); + agentSessionTurnReasoningSummaryPartAdded?.Invoke(__value27); } - else if (IsAgentSessionTurnReasoningSummaryPartDone) + else if (AgentSessionTurnReasoningSummaryPartDone is { } __value28) { - agentSessionTurnReasoningSummaryPartDone?.Invoke(AgentSessionTurnReasoningSummaryPartDone!); + agentSessionTurnReasoningSummaryPartDone?.Invoke(__value28); } - else if (IsAgentSessionTurnReasoningSummaryTextDelta) + else if (AgentSessionTurnReasoningSummaryTextDelta is { } __value29) { - agentSessionTurnReasoningSummaryTextDelta?.Invoke(AgentSessionTurnReasoningSummaryTextDelta!); + agentSessionTurnReasoningSummaryTextDelta?.Invoke(__value29); } - else if (IsAgentSessionTurnReasoningSummaryTextDone) + else if (AgentSessionTurnReasoningSummaryTextDone is { } __value30) { - agentSessionTurnReasoningSummaryTextDone?.Invoke(AgentSessionTurnReasoningSummaryTextDone!); + agentSessionTurnReasoningSummaryTextDone?.Invoke(__value30); } } @@ -2438,129 +2438,129 @@ public void Switch( Validate(); } - if (IsError) + if (Error is { } __value0) { - error?.Invoke(Error!); + error?.Invoke(__value0); } - else if (IsAgentSessionEnvironmentReady) + else if (AgentSessionEnvironmentReady is { } __value1) { - agentSessionEnvironmentReady?.Invoke(AgentSessionEnvironmentReady!); + agentSessionEnvironmentReady?.Invoke(__value1); } - else if (IsAgentSessionEnvironmentReset) + else if (AgentSessionEnvironmentReset is { } __value2) { - agentSessionEnvironmentReset?.Invoke(AgentSessionEnvironmentReset!); + agentSessionEnvironmentReset?.Invoke(__value2); } - else if (IsAgentOutputCommandExecutionOutputDelta) + else if (AgentOutputCommandExecutionOutputDelta is { } __value3) { - agentOutputCommandExecutionOutputDelta?.Invoke(AgentOutputCommandExecutionOutputDelta!); + agentOutputCommandExecutionOutputDelta?.Invoke(__value3); } - else if (IsAgentSessionCreated) + else if (AgentSessionCreated is { } __value4) { - agentSessionCreated?.Invoke(AgentSessionCreated!); + agentSessionCreated?.Invoke(__value4); } - else if (IsAgentSessionTurnCreated) + else if (AgentSessionTurnCreated is { } __value5) { - agentSessionTurnCreated?.Invoke(AgentSessionTurnCreated!); + agentSessionTurnCreated?.Invoke(__value5); } - else if (IsAgentSessionTurnInProgress) + else if (AgentSessionTurnInProgress is { } __value6) { - agentSessionTurnInProgress?.Invoke(AgentSessionTurnInProgress!); + agentSessionTurnInProgress?.Invoke(__value6); } - else if (IsAgentSessionTurnCompleted) + else if (AgentSessionTurnCompleted is { } __value7) { - agentSessionTurnCompleted?.Invoke(AgentSessionTurnCompleted!); + agentSessionTurnCompleted?.Invoke(__value7); } - else if (IsAgentSessionTurnFailed) + else if (AgentSessionTurnFailed is { } __value8) { - agentSessionTurnFailed?.Invoke(AgentSessionTurnFailed!); + agentSessionTurnFailed?.Invoke(__value8); } - else if (IsAgentSessionTurnCancelled) + else if (AgentSessionTurnCancelled is { } __value9) { - agentSessionTurnCancelled?.Invoke(AgentSessionTurnCancelled!); + agentSessionTurnCancelled?.Invoke(__value9); } - else if (IsAgentSessionTurnItemAdded) + else if (AgentSessionTurnItemAdded is { } __value10) { - agentSessionTurnItemAdded?.Invoke(AgentSessionTurnItemAdded!); + agentSessionTurnItemAdded?.Invoke(__value10); } - else if (IsAgentSessionIdle) + else if (AgentSessionIdle is { } __value11) { - agentSessionIdle?.Invoke(AgentSessionIdle!); + agentSessionIdle?.Invoke(__value11); } - else if (IsAgentSessionInProgress) + else if (AgentSessionInProgress is { } __value12) { - agentSessionInProgress?.Invoke(AgentSessionInProgress!); + agentSessionInProgress?.Invoke(__value12); } - else if (IsAgentSessionRequiresAction) + else if (AgentSessionRequiresAction is { } __value13) { - agentSessionRequiresAction?.Invoke(AgentSessionRequiresAction!); + agentSessionRequiresAction?.Invoke(__value13); } - else if (IsAgentSessionFailed) + else if (AgentSessionFailed is { } __value14) { - agentSessionFailed?.Invoke(AgentSessionFailed!); + agentSessionFailed?.Invoke(__value14); } - else if (IsAgentSessionEnvironmentPending) + else if (AgentSessionEnvironmentPending is { } __value15) { - agentSessionEnvironmentPending?.Invoke(AgentSessionEnvironmentPending!); + agentSessionEnvironmentPending?.Invoke(__value15); } - else if (IsAgentSessionEnvironmentConnected) + else if (AgentSessionEnvironmentConnected is { } __value16) { - agentSessionEnvironmentConnected?.Invoke(AgentSessionEnvironmentConnected!); + agentSessionEnvironmentConnected?.Invoke(__value16); } - else if (IsAgentSessionEnvironmentDisconnected) + else if (AgentSessionEnvironmentDisconnected is { } __value17) { - agentSessionEnvironmentDisconnected?.Invoke(AgentSessionEnvironmentDisconnected!); + agentSessionEnvironmentDisconnected?.Invoke(__value17); } - else if (IsAgentSessionEnvironmentFailed) + else if (AgentSessionEnvironmentFailed is { } __value18) { - agentSessionEnvironmentFailed?.Invoke(AgentSessionEnvironmentFailed!); + agentSessionEnvironmentFailed?.Invoke(__value18); } - else if (IsAgentSessionSubagentCreated) + else if (AgentSessionSubagentCreated is { } __value19) { - agentSessionSubagentCreated?.Invoke(AgentSessionSubagentCreated!); + agentSessionSubagentCreated?.Invoke(__value19); } - else if (IsAgentSessionSubagentActive) + else if (AgentSessionSubagentActive is { } __value20) { - agentSessionSubagentActive?.Invoke(AgentSessionSubagentActive!); + agentSessionSubagentActive?.Invoke(__value20); } - else if (IsAgentSessionSubagentClosed) + else if (AgentSessionSubagentClosed is { } __value21) { - agentSessionSubagentClosed?.Invoke(AgentSessionSubagentClosed!); + agentSessionSubagentClosed?.Invoke(__value21); } - else if (IsAgentSessionTurnItemDone) + else if (AgentSessionTurnItemDone is { } __value22) { - agentSessionTurnItemDone?.Invoke(AgentSessionTurnItemDone!); + agentSessionTurnItemDone?.Invoke(__value22); } - else if (IsAgentSessionTurnContentPartAdded) + else if (AgentSessionTurnContentPartAdded is { } __value23) { - agentSessionTurnContentPartAdded?.Invoke(AgentSessionTurnContentPartAdded!); + agentSessionTurnContentPartAdded?.Invoke(__value23); } - else if (IsAgentSessionTurnContentPartDone) + else if (AgentSessionTurnContentPartDone is { } __value24) { - agentSessionTurnContentPartDone?.Invoke(AgentSessionTurnContentPartDone!); + agentSessionTurnContentPartDone?.Invoke(__value24); } - else if (IsAgentSessionTurnOutputTextDelta) + else if (AgentSessionTurnOutputTextDelta is { } __value25) { - agentSessionTurnOutputTextDelta?.Invoke(AgentSessionTurnOutputTextDelta!); + agentSessionTurnOutputTextDelta?.Invoke(__value25); } - else if (IsAgentSessionTurnOutputTextDone) + else if (AgentSessionTurnOutputTextDone is { } __value26) { - agentSessionTurnOutputTextDone?.Invoke(AgentSessionTurnOutputTextDone!); + agentSessionTurnOutputTextDone?.Invoke(__value26); } - else if (IsAgentSessionTurnReasoningSummaryPartAdded) + else if (AgentSessionTurnReasoningSummaryPartAdded is { } __value27) { - agentSessionTurnReasoningSummaryPartAdded?.Invoke(AgentSessionTurnReasoningSummaryPartAdded!); + agentSessionTurnReasoningSummaryPartAdded?.Invoke(__value27); } - else if (IsAgentSessionTurnReasoningSummaryPartDone) + else if (AgentSessionTurnReasoningSummaryPartDone is { } __value28) { - agentSessionTurnReasoningSummaryPartDone?.Invoke(AgentSessionTurnReasoningSummaryPartDone!); + agentSessionTurnReasoningSummaryPartDone?.Invoke(__value28); } - else if (IsAgentSessionTurnReasoningSummaryTextDelta) + else if (AgentSessionTurnReasoningSummaryTextDelta is { } __value29) { - agentSessionTurnReasoningSummaryTextDelta?.Invoke(AgentSessionTurnReasoningSummaryTextDelta!); + agentSessionTurnReasoningSummaryTextDelta?.Invoke(__value29); } - else if (IsAgentSessionTurnReasoningSummaryTextDone) + else if (AgentSessionTurnReasoningSummaryTextDone is { } __value30) { - agentSessionTurnReasoningSummaryTextDone?.Invoke(AgentSessionTurnReasoningSummaryTextDone!); + agentSessionTurnReasoningSummaryTextDone?.Invoke(__value30); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionInputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionInputParam.g.cs index d99379978..2249c2157 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionInputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionInputParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickAgentSessionInputMessage( /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage PickAgentSessionInputMessage() => IsAgentSessionInputMessage - ? AgentSessionInputMessage! + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputMessage PickAgentSessionInputMessage() => AgentSessionInputMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionInputMessage' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAgentSessionInputCancel( /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel PickAgentSessionInputCancel() => IsAgentSessionInputCancel - ? AgentSessionInputCancel! + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputCancel PickAgentSessionInputCancel() => AgentSessionInputCancel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionInputCancel' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAgentSessionInputToolResult( /// /// /// - public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult PickAgentSessionInputToolResult() => IsAgentSessionInputToolResult - ? AgentSessionInputToolResult! + public global::tryAGI.OpenAI.SessionInputParamAgentSessionInputToolResult PickAgentSessionInputToolResult() => AgentSessionInputToolResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentSessionInputToolResult' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsAgentSessionInputMessage && agentSessionInputMessage != null) + if (AgentSessionInputMessage is { } __value0 && agentSessionInputMessage != null) { - return agentSessionInputMessage(AgentSessionInputMessage!); + return agentSessionInputMessage(__value0); } - else if (IsAgentSessionInputCancel && agentSessionInputCancel != null) + else if (AgentSessionInputCancel is { } __value1 && agentSessionInputCancel != null) { - return agentSessionInputCancel(AgentSessionInputCancel!); + return agentSessionInputCancel(__value1); } - else if (IsAgentSessionInputToolResult && agentSessionInputToolResult != null) + else if (AgentSessionInputToolResult is { } __value2 && agentSessionInputToolResult != null) { - return agentSessionInputToolResult(AgentSessionInputToolResult!); + return agentSessionInputToolResult(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsAgentSessionInputMessage) + if (AgentSessionInputMessage is { } __value0) { - agentSessionInputMessage?.Invoke(AgentSessionInputMessage!); + agentSessionInputMessage?.Invoke(__value0); } - else if (IsAgentSessionInputCancel) + else if (AgentSessionInputCancel is { } __value1) { - agentSessionInputCancel?.Invoke(AgentSessionInputCancel!); + agentSessionInputCancel?.Invoke(__value1); } - else if (IsAgentSessionInputToolResult) + else if (AgentSessionInputToolResult is { } __value2) { - agentSessionInputToolResult?.Invoke(AgentSessionInputToolResult!); + agentSessionInputToolResult?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsAgentSessionInputMessage) + if (AgentSessionInputMessage is { } __value0) { - agentSessionInputMessage?.Invoke(AgentSessionInputMessage!); + agentSessionInputMessage?.Invoke(__value0); } - else if (IsAgentSessionInputCancel) + else if (AgentSessionInputCancel is { } __value1) { - agentSessionInputCancel?.Invoke(AgentSessionInputCancel!); + agentSessionInputCancel?.Invoke(__value1); } - else if (IsAgentSessionInputToolResult) + else if (AgentSessionInputToolResult is { } __value2) { - agentSessionInputToolResult?.Invoke(AgentSessionInputToolResult!); + agentSessionInputToolResult?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionRequiredActionResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionRequiredActionResource.g.cs index d63713557..d7a7beb9a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionRequiredActionResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionRequiredActionResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.SessionRequiredActionResourceFunctionCall PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickEnvironmentConnection( /// /// /// - public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection PickEnvironmentConnection() => IsEnvironmentConnection - ? EnvironmentConnection! + public global::tryAGI.OpenAI.SessionRequiredActionResourceEnvironmentConnection PickEnvironmentConnection() => EnvironmentConnection is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EnvironmentConnection' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFunctionCall && functionCall != null) + if (FunctionCall is { } __value0 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value0); } - else if (IsEnvironmentConnection && environmentConnection != null) + else if (EnvironmentConnection is { } __value1 && environmentConnection != null) { - return environmentConnection(EnvironmentConnection!); + return environmentConnection(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFunctionCall) + if (FunctionCall is { } __value0) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value0); } - else if (IsEnvironmentConnection) + else if (EnvironmentConnection is { } __value1) { - environmentConnection?.Invoke(EnvironmentConnection!); + environmentConnection?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFunctionCall) + if (FunctionCall is { } __value0) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value0); } - else if (IsEnvironmentConnection) + else if (EnvironmentConnection is { } __value1) { - environmentConnection?.Invoke(EnvironmentConnection!); + environmentConnection?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnItemResource.g.cs index 76fdc7987..2297c665b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnItemResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SessionTurnItemResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickMessage( /// /// /// - public global::tryAGI.OpenAI.MessageItemResource PickMessage() => IsMessage - ? Message! + public global::tryAGI.OpenAI.MessageItemResource PickMessage() => Message is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Message' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickReasoning( /// /// /// - public global::tryAGI.OpenAI.ReasoningItemResource PickReasoning() => IsReasoning - ? Reasoning! + public global::tryAGI.OpenAI.ReasoningItemResource PickReasoning() => Reasoning is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Reasoning' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemResource PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::tryAGI.OpenAI.FunctionCallItemResource PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickFunctionCallOutput( /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemResource PickFunctionCallOutput() => IsFunctionCallOutput - ? FunctionCallOutput! + public global::tryAGI.OpenAI.FunctionCallOutputItemResource PickFunctionCallOutput() => FunctionCallOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCallOutput' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAgentMessage( /// /// /// - public global::tryAGI.OpenAI.AgentMessageItemResource PickAgentMessage() => IsAgentMessage - ? AgentMessage! + public global::tryAGI.OpenAI.AgentMessageItemResource PickAgentMessage() => AgentMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AgentMessage' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickMcpCall( /// /// /// - public global::tryAGI.OpenAI.McpCallItemResource PickMcpCall() => IsMcpCall - ? McpCall! + public global::tryAGI.OpenAI.McpCallItemResource PickMcpCall() => McpCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpCall' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickWebSearchCall( /// /// /// - public global::tryAGI.OpenAI.WebSearchCallItemResource PickWebSearchCall() => IsWebSearchCall - ? WebSearchCall! + public global::tryAGI.OpenAI.WebSearchCallItemResource PickWebSearchCall() => WebSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchCall' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCommandExecution( /// /// /// - public global::tryAGI.OpenAI.CommandExecutionItemResource PickCommandExecution() => IsCommandExecution - ? CommandExecution! + public global::tryAGI.OpenAI.CommandExecutionItemResource PickCommandExecution() => CommandExecution is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CommandExecution' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCreateSubagentCall( /// /// /// - public global::tryAGI.OpenAI.CreateSubagentCallItemResource PickCreateSubagentCall() => IsCreateSubagentCall - ? CreateSubagentCall! + public global::tryAGI.OpenAI.CreateSubagentCallItemResource PickCreateSubagentCall() => CreateSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CreateSubagentCall' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickSendSubagentInputCall( /// /// /// - public global::tryAGI.OpenAI.SendSubagentInputCallItemResource PickSendSubagentInputCall() => IsSendSubagentInputCall - ? SendSubagentInputCall! + public global::tryAGI.OpenAI.SendSubagentInputCallItemResource PickSendSubagentInputCall() => SendSubagentInputCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SendSubagentInputCall' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickResumeSubagentCall( /// /// /// - public global::tryAGI.OpenAI.ResumeSubagentCallItemResource PickResumeSubagentCall() => IsResumeSubagentCall - ? ResumeSubagentCall! + public global::tryAGI.OpenAI.ResumeSubagentCallItemResource PickResumeSubagentCall() => ResumeSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ResumeSubagentCall' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickWaitForSubagentsCall( /// /// /// - public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource PickWaitForSubagentsCall() => IsWaitForSubagentsCall - ? WaitForSubagentsCall! + public global::tryAGI.OpenAI.WaitForSubagentsCallItemResource PickWaitForSubagentsCall() => WaitForSubagentsCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WaitForSubagentsCall' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickInterruptSubagentCall( /// /// /// - public global::tryAGI.OpenAI.InterruptSubagentCallItemResource PickInterruptSubagentCall() => IsInterruptSubagentCall - ? InterruptSubagentCall! + public global::tryAGI.OpenAI.InterruptSubagentCallItemResource PickInterruptSubagentCall() => InterruptSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InterruptSubagentCall' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickCloseSubagentCall( /// /// /// - public global::tryAGI.OpenAI.CloseSubagentCallItemResource PickCloseSubagentCall() => IsCloseSubagentCall - ? CloseSubagentCall! + public global::tryAGI.OpenAI.CloseSubagentCallItemResource PickCloseSubagentCall() => CloseSubagentCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CloseSubagentCall' but the value was {ToString()}."); /// /// @@ -965,61 +965,61 @@ public bool Validate() Validate(); } - if (IsMessage && message != null) + if (Message is { } __value0 && message != null) { - return message(Message!); + return message(__value0); } - else if (IsReasoning && reasoning != null) + else if (Reasoning is { } __value1 && reasoning != null) { - return reasoning(Reasoning!); + return reasoning(__value1); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value2 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value2); } - else if (IsFunctionCallOutput && functionCallOutput != null) + else if (FunctionCallOutput is { } __value3 && functionCallOutput != null) { - return functionCallOutput(FunctionCallOutput!); + return functionCallOutput(__value3); } - else if (IsAgentMessage && agentMessage != null) + else if (AgentMessage is { } __value4 && agentMessage != null) { - return agentMessage(AgentMessage!); + return agentMessage(__value4); } - else if (IsMcpCall && mcpCall != null) + else if (McpCall is { } __value5 && mcpCall != null) { - return mcpCall(McpCall!); + return mcpCall(__value5); } - else if (IsWebSearchCall && webSearchCall != null) + else if (WebSearchCall is { } __value6 && webSearchCall != null) { - return webSearchCall(WebSearchCall!); + return webSearchCall(__value6); } - else if (IsCommandExecution && commandExecution != null) + else if (CommandExecution is { } __value7 && commandExecution != null) { - return commandExecution(CommandExecution!); + return commandExecution(__value7); } - else if (IsCreateSubagentCall && createSubagentCall != null) + else if (CreateSubagentCall is { } __value8 && createSubagentCall != null) { - return createSubagentCall(CreateSubagentCall!); + return createSubagentCall(__value8); } - else if (IsSendSubagentInputCall && sendSubagentInputCall != null) + else if (SendSubagentInputCall is { } __value9 && sendSubagentInputCall != null) { - return sendSubagentInputCall(SendSubagentInputCall!); + return sendSubagentInputCall(__value9); } - else if (IsResumeSubagentCall && resumeSubagentCall != null) + else if (ResumeSubagentCall is { } __value10 && resumeSubagentCall != null) { - return resumeSubagentCall(ResumeSubagentCall!); + return resumeSubagentCall(__value10); } - else if (IsWaitForSubagentsCall && waitForSubagentsCall != null) + else if (WaitForSubagentsCall is { } __value11 && waitForSubagentsCall != null) { - return waitForSubagentsCall(WaitForSubagentsCall!); + return waitForSubagentsCall(__value11); } - else if (IsInterruptSubagentCall && interruptSubagentCall != null) + else if (InterruptSubagentCall is { } __value12 && interruptSubagentCall != null) { - return interruptSubagentCall(InterruptSubagentCall!); + return interruptSubagentCall(__value12); } - else if (IsCloseSubagentCall && closeSubagentCall != null) + else if (CloseSubagentCall is { } __value13 && closeSubagentCall != null) { - return closeSubagentCall(CloseSubagentCall!); + return closeSubagentCall(__value13); } return default(TResult); @@ -1063,61 +1063,61 @@ public void Match( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsReasoning) + else if (Reasoning is { } __value1) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value3) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value3); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value4) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value4); } - else if (IsMcpCall) + else if (McpCall is { } __value5) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value5); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value6) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value6); } - else if (IsCommandExecution) + else if (CommandExecution is { } __value7) { - commandExecution?.Invoke(CommandExecution!); + commandExecution?.Invoke(__value7); } - else if (IsCreateSubagentCall) + else if (CreateSubagentCall is { } __value8) { - createSubagentCall?.Invoke(CreateSubagentCall!); + createSubagentCall?.Invoke(__value8); } - else if (IsSendSubagentInputCall) + else if (SendSubagentInputCall is { } __value9) { - sendSubagentInputCall?.Invoke(SendSubagentInputCall!); + sendSubagentInputCall?.Invoke(__value9); } - else if (IsResumeSubagentCall) + else if (ResumeSubagentCall is { } __value10) { - resumeSubagentCall?.Invoke(ResumeSubagentCall!); + resumeSubagentCall?.Invoke(__value10); } - else if (IsWaitForSubagentsCall) + else if (WaitForSubagentsCall is { } __value11) { - waitForSubagentsCall?.Invoke(WaitForSubagentsCall!); + waitForSubagentsCall?.Invoke(__value11); } - else if (IsInterruptSubagentCall) + else if (InterruptSubagentCall is { } __value12) { - interruptSubagentCall?.Invoke(InterruptSubagentCall!); + interruptSubagentCall?.Invoke(__value12); } - else if (IsCloseSubagentCall) + else if (CloseSubagentCall is { } __value13) { - closeSubagentCall?.Invoke(CloseSubagentCall!); + closeSubagentCall?.Invoke(__value13); } } @@ -1146,61 +1146,61 @@ public void Switch( Validate(); } - if (IsMessage) + if (Message is { } __value0) { - message?.Invoke(Message!); + message?.Invoke(__value0); } - else if (IsReasoning) + else if (Reasoning is { } __value1) { - reasoning?.Invoke(Reasoning!); + reasoning?.Invoke(__value1); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value2) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value2); } - else if (IsFunctionCallOutput) + else if (FunctionCallOutput is { } __value3) { - functionCallOutput?.Invoke(FunctionCallOutput!); + functionCallOutput?.Invoke(__value3); } - else if (IsAgentMessage) + else if (AgentMessage is { } __value4) { - agentMessage?.Invoke(AgentMessage!); + agentMessage?.Invoke(__value4); } - else if (IsMcpCall) + else if (McpCall is { } __value5) { - mcpCall?.Invoke(McpCall!); + mcpCall?.Invoke(__value5); } - else if (IsWebSearchCall) + else if (WebSearchCall is { } __value6) { - webSearchCall?.Invoke(WebSearchCall!); + webSearchCall?.Invoke(__value6); } - else if (IsCommandExecution) + else if (CommandExecution is { } __value7) { - commandExecution?.Invoke(CommandExecution!); + commandExecution?.Invoke(__value7); } - else if (IsCreateSubagentCall) + else if (CreateSubagentCall is { } __value8) { - createSubagentCall?.Invoke(CreateSubagentCall!); + createSubagentCall?.Invoke(__value8); } - else if (IsSendSubagentInputCall) + else if (SendSubagentInputCall is { } __value9) { - sendSubagentInputCall?.Invoke(SendSubagentInputCall!); + sendSubagentInputCall?.Invoke(__value9); } - else if (IsResumeSubagentCall) + else if (ResumeSubagentCall is { } __value10) { - resumeSubagentCall?.Invoke(ResumeSubagentCall!); + resumeSubagentCall?.Invoke(__value10); } - else if (IsWaitForSubagentsCall) + else if (WaitForSubagentsCall is { } __value11) { - waitForSubagentsCall?.Invoke(WaitForSubagentsCall!); + waitForSubagentsCall?.Invoke(__value11); } - else if (IsInterruptSubagentCall) + else if (InterruptSubagentCall is { } __value12) { - interruptSubagentCall?.Invoke(InterruptSubagentCall!); + interruptSubagentCall?.Invoke(__value12); } - else if (IsCloseSubagentCall) + else if (CloseSubagentCall is { } __value13) { - closeSubagentCall?.Invoke(CloseSubagentCall!); + closeSubagentCall?.Invoke(__value13); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs index c5a13bb0f..d933671c9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickSkillReference( /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParam PickSkillReference() => IsSkillReference - ? SkillReference! + public global::tryAGI.OpenAI.SkillReferenceParam PickSkillReference() => SkillReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SkillReference' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.InlineSkillParam PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.InlineSkillParam PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSkillReference && skillReference != null) + if (SkillReference is { } __value0 && skillReference != null) { - return skillReference(SkillReference!); + return skillReference(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs index b6870171d..db0ed2b48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs @@ -47,8 +47,8 @@ public bool TryPickSkillReference( /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParam PickSkillReference() => IsSkillReference - ? SkillReference! + public global::tryAGI.OpenAI.SkillReferenceParam PickSkillReference() => SkillReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SkillReference' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.InlineSkillParam PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.InlineSkillParam PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSkillReference && skillReference != null) + if (SkillReference is { } __value0 && skillReference != null) { - return skillReference(SkillReference!); + return skillReference(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem3.g.cs index 1eef10aeb..09e6ff990 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem3.g.cs @@ -47,8 +47,8 @@ public bool TryPickSkillReference( /// /// /// - public global::tryAGI.OpenAI.BetaSkillReferenceParam PickSkillReference() => IsSkillReference - ? SkillReference! + public global::tryAGI.OpenAI.BetaSkillReferenceParam PickSkillReference() => SkillReference is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SkillReference' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickInline( /// /// /// - public global::tryAGI.OpenAI.BetaInlineSkillParam PickInline() => IsInline - ? Inline! + public global::tryAGI.OpenAI.BetaInlineSkillParam PickInline() => Inline is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inline' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsSkillReference && skillReference != null) + if (SkillReference is { } __value0 && skillReference != null) { - return skillReference(SkillReference!); + return skillReference(__value0); } - else if (IsInline && inline != null) + else if (Inline is { } __value1 && inline != null) { - return inline(Inline!); + return inline(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsSkillReference) + if (SkillReference is { } __value0) { - skillReference?.Invoke(SkillReference!); + skillReference?.Invoke(__value0); } - else if (IsInline) + else if (Inline is { } __value1) { - inline?.Invoke(Inline!); + inline?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs index 70a893d8f..da7930daf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitCurrency.g.cs @@ -42,8 +42,8 @@ public bool TryPickSpendLimitCurrencyVariant1( /// /// /// - public string PickSpendLimitCurrencyVariant1() => IsSpendLimitCurrencyVariant1 - ? SpendLimitCurrencyVariant1! + public string PickSpendLimitCurrencyVariant1() => SpendLimitCurrencyVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpendLimitCurrencyVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.SpendLimitCurrencyEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.SpendLimitCurrencyEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSpendLimitCurrencyVariant1 && spendLimitCurrencyVariant1 != null) + if (SpendLimitCurrencyVariant1 is { } __value0 && spendLimitCurrencyVariant1 != null) { - return spendLimitCurrencyVariant1(SpendLimitCurrencyVariant1!); + return spendLimitCurrencyVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSpendLimitCurrencyVariant1) + if (SpendLimitCurrencyVariant1 is { } __value0) { - spendLimitCurrencyVariant1?.Invoke(SpendLimitCurrencyVariant1!); + spendLimitCurrencyVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSpendLimitCurrencyVariant1) + if (SpendLimitCurrencyVariant1 is { } __value0) { - spendLimitCurrencyVariant1?.Invoke(SpendLimitCurrencyVariant1!); + spendLimitCurrencyVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs index 6b0ff6e9f..6780a6947 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitEnforcementStatus.g.cs @@ -42,8 +42,8 @@ public bool TryPickSpendLimitEnforcementStatusVariant1( /// /// /// - public string PickSpendLimitEnforcementStatusVariant1() => IsSpendLimitEnforcementStatusVariant1 - ? SpendLimitEnforcementStatusVariant1! + public string PickSpendLimitEnforcementStatusVariant1() => SpendLimitEnforcementStatusVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpendLimitEnforcementStatusVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.SpendLimitEnforcementStatusEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSpendLimitEnforcementStatusVariant1 && spendLimitEnforcementStatusVariant1 != null) + if (SpendLimitEnforcementStatusVariant1 is { } __value0 && spendLimitEnforcementStatusVariant1 != null) { - return spendLimitEnforcementStatusVariant1(SpendLimitEnforcementStatusVariant1!); + return spendLimitEnforcementStatusVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSpendLimitEnforcementStatusVariant1) + if (SpendLimitEnforcementStatusVariant1 is { } __value0) { - spendLimitEnforcementStatusVariant1?.Invoke(SpendLimitEnforcementStatusVariant1!); + spendLimitEnforcementStatusVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSpendLimitEnforcementStatusVariant1) + if (SpendLimitEnforcementStatusVariant1 is { } __value0) { - spendLimitEnforcementStatusVariant1?.Invoke(SpendLimitEnforcementStatusVariant1!); + spendLimitEnforcementStatusVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs index 827947de5..9c6378b34 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SpendLimitInterval.g.cs @@ -42,8 +42,8 @@ public bool TryPickSpendLimitIntervalVariant1( /// /// /// - public string PickSpendLimitIntervalVariant1() => IsSpendLimitIntervalVariant1 - ? SpendLimitIntervalVariant1! + public string PickSpendLimitIntervalVariant1() => SpendLimitIntervalVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpendLimitIntervalVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.SpendLimitIntervalEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.SpendLimitIntervalEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSpendLimitIntervalVariant1 && spendLimitIntervalVariant1 != null) + if (SpendLimitIntervalVariant1 is { } __value0 && spendLimitIntervalVariant1 != null) { - return spendLimitIntervalVariant1(SpendLimitIntervalVariant1!); + return spendLimitIntervalVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSpendLimitIntervalVariant1) + if (SpendLimitIntervalVariant1 is { } __value0) { - spendLimitIntervalVariant1?.Invoke(SpendLimitIntervalVariant1!); + spendLimitIntervalVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSpendLimitIntervalVariant1) + if (SpendLimitIntervalVariant1 is { } __value0) { - spendLimitIntervalVariant1?.Invoke(SpendLimitIntervalVariant1!); + spendLimitIntervalVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs index e80205d14..dbf44a779 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs @@ -47,8 +47,8 @@ public bool TryPickActive( /// /// /// - public global::tryAGI.OpenAI.ActiveStatus PickActive() => IsActive - ? Active! + public global::tryAGI.OpenAI.ActiveStatus PickActive() => Active is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Active' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickLocked( /// /// /// - public global::tryAGI.OpenAI.LockedStatus PickLocked() => IsLocked - ? Locked! + public global::tryAGI.OpenAI.LockedStatus PickLocked() => Locked is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Locked' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickClosed( /// /// /// - public global::tryAGI.OpenAI.ClosedStatus PickClosed() => IsClosed - ? Closed! + public global::tryAGI.OpenAI.ClosedStatus PickClosed() => Closed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Closed' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsActive && active != null) + if (Active is { } __value0 && active != null) { - return active(Active!); + return active(__value0); } - else if (IsLocked && locked != null) + else if (Locked is { } __value1 && locked != null) { - return locked(Locked!); + return locked(__value1); } - else if (IsClosed && closed != null) + else if (Closed is { } __value2 && closed != null) { - return closed(Closed!); + return closed(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsActive) + if (Active is { } __value0) { - active?.Invoke(Active!); + active?.Invoke(__value0); } - else if (IsLocked) + else if (Locked is { } __value1) { - locked?.Invoke(Locked!); + locked?.Invoke(__value1); } - else if (IsClosed) + else if (Closed is { } __value2) { - closed?.Invoke(Closed!); + closed?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsActive) + if (Active is { } __value0) { - active?.Invoke(Active!); + active?.Invoke(__value0); } - else if (IsLocked) + else if (Locked is { } __value1) { - locked?.Invoke(Locked!); + locked?.Invoke(__value1); } - else if (IsClosed) + else if (Closed is { } __value2) { - closed?.Invoke(Closed!); + closed?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs index 1139312ba..95fa098f1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs @@ -45,8 +45,8 @@ public bool TryPickStopConfigurationVariant1( /// /// /// - public string PickStopConfigurationVariant1() => IsStopConfigurationVariant1 - ? StopConfigurationVariant1! + public string PickStopConfigurationVariant1() => StopConfigurationVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StopConfigurationVariant1' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickStopConfigurationVariant2( /// /// /// - public global::System.Collections.Generic.IList PickStopConfigurationVariant2() => IsStopConfigurationVariant2 - ? StopConfigurationVariant2! + public global::System.Collections.Generic.IList PickStopConfigurationVariant2() => StopConfigurationVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StopConfigurationVariant2' but the value was {ToString()}."); /// /// @@ -157,13 +157,13 @@ public bool Validate() Validate(); } - if (IsStopConfigurationVariant1 && stopConfigurationVariant1 != null) + if (StopConfigurationVariant1 is { } __value0 && stopConfigurationVariant1 != null) { - return stopConfigurationVariant1(StopConfigurationVariant1!); + return stopConfigurationVariant1(__value0); } - else if (IsStopConfigurationVariant2 && stopConfigurationVariant2 != null) + else if (StopConfigurationVariant2 is { } __value1 && stopConfigurationVariant2 != null) { - return stopConfigurationVariant2(StopConfigurationVariant2!); + return stopConfigurationVariant2(__value1); } return default(TResult); @@ -183,13 +183,13 @@ public void Match( Validate(); } - if (IsStopConfigurationVariant1) + if (StopConfigurationVariant1 is { } __value0) { - stopConfigurationVariant1?.Invoke(StopConfigurationVariant1!); + stopConfigurationVariant1?.Invoke(__value0); } - else if (IsStopConfigurationVariant2) + else if (StopConfigurationVariant2 is { } __value1) { - stopConfigurationVariant2?.Invoke(StopConfigurationVariant2!); + stopConfigurationVariant2?.Invoke(__value1); } } @@ -206,13 +206,13 @@ public void Switch( Validate(); } - if (IsStopConfigurationVariant1) + if (StopConfigurationVariant1 is { } __value0) { - stopConfigurationVariant1?.Invoke(StopConfigurationVariant1!); + stopConfigurationVariant1?.Invoke(__value0); } - else if (IsStopConfigurationVariant2) + else if (StopConfigurationVariant2 is { } __value1) { - stopConfigurationVariant2?.Invoke(StopConfigurationVariant2!); + stopConfigurationVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatParam.g.cs index a09a67c40..5df30bce2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.TextFormatParamText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.TextFormatParamText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickJsonSchema( /// /// /// - public global::tryAGI.OpenAI.TextFormatParamJsonSchema PickJsonSchema() => IsJsonSchema - ? JsonSchema! + public global::tryAGI.OpenAI.TextFormatParamJsonSchema PickJsonSchema() => JsonSchema is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonSchema' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsJsonSchema && jsonSchema != null) + else if (JsonSchema is { } __value1 && jsonSchema != null) { - return jsonSchema(JsonSchema!); + return jsonSchema(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatResource.g.cs index 389489997..3ffe1c363 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextFormatResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.TextFormatResourceText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickJsonSchema( /// /// /// - public global::tryAGI.OpenAI.TextFormatResourceJsonSchema PickJsonSchema() => IsJsonSchema - ? JsonSchema! + public global::tryAGI.OpenAI.TextFormatResourceJsonSchema PickJsonSchema() => JsonSchema is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonSchema' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsJsonSchema && jsonSchema != null) + else if (JsonSchema is { } __value1 && jsonSchema != null) { - return jsonSchema(JsonSchema!); + return jsonSchema(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs index af34413e7..f767c158d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TextResponseFormatConfiguration.g.cs @@ -50,8 +50,8 @@ public bool TryPickText( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatText PickText() => IsText - ? Text! + public global::tryAGI.OpenAI.ResponseFormatText PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -88,8 +88,8 @@ public bool TryPickJsonSchema( /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema PickJsonSchema() => IsJsonSchema - ? JsonSchema! + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema PickJsonSchema() => JsonSchema is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonSchema' but the value was {ToString()}."); /// @@ -128,8 +128,8 @@ public bool TryPickJsonObject( /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObject PickJsonObject() => IsJsonObject - ? JsonObject! + public global::tryAGI.OpenAI.ResponseFormatJsonObject PickJsonObject() => JsonObject is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'JsonObject' but the value was {ToString()}."); /// /// @@ -254,17 +254,17 @@ public bool Validate() Validate(); } - if (IsText && text != null) + if (Text is { } __value0 && text != null) { - return text(Text!); + return text(__value0); } - else if (IsJsonSchema && jsonSchema != null) + else if (JsonSchema is { } __value1 && jsonSchema != null) { - return jsonSchema(JsonSchema!); + return jsonSchema(__value1); } - else if (IsJsonObject && jsonObject != null) + else if (JsonObject is { } __value2 && jsonObject != null) { - return jsonObject(JsonObject!); + return jsonObject(__value2); } return default(TResult); @@ -286,17 +286,17 @@ public void Match( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } } @@ -314,17 +314,17 @@ public void Switch( Validate(); } - if (IsText) + if (Text is { } __value0) { - text?.Invoke(Text!); + text?.Invoke(__value0); } - else if (IsJsonSchema) + else if (JsonSchema is { } __value1) { - jsonSchema?.Invoke(JsonSchema!); + jsonSchema?.Invoke(__value1); } - else if (IsJsonObject) + else if (JsonObject is { } __value2) { - jsonObject?.Invoke(JsonObject!); + jsonObject?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs index 7de1987ae..793042e48 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickChatkitUserMessage( /// /// /// - public global::tryAGI.OpenAI.UserMessageItem PickChatkitUserMessage() => IsChatkitUserMessage - ? ChatkitUserMessage! + public global::tryAGI.OpenAI.UserMessageItem PickChatkitUserMessage() => ChatkitUserMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChatkitUserMessage' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickChatkitAssistantMessage( /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem PickChatkitAssistantMessage() => IsChatkitAssistantMessage - ? ChatkitAssistantMessage! + public global::tryAGI.OpenAI.AssistantMessageItem PickChatkitAssistantMessage() => ChatkitAssistantMessage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChatkitAssistantMessage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickChatkitWidget( /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem PickChatkitWidget() => IsChatkitWidget - ? ChatkitWidget! + public global::tryAGI.OpenAI.WidgetMessageItem PickChatkitWidget() => ChatkitWidget is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChatkitWidget' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickChatkitClientToolCall( /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem PickChatkitClientToolCall() => IsChatkitClientToolCall - ? ChatkitClientToolCall! + public global::tryAGI.OpenAI.ClientToolCallItem PickChatkitClientToolCall() => ChatkitClientToolCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChatkitClientToolCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickChatkitTask( /// /// /// - public global::tryAGI.OpenAI.TaskItem PickChatkitTask() => IsChatkitTask - ? ChatkitTask! + public global::tryAGI.OpenAI.TaskItem PickChatkitTask() => ChatkitTask is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChatkitTask' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickChatkitTaskGroup( /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem PickChatkitTaskGroup() => IsChatkitTaskGroup - ? ChatkitTaskGroup! + public global::tryAGI.OpenAI.TaskGroupItem PickChatkitTaskGroup() => ChatkitTaskGroup is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ChatkitTaskGroup' but the value was {ToString()}."); /// /// @@ -445,29 +445,29 @@ public bool Validate() Validate(); } - if (IsChatkitUserMessage && chatkitUserMessage != null) + if (ChatkitUserMessage is { } __value0 && chatkitUserMessage != null) { - return chatkitUserMessage(ChatkitUserMessage!); + return chatkitUserMessage(__value0); } - else if (IsChatkitAssistantMessage && chatkitAssistantMessage != null) + else if (ChatkitAssistantMessage is { } __value1 && chatkitAssistantMessage != null) { - return chatkitAssistantMessage(ChatkitAssistantMessage!); + return chatkitAssistantMessage(__value1); } - else if (IsChatkitWidget && chatkitWidget != null) + else if (ChatkitWidget is { } __value2 && chatkitWidget != null) { - return chatkitWidget(ChatkitWidget!); + return chatkitWidget(__value2); } - else if (IsChatkitClientToolCall && chatkitClientToolCall != null) + else if (ChatkitClientToolCall is { } __value3 && chatkitClientToolCall != null) { - return chatkitClientToolCall(ChatkitClientToolCall!); + return chatkitClientToolCall(__value3); } - else if (IsChatkitTask && chatkitTask != null) + else if (ChatkitTask is { } __value4 && chatkitTask != null) { - return chatkitTask(ChatkitTask!); + return chatkitTask(__value4); } - else if (IsChatkitTaskGroup && chatkitTaskGroup != null) + else if (ChatkitTaskGroup is { } __value5 && chatkitTaskGroup != null) { - return chatkitTaskGroup(ChatkitTaskGroup!); + return chatkitTaskGroup(__value5); } return default(TResult); @@ -495,29 +495,29 @@ public void Match( Validate(); } - if (IsChatkitUserMessage) + if (ChatkitUserMessage is { } __value0) { - chatkitUserMessage?.Invoke(ChatkitUserMessage!); + chatkitUserMessage?.Invoke(__value0); } - else if (IsChatkitAssistantMessage) + else if (ChatkitAssistantMessage is { } __value1) { - chatkitAssistantMessage?.Invoke(ChatkitAssistantMessage!); + chatkitAssistantMessage?.Invoke(__value1); } - else if (IsChatkitWidget) + else if (ChatkitWidget is { } __value2) { - chatkitWidget?.Invoke(ChatkitWidget!); + chatkitWidget?.Invoke(__value2); } - else if (IsChatkitClientToolCall) + else if (ChatkitClientToolCall is { } __value3) { - chatkitClientToolCall?.Invoke(ChatkitClientToolCall!); + chatkitClientToolCall?.Invoke(__value3); } - else if (IsChatkitTask) + else if (ChatkitTask is { } __value4) { - chatkitTask?.Invoke(ChatkitTask!); + chatkitTask?.Invoke(__value4); } - else if (IsChatkitTaskGroup) + else if (ChatkitTaskGroup is { } __value5) { - chatkitTaskGroup?.Invoke(ChatkitTaskGroup!); + chatkitTaskGroup?.Invoke(__value5); } } @@ -538,29 +538,29 @@ public void Switch( Validate(); } - if (IsChatkitUserMessage) + if (ChatkitUserMessage is { } __value0) { - chatkitUserMessage?.Invoke(ChatkitUserMessage!); + chatkitUserMessage?.Invoke(__value0); } - else if (IsChatkitAssistantMessage) + else if (ChatkitAssistantMessage is { } __value1) { - chatkitAssistantMessage?.Invoke(ChatkitAssistantMessage!); + chatkitAssistantMessage?.Invoke(__value1); } - else if (IsChatkitWidget) + else if (ChatkitWidget is { } __value2) { - chatkitWidget?.Invoke(ChatkitWidget!); + chatkitWidget?.Invoke(__value2); } - else if (IsChatkitClientToolCall) + else if (ChatkitClientToolCall is { } __value3) { - chatkitClientToolCall?.Invoke(ChatkitClientToolCall!); + chatkitClientToolCall?.Invoke(__value3); } - else if (IsChatkitTask) + else if (ChatkitTask is { } __value4) { - chatkitTask?.Invoke(ChatkitTask!); + chatkitTask?.Invoke(__value4); } - else if (IsChatkitTaskGroup) + else if (ChatkitTaskGroup is { } __value5) { - chatkitTaskGroup?.Invoke(ChatkitTaskGroup!); + chatkitTaskGroup?.Invoke(__value5); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs index fde2fb0b8..29d574867 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs @@ -42,8 +42,8 @@ public bool TryPickThreadStreamEventVariant1( /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1 PickThreadStreamEventVariant1() => IsThreadStreamEventVariant1 - ? ThreadStreamEventVariant1! + public global::tryAGI.OpenAI.ThreadStreamEventVariant1 PickThreadStreamEventVariant1() => ThreadStreamEventVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ThreadStreamEventVariant1' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsThreadStreamEventVariant1 && threadStreamEventVariant1 != null) + if (ThreadStreamEventVariant1 is { } __value0 && threadStreamEventVariant1 != null) { - return threadStreamEventVariant1(ThreadStreamEventVariant1!); + return threadStreamEventVariant1(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsThreadStreamEventVariant1) + if (ThreadStreamEventVariant1 is { } __value0) { - threadStreamEventVariant1?.Invoke(ThreadStreamEventVariant1!); + threadStreamEventVariant1?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsThreadStreamEventVariant1) + if (ThreadStreamEventVariant1 is { } __value0) { - threadStreamEventVariant1?.Invoke(ThreadStreamEventVariant1!); + threadStreamEventVariant1?.Invoke(__value0); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs index 09daefe94..045b8adb6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Tool.g.cs @@ -42,8 +42,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.FunctionTool PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.FunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFileSearch( /// /// /// - public global::tryAGI.OpenAI.FileSearchTool PickFileSearch() => IsFileSearch - ? FileSearch! + public global::tryAGI.OpenAI.FileSearchTool PickFileSearch() => FileSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickComputer( /// /// /// - public global::tryAGI.OpenAI.ComputerTool PickComputer() => IsComputer - ? Computer! + public global::tryAGI.OpenAI.ComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickComputerUsePreview( /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool PickComputerUsePreview() => IsComputerUsePreview - ? ComputerUsePreview! + public global::tryAGI.OpenAI.ComputerUsePreviewTool PickComputerUsePreview() => ComputerUsePreview is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerUsePreview' but the value was {ToString()}."); /// @@ -191,8 +191,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.WebSearchTool PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.WebSearchTool PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// @@ -229,8 +229,8 @@ public bool TryPickMcp( /// /// /// - public global::tryAGI.OpenAI.MCPTool PickMcp() => IsMcp - ? Mcp! + public global::tryAGI.OpenAI.MCPTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -266,8 +266,8 @@ public bool TryPickCodeInterpreter( /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTool PickCodeInterpreter() => IsCodeInterpreter - ? CodeInterpreter! + public global::tryAGI.OpenAI.CodeInterpreterTool PickCodeInterpreter() => CodeInterpreter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeInterpreter' but the value was {ToString()}."); /// @@ -303,8 +303,8 @@ public bool TryPickProgrammaticToolCalling( /// /// /// - public global::tryAGI.OpenAI.ProgrammaticToolCallingParam PickProgrammaticToolCalling() => IsProgrammaticToolCalling - ? ProgrammaticToolCalling! + public global::tryAGI.OpenAI.ProgrammaticToolCallingParam PickProgrammaticToolCalling() => ProgrammaticToolCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProgrammaticToolCalling' but the value was {ToString()}."); /// @@ -340,8 +340,8 @@ public bool TryPickImageGeneration( /// /// /// - public global::tryAGI.OpenAI.ImageGenTool PickImageGeneration() => IsImageGeneration - ? ImageGeneration! + public global::tryAGI.OpenAI.ImageGenTool PickImageGeneration() => ImageGeneration is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageGeneration' but the value was {ToString()}."); /// @@ -377,8 +377,8 @@ public bool TryPickLocalShell( /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParam PickLocalShell() => IsLocalShell - ? LocalShell! + public global::tryAGI.OpenAI.LocalShellToolParam PickLocalShell() => LocalShell is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'LocalShell' but the value was {ToString()}."); /// @@ -414,8 +414,8 @@ public bool TryPickShell( /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParam PickShell() => IsShell - ? Shell! + public global::tryAGI.OpenAI.FunctionShellToolParam PickShell() => Shell is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shell' but the value was {ToString()}."); /// @@ -451,8 +451,8 @@ public bool TryPickCustom( /// /// /// - public global::tryAGI.OpenAI.CustomToolParam PickCustom() => IsCustom - ? Custom! + public global::tryAGI.OpenAI.CustomToolParam PickCustom() => Custom is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// @@ -488,8 +488,8 @@ public bool TryPickNamespace( /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParam PickNamespace() => IsNamespace - ? Namespace! + public global::tryAGI.OpenAI.NamespaceToolParam PickNamespace() => Namespace is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Namespace' but the value was {ToString()}."); /// @@ -525,8 +525,8 @@ public bool TryPickToolSearch( /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParam PickToolSearch() => IsToolSearch - ? ToolSearch! + public global::tryAGI.OpenAI.ToolSearchToolParam PickToolSearch() => ToolSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolSearch' but the value was {ToString()}."); /// @@ -562,8 +562,8 @@ public bool TryPickWebSearchPreview( /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool PickWebSearchPreview() => IsWebSearchPreview - ? WebSearchPreview! + public global::tryAGI.OpenAI.WebSearchPreviewTool PickWebSearchPreview() => WebSearchPreview is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearchPreview' but the value was {ToString()}."); /// @@ -599,8 +599,8 @@ public bool TryPickApplyPatch( /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParam PickApplyPatch() => IsApplyPatch - ? ApplyPatch! + public global::tryAGI.OpenAI.ApplyPatchToolParam PickApplyPatch() => ApplyPatch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApplyPatch' but the value was {ToString()}."); /// /// @@ -1089,69 +1089,69 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsFileSearch && fileSearch != null) + else if (FileSearch is { } __value1 && fileSearch != null) { - return fileSearch(FileSearch!); + return fileSearch(__value1); } - else if (IsComputer && computer != null) + else if (Computer is { } __value2 && computer != null) { - return computer(Computer!); + return computer(__value2); } - else if (IsComputerUsePreview && computerUsePreview != null) + else if (ComputerUsePreview is { } __value3 && computerUsePreview != null) { - return computerUsePreview(ComputerUsePreview!); + return computerUsePreview(__value3); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value4 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value4); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value5 && mcp != null) { - return mcp(Mcp!); + return mcp(__value5); } - else if (IsCodeInterpreter && codeInterpreter != null) + else if (CodeInterpreter is { } __value6 && codeInterpreter != null) { - return codeInterpreter(CodeInterpreter!); + return codeInterpreter(__value6); } - else if (IsProgrammaticToolCalling && programmaticToolCalling != null) + else if (ProgrammaticToolCalling is { } __value7 && programmaticToolCalling != null) { - return programmaticToolCalling(ProgrammaticToolCalling!); + return programmaticToolCalling(__value7); } - else if (IsImageGeneration && imageGeneration != null) + else if (ImageGeneration is { } __value8 && imageGeneration != null) { - return imageGeneration(ImageGeneration!); + return imageGeneration(__value8); } - else if (IsLocalShell && localShell != null) + else if (LocalShell is { } __value9 && localShell != null) { - return localShell(LocalShell!); + return localShell(__value9); } - else if (IsShell && shell != null) + else if (Shell is { } __value10 && shell != null) { - return shell(Shell!); + return shell(__value10); } - else if (IsCustom && custom != null) + else if (Custom is { } __value11 && custom != null) { - return custom(Custom!); + return custom(__value11); } - else if (IsNamespace && @namespace != null) + else if (Namespace is { } __value12 && @namespace != null) { - return @namespace(Namespace!); + return @namespace(__value12); } - else if (IsToolSearch && toolSearch != null) + else if (ToolSearch is { } __value13 && toolSearch != null) { - return toolSearch(ToolSearch!); + return toolSearch(__value13); } - else if (IsWebSearchPreview && webSearchPreview != null) + else if (WebSearchPreview is { } __value14 && webSearchPreview != null) { - return webSearchPreview(WebSearchPreview!); + return webSearchPreview(__value14); } - else if (IsApplyPatch && applyPatch != null) + else if (ApplyPatch is { } __value15 && applyPatch != null) { - return applyPatch(ApplyPatch!); + return applyPatch(__value15); } return default(TResult); @@ -1199,69 +1199,69 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsFileSearch) + else if (FileSearch is { } __value1) { - fileSearch?.Invoke(FileSearch!); + fileSearch?.Invoke(__value1); } - else if (IsComputer) + else if (Computer is { } __value2) { - computer?.Invoke(Computer!); + computer?.Invoke(__value2); } - else if (IsComputerUsePreview) + else if (ComputerUsePreview is { } __value3) { - computerUsePreview?.Invoke(ComputerUsePreview!); + computerUsePreview?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } - else if (IsMcp) + else if (Mcp is { } __value5) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value5); } - else if (IsCodeInterpreter) + else if (CodeInterpreter is { } __value6) { - codeInterpreter?.Invoke(CodeInterpreter!); + codeInterpreter?.Invoke(__value6); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value7) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value7); } - else if (IsImageGeneration) + else if (ImageGeneration is { } __value8) { - imageGeneration?.Invoke(ImageGeneration!); + imageGeneration?.Invoke(__value8); } - else if (IsLocalShell) + else if (LocalShell is { } __value9) { - localShell?.Invoke(LocalShell!); + localShell?.Invoke(__value9); } - else if (IsShell) + else if (Shell is { } __value10) { - shell?.Invoke(Shell!); + shell?.Invoke(__value10); } - else if (IsCustom) + else if (Custom is { } __value11) { - custom?.Invoke(Custom!); + custom?.Invoke(__value11); } - else if (IsNamespace) + else if (Namespace is { } __value12) { - @namespace?.Invoke(Namespace!); + @namespace?.Invoke(__value12); } - else if (IsToolSearch) + else if (ToolSearch is { } __value13) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value13); } - else if (IsWebSearchPreview) + else if (WebSearchPreview is { } __value14) { - webSearchPreview?.Invoke(WebSearchPreview!); + webSearchPreview?.Invoke(__value14); } - else if (IsApplyPatch) + else if (ApplyPatch is { } __value15) { - applyPatch?.Invoke(ApplyPatch!); + applyPatch?.Invoke(__value15); } } @@ -1292,69 +1292,69 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsFileSearch) + else if (FileSearch is { } __value1) { - fileSearch?.Invoke(FileSearch!); + fileSearch?.Invoke(__value1); } - else if (IsComputer) + else if (Computer is { } __value2) { - computer?.Invoke(Computer!); + computer?.Invoke(__value2); } - else if (IsComputerUsePreview) + else if (ComputerUsePreview is { } __value3) { - computerUsePreview?.Invoke(ComputerUsePreview!); + computerUsePreview?.Invoke(__value3); } - else if (IsWebSearch) + else if (WebSearch is { } __value4) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value4); } - else if (IsMcp) + else if (Mcp is { } __value5) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value5); } - else if (IsCodeInterpreter) + else if (CodeInterpreter is { } __value6) { - codeInterpreter?.Invoke(CodeInterpreter!); + codeInterpreter?.Invoke(__value6); } - else if (IsProgrammaticToolCalling) + else if (ProgrammaticToolCalling is { } __value7) { - programmaticToolCalling?.Invoke(ProgrammaticToolCalling!); + programmaticToolCalling?.Invoke(__value7); } - else if (IsImageGeneration) + else if (ImageGeneration is { } __value8) { - imageGeneration?.Invoke(ImageGeneration!); + imageGeneration?.Invoke(__value8); } - else if (IsLocalShell) + else if (LocalShell is { } __value9) { - localShell?.Invoke(LocalShell!); + localShell?.Invoke(__value9); } - else if (IsShell) + else if (Shell is { } __value10) { - shell?.Invoke(Shell!); + shell?.Invoke(__value10); } - else if (IsCustom) + else if (Custom is { } __value11) { - custom?.Invoke(Custom!); + custom?.Invoke(__value11); } - else if (IsNamespace) + else if (Namespace is { } __value12) { - @namespace?.Invoke(Namespace!); + @namespace?.Invoke(__value12); } - else if (IsToolSearch) + else if (ToolSearch is { } __value13) { - toolSearch?.Invoke(ToolSearch!); + toolSearch?.Invoke(__value13); } - else if (IsWebSearchPreview) + else if (WebSearchPreview is { } __value14) { - webSearchPreview?.Invoke(WebSearchPreview!); + webSearchPreview?.Invoke(__value14); } - else if (IsApplyPatch) + else if (ApplyPatch is { } __value15) { - applyPatch?.Invoke(ApplyPatch!); + applyPatch?.Invoke(__value15); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCaller.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCaller.g.cs index 774b9d686..50fed2d3a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCaller.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCaller.g.cs @@ -47,8 +47,8 @@ public bool TryPickDirect( /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCaller PickDirect() => IsDirect - ? Direct! + public global::tryAGI.OpenAI.DirectToolCallCaller PickDirect() => Direct is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Direct' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCaller PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.ProgramToolCallCaller PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDirect && direct != null) + if (Direct is { } __value0 && direct != null) { - return direct(Direct!); + return direct(__value0); } - else if (IsProgram && program != null) + else if (Program is { } __value1 && program != null) { - return program(Program!); + return program(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCallerParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCallerParam.g.cs index 10c339091..e83adc8ea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCallerParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolCallCallerParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickDirect( /// /// /// - public global::tryAGI.OpenAI.DirectToolCallCallerParam PickDirect() => IsDirect - ? Direct! + public global::tryAGI.OpenAI.DirectToolCallCallerParam PickDirect() => Direct is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Direct' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickProgram( /// /// /// - public global::tryAGI.OpenAI.ProgramToolCallCallerParam PickProgram() => IsProgram - ? Program! + public global::tryAGI.OpenAI.ProgramToolCallCallerParam PickProgram() => Program is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Program' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsDirect && direct != null) + if (Direct is { } __value0 && direct != null) { - return direct(Direct!); + return direct(__value0); } - else if (IsProgram && program != null) + else if (Program is { } __value1 && program != null) { - return program(Program!); + return program(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsDirect) + if (Direct is { } __value0) { - direct?.Invoke(Direct!); + direct?.Invoke(__value0); } - else if (IsProgram) + else if (Program is { } __value1) { - program?.Invoke(Program!); + program?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice10.Json.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice9.Json.g.cs similarity index 89% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice10.Json.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice9.Json.g.cs index 196c91e42..f82ee104a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice10.Json.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice9.Json.g.cs @@ -2,7 +2,7 @@ namespace tryAGI.OpenAI { - public sealed partial class ToolChoice10 + public sealed partial class ToolChoice9 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::tryAGI.OpenAI.ToolChoice10? FromJson( + public static global::tryAGI.OpenAI.ToolChoice9? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::tryAGI.OpenAI.ToolChoice10), - jsonSerializerContext) as global::tryAGI.OpenAI.ToolChoice10; + typeof(global::tryAGI.OpenAI.ToolChoice9), + jsonSerializerContext) as global::tryAGI.OpenAI.ToolChoice9; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::tryAGI.OpenAI.ToolChoice10? FromJson( + public static global::tryAGI.OpenAI.ToolChoice9? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::tryAGI.OpenAI.ToolChoice10? FromJson( + public static global::tryAGI.OpenAI.ToolChoice9? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::tryAGI.OpenAI.ToolChoice10), - jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolChoice10; + typeof(global::tryAGI.OpenAI.ToolChoice9), + jsonSerializerContext).ConfigureAwait(false)) as global::tryAGI.OpenAI.ToolChoice9; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::tryAGI.OpenAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice10.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice9.g.cs similarity index 90% rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice10.g.cs rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice9.g.cs index 1101d1706..d76dfec12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice10.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoice9.g.cs @@ -6,7 +6,7 @@ namespace tryAGI.OpenAI /// /// Tool selection that the assistant should honor when executing the item. /// - public sealed partial class ToolChoice10 + public sealed partial class ToolChoice9 { /// /// Identifier of the requested tool. @@ -22,7 +22,7 @@ public sealed partial class ToolChoice10 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Identifier of the requested tool. @@ -30,16 +30,16 @@ public sealed partial class ToolChoice10 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ToolChoice10( + public ToolChoice9( string id) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ToolChoice10() + public ToolChoice9() { } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs index ddafe3afa..f517347d4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolChoiceParam.g.cs @@ -48,8 +48,8 @@ public bool TryPickToolChoiceMode( /// /// /// - public global::tryAGI.OpenAI.ToolChoiceOptions PickToolChoiceMode() => IsToolChoiceMode - ? ToolChoiceMode!.Value + public global::tryAGI.OpenAI.ToolChoiceOptions PickToolChoiceMode() => ToolChoiceMode is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolChoiceMode' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickAllowedTools( /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowed PickAllowedTools() => IsAllowedTools - ? AllowedTools! + public global::tryAGI.OpenAI.ToolChoiceAllowed PickAllowedTools() => AllowedTools is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AllowedTools' but the value was {ToString()}."); /// @@ -123,8 +123,8 @@ public bool TryPickHostedTool( /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes PickHostedTool() => IsHostedTool - ? HostedTool! + public global::tryAGI.OpenAI.ToolChoiceTypes PickHostedTool() => HostedTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'HostedTool' but the value was {ToString()}."); /// @@ -160,8 +160,8 @@ public bool TryPickFunctionTool( /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunction PickFunctionTool() => IsFunctionTool - ? FunctionTool! + public global::tryAGI.OpenAI.ToolChoiceFunction PickFunctionTool() => FunctionTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionTool' but the value was {ToString()}."); /// @@ -197,8 +197,8 @@ public bool TryPickMcpTool( /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCP PickMcpTool() => IsMcpTool - ? McpTool! + public global::tryAGI.OpenAI.ToolChoiceMCP PickMcpTool() => McpTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpTool' but the value was {ToString()}."); /// @@ -234,8 +234,8 @@ public bool TryPickCustomTool( /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustom PickCustomTool() => IsCustomTool - ? CustomTool! + public global::tryAGI.OpenAI.ToolChoiceCustom PickCustomTool() => CustomTool is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomTool' but the value was {ToString()}."); /// @@ -271,8 +271,8 @@ public bool TryPickSpecificProgrammaticCalling( /// /// /// - public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam PickSpecificProgrammaticCalling() => IsSpecificProgrammaticCalling - ? SpecificProgrammaticCalling! + public global::tryAGI.OpenAI.SpecificProgrammaticToolCallingParam PickSpecificProgrammaticCalling() => SpecificProgrammaticCalling is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpecificProgrammaticCalling' but the value was {ToString()}."); /// @@ -308,8 +308,8 @@ public bool TryPickSpecificApplyPatchToolChoice( /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParam PickSpecificApplyPatchToolChoice() => IsSpecificApplyPatchToolChoice - ? SpecificApplyPatchToolChoice! + public global::tryAGI.OpenAI.SpecificApplyPatchParam PickSpecificApplyPatchToolChoice() => SpecificApplyPatchToolChoice is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpecificApplyPatchToolChoice' but the value was {ToString()}."); /// @@ -345,8 +345,8 @@ public bool TryPickSpecificShellToolChoice( /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParam PickSpecificShellToolChoice() => IsSpecificShellToolChoice - ? SpecificShellToolChoice! + public global::tryAGI.OpenAI.SpecificFunctionShellParam PickSpecificShellToolChoice() => SpecificShellToolChoice is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SpecificShellToolChoice' but the value was {ToString()}."); /// /// @@ -639,41 +639,41 @@ public bool Validate() Validate(); } - if (IsToolChoiceMode && toolChoiceMode != null) + if (ToolChoiceMode is { } __value0 && toolChoiceMode != null) { - return toolChoiceMode(ToolChoiceMode!); + return toolChoiceMode(__value0); } - else if (IsAllowedTools && allowedTools != null) + else if (AllowedTools is { } __value1 && allowedTools != null) { - return allowedTools(AllowedTools!); + return allowedTools(__value1); } - else if (IsHostedTool && hostedTool != null) + else if (HostedTool is { } __value2 && hostedTool != null) { - return hostedTool(HostedTool!); + return hostedTool(__value2); } - else if (IsFunctionTool && functionTool != null) + else if (FunctionTool is { } __value3 && functionTool != null) { - return functionTool(FunctionTool!); + return functionTool(__value3); } - else if (IsMcpTool && mcpTool != null) + else if (McpTool is { } __value4 && mcpTool != null) { - return mcpTool(McpTool!); + return mcpTool(__value4); } - else if (IsCustomTool && customTool != null) + else if (CustomTool is { } __value5 && customTool != null) { - return customTool(CustomTool!); + return customTool(__value5); } - else if (IsSpecificProgrammaticCalling && specificProgrammaticCalling != null) + else if (SpecificProgrammaticCalling is { } __value6 && specificProgrammaticCalling != null) { - return specificProgrammaticCalling(SpecificProgrammaticCalling!); + return specificProgrammaticCalling(__value6); } - else if (IsSpecificApplyPatchToolChoice && specificApplyPatchToolChoice != null) + else if (SpecificApplyPatchToolChoice is { } __value7 && specificApplyPatchToolChoice != null) { - return specificApplyPatchToolChoice(SpecificApplyPatchToolChoice!); + return specificApplyPatchToolChoice(__value7); } - else if (IsSpecificShellToolChoice && specificShellToolChoice != null) + else if (SpecificShellToolChoice is { } __value8 && specificShellToolChoice != null) { - return specificShellToolChoice(SpecificShellToolChoice!); + return specificShellToolChoice(__value8); } return default(TResult); @@ -707,41 +707,41 @@ public void Match( Validate(); } - if (IsToolChoiceMode) + if (ToolChoiceMode is { } __value0) { - toolChoiceMode?.Invoke(ToolChoiceMode!); + toolChoiceMode?.Invoke(__value0); } - else if (IsAllowedTools) + else if (AllowedTools is { } __value1) { - allowedTools?.Invoke(AllowedTools!); + allowedTools?.Invoke(__value1); } - else if (IsHostedTool) + else if (HostedTool is { } __value2) { - hostedTool?.Invoke(HostedTool!); + hostedTool?.Invoke(__value2); } - else if (IsFunctionTool) + else if (FunctionTool is { } __value3) { - functionTool?.Invoke(FunctionTool!); + functionTool?.Invoke(__value3); } - else if (IsMcpTool) + else if (McpTool is { } __value4) { - mcpTool?.Invoke(McpTool!); + mcpTool?.Invoke(__value4); } - else if (IsCustomTool) + else if (CustomTool is { } __value5) { - customTool?.Invoke(CustomTool!); + customTool?.Invoke(__value5); } - else if (IsSpecificProgrammaticCalling) + else if (SpecificProgrammaticCalling is { } __value6) { - specificProgrammaticCalling?.Invoke(SpecificProgrammaticCalling!); + specificProgrammaticCalling?.Invoke(__value6); } - else if (IsSpecificApplyPatchToolChoice) + else if (SpecificApplyPatchToolChoice is { } __value7) { - specificApplyPatchToolChoice?.Invoke(SpecificApplyPatchToolChoice!); + specificApplyPatchToolChoice?.Invoke(__value7); } - else if (IsSpecificShellToolChoice) + else if (SpecificShellToolChoice is { } __value8) { - specificShellToolChoice?.Invoke(SpecificShellToolChoice!); + specificShellToolChoice?.Invoke(__value8); } } @@ -765,41 +765,41 @@ public void Switch( Validate(); } - if (IsToolChoiceMode) + if (ToolChoiceMode is { } __value0) { - toolChoiceMode?.Invoke(ToolChoiceMode!); + toolChoiceMode?.Invoke(__value0); } - else if (IsAllowedTools) + else if (AllowedTools is { } __value1) { - allowedTools?.Invoke(AllowedTools!); + allowedTools?.Invoke(__value1); } - else if (IsHostedTool) + else if (HostedTool is { } __value2) { - hostedTool?.Invoke(HostedTool!); + hostedTool?.Invoke(__value2); } - else if (IsFunctionTool) + else if (FunctionTool is { } __value3) { - functionTool?.Invoke(FunctionTool!); + functionTool?.Invoke(__value3); } - else if (IsMcpTool) + else if (McpTool is { } __value4) { - mcpTool?.Invoke(McpTool!); + mcpTool?.Invoke(__value4); } - else if (IsCustomTool) + else if (CustomTool is { } __value5) { - customTool?.Invoke(CustomTool!); + customTool?.Invoke(__value5); } - else if (IsSpecificProgrammaticCalling) + else if (SpecificProgrammaticCalling is { } __value6) { - specificProgrammaticCalling?.Invoke(SpecificProgrammaticCalling!); + specificProgrammaticCalling?.Invoke(__value6); } - else if (IsSpecificApplyPatchToolChoice) + else if (SpecificApplyPatchToolChoice is { } __value7) { - specificApplyPatchToolChoice?.Invoke(SpecificApplyPatchToolChoice!); + specificApplyPatchToolChoice?.Invoke(__value7); } - else if (IsSpecificShellToolChoice) + else if (SpecificShellToolChoice is { } __value8) { - specificShellToolChoice?.Invoke(SpecificShellToolChoice!); + specificShellToolChoice?.Invoke(__value8); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs index bbc6cc801..081808a46 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.FunctionToolParam PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.FunctionToolParam PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCustom( /// /// /// - public global::tryAGI.OpenAI.CustomToolParam PickCustom() => IsCustom - ? Custom! + public global::tryAGI.OpenAI.CustomToolParam PickCustom() => Custom is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsCustom && custom != null) + else if (Custom is { } __value1 && custom != null) { - return custom(Custom!); + return custom(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsCustom) + else if (Custom is { } __value1) { - custom?.Invoke(Custom!); + custom?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsCustom) + else if (Custom is { } __value1) { - custom?.Invoke(Custom!); + custom?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs index 266380da6..de9af58f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem14.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParam PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.LiveFunctionToolInputParam PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value1 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsWebSearch) + else if (WebSearch is { } __value1) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsWebSearch) + else if (WebSearch is { } __value1) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs index 1f4a10f89..1b19a83fd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem15.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.LiveFunctionToolInputParam PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.LiveFunctionToolInputParam PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickWebSearch( /// /// /// - public global::tryAGI.OpenAI.LiveWebSearchToolInputParam PickWebSearch() => IsWebSearch - ? WebSearch! + public global::tryAGI.OpenAI.LiveWebSearchToolInputParam PickWebSearch() => WebSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WebSearch' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsWebSearch && webSearch != null) + else if (WebSearch is { } __value1 && webSearch != null) { - return webSearch(WebSearch!); + return webSearch(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsWebSearch) + else if (WebSearch is { } __value1) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsWebSearch) + else if (WebSearch is { } __value1) { - webSearch?.Invoke(WebSearch!); + webSearch?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs index a0fc12e44..7b065824f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem16.g.cs @@ -47,8 +47,8 @@ public bool TryPickFunction( /// /// /// - public global::tryAGI.OpenAI.BetaFunctionToolParam PickFunction() => IsFunction - ? Function! + public global::tryAGI.OpenAI.BetaFunctionToolParam PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCustom( /// /// /// - public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => IsCustom - ? Custom! + public global::tryAGI.OpenAI.BetaCustomToolParam PickCustom() => Custom is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsFunction && function != null) + if (Function is { } __value0 && function != null) { - return function(Function!); + return function(__value0); } - else if (IsCustom && custom != null) + else if (Custom is { } __value1 && custom != null) { - return custom(Custom!); + return custom(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsCustom) + else if (Custom is { } __value1) { - custom?.Invoke(Custom!); + custom?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsFunction) + if (Function is { } __value0) { - function?.Invoke(Function!); + function?.Invoke(__value0); } - else if (IsCustom) + else if (Custom is { } __value1) { - custom?.Invoke(Custom!); + custom?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs index 03c2c7d13..adb5eeb10 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs @@ -45,8 +45,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// @@ -82,8 +82,8 @@ public bool TryPickVadConfig( /// /// /// - public global::tryAGI.OpenAI.VadConfig PickVadConfig() => IsVadConfig - ? VadConfig! + public global::tryAGI.OpenAI.VadConfig PickVadConfig() => VadConfig is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VadConfig' but the value was {ToString()}."); /// /// @@ -180,13 +180,13 @@ public bool Validate() Validate(); } - if (IsEnum && @enum != null) + if (Enum is { } __value0 && @enum != null) { - return @enum(Enum!); + return @enum(__value0); } - else if (IsVadConfig && vadConfig != null) + else if (VadConfig is { } __value1 && vadConfig != null) { - return vadConfig(VadConfig!); + return vadConfig(__value1); } return default(TResult); @@ -206,13 +206,13 @@ public void Match( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsVadConfig) + else if (VadConfig is { } __value1) { - vadConfig?.Invoke(VadConfig!); + vadConfig?.Invoke(__value1); } } @@ -229,13 +229,13 @@ public void Switch( Validate(); } - if (IsEnum) + if (Enum is { } __value0) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value0); } - else if (IsVadConfig) + else if (VadConfig is { } __value1) { - vadConfig?.Invoke(VadConfig!); + vadConfig?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs index 1c1fb1c1f..2d5e9e183 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Upload.g.cs @@ -66,11 +66,10 @@ public sealed partial class Upload public global::tryAGI.OpenAI.UploadObject? Object { get; set; } /// - /// + /// The ready File object after the Upload is completed. /// [global::System.Text.Json.Serialization.JsonPropertyName("file")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AllOfJsonConverter))] - public global::tryAGI.OpenAI.AllOf? File { get; set; } + public global::tryAGI.OpenAI.OpenAIFile? File { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -105,7 +104,9 @@ public sealed partial class Upload /// /// The object type, which is always "upload". /// - /// + /// + /// The ready File object after the Upload is completed. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -118,7 +119,7 @@ public Upload( global::tryAGI.OpenAI.UploadStatus status, int expiresAt, global::tryAGI.OpenAI.UploadObject? @object, - global::tryAGI.OpenAI.AllOf? file) + global::tryAGI.OpenAI.OpenAIFile? file) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.CreatedAt = createdAt; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialAuthResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialAuthResource.g.cs index bed14106e..430083879 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialAuthResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialAuthResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickMcpOauth( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth PickMcpOauth() => IsMcpOauth - ? McpOauth! + public global::tryAGI.OpenAI.VaultCredentialAuthResourceMcpOauth PickMcpOauth() => McpOauth is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'McpOauth' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickStaticBearer( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer PickStaticBearer() => IsStaticBearer - ? StaticBearer! + public global::tryAGI.OpenAI.VaultCredentialAuthResourceStaticBearer PickStaticBearer() => StaticBearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StaticBearer' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickEnvironmentVariable( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable PickEnvironmentVariable() => IsEnvironmentVariable - ? EnvironmentVariable! + public global::tryAGI.OpenAI.VaultCredentialAuthResourceEnvironmentVariable PickEnvironmentVariable() => EnvironmentVariable is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EnvironmentVariable' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsMcpOauth && mcpOauth != null) + if (McpOauth is { } __value0 && mcpOauth != null) { - return mcpOauth(McpOauth!); + return mcpOauth(__value0); } - else if (IsStaticBearer && staticBearer != null) + else if (StaticBearer is { } __value1 && staticBearer != null) { - return staticBearer(StaticBearer!); + return staticBearer(__value1); } - else if (IsEnvironmentVariable && environmentVariable != null) + else if (EnvironmentVariable is { } __value2 && environmentVariable != null) { - return environmentVariable(EnvironmentVariable!); + return environmentVariable(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsMcpOauth) + if (McpOauth is { } __value0) { - mcpOauth?.Invoke(McpOauth!); + mcpOauth?.Invoke(__value0); } - else if (IsStaticBearer) + else if (StaticBearer is { } __value1) { - staticBearer?.Invoke(StaticBearer!); + staticBearer?.Invoke(__value1); } - else if (IsEnvironmentVariable) + else if (EnvironmentVariable is { } __value2) { - environmentVariable?.Invoke(EnvironmentVariable!); + environmentVariable?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsMcpOauth) + if (McpOauth is { } __value0) { - mcpOauth?.Invoke(McpOauth!); + mcpOauth?.Invoke(__value0); } - else if (IsStaticBearer) + else if (StaticBearer is { } __value1) { - staticBearer?.Invoke(StaticBearer!); + staticBearer?.Invoke(__value1); } - else if (IsEnvironmentVariable) + else if (EnvironmentVariable is { } __value2) { - environmentVariable?.Invoke(EnvironmentVariable!); + environmentVariable?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingParam.g.cs index 10b768d92..98c92bb49 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingParam.g.cs @@ -47,8 +47,8 @@ public bool TryPickUnrestricted( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted PickUnrestricted() => IsUnrestricted - ? Unrestricted! + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamUnrestricted PickUnrestricted() => Unrestricted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Unrestricted' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickLimited( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited PickLimited() => IsLimited - ? Limited! + public global::tryAGI.OpenAI.VaultCredentialNetworkingParamLimited PickLimited() => Limited is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Limited' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsUnrestricted && unrestricted != null) + if (Unrestricted is { } __value0 && unrestricted != null) { - return unrestricted(Unrestricted!); + return unrestricted(__value0); } - else if (IsLimited && limited != null) + else if (Limited is { } __value1 && limited != null) { - return limited(Limited!); + return limited(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsUnrestricted) + if (Unrestricted is { } __value0) { - unrestricted?.Invoke(Unrestricted!); + unrestricted?.Invoke(__value0); } - else if (IsLimited) + else if (Limited is { } __value1) { - limited?.Invoke(Limited!); + limited?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsUnrestricted) + if (Unrestricted is { } __value0) { - unrestricted?.Invoke(Unrestricted!); + unrestricted?.Invoke(__value0); } - else if (IsLimited) + else if (Limited is { } __value1) { - limited?.Invoke(Limited!); + limited?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingResource.g.cs index 138455c96..7b73b4d12 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultCredentialNetworkingResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickUnrestricted( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted PickUnrestricted() => IsUnrestricted - ? Unrestricted! + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceUnrestricted PickUnrestricted() => Unrestricted is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Unrestricted' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickLimited( /// /// /// - public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited PickLimited() => IsLimited - ? Limited! + public global::tryAGI.OpenAI.VaultCredentialNetworkingResourceLimited PickLimited() => Limited is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Limited' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsUnrestricted && unrestricted != null) + if (Unrestricted is { } __value0 && unrestricted != null) { - return unrestricted(Unrestricted!); + return unrestricted(__value0); } - else if (IsLimited && limited != null) + else if (Limited is { } __value1 && limited != null) { - return limited(Limited!); + return limited(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsUnrestricted) + if (Unrestricted is { } __value0) { - unrestricted?.Invoke(Unrestricted!); + unrestricted?.Invoke(__value0); } - else if (IsLimited) + else if (Limited is { } __value1) { - limited?.Invoke(Limited!); + limited?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsUnrestricted) + if (Unrestricted is { } __value0) { - unrestricted?.Invoke(Unrestricted!); + unrestricted?.Invoke(__value0); } - else if (IsLimited) + else if (Limited is { } __value1) { - limited?.Invoke(Limited!); + limited?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultStatusFilterParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultStatusFilterParam.g.cs index c3117b20e..e7bb58577 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultStatusFilterParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VaultStatusFilterParam.g.cs @@ -42,8 +42,8 @@ public bool TryPickVaultStatusParam( /// /// /// - public global::tryAGI.OpenAI.VaultStatusParam PickVaultStatusParam() => IsVaultStatusParam - ? VaultStatusParam!.Value + public global::tryAGI.OpenAI.VaultStatusParam PickVaultStatusParam() => VaultStatusParam is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VaultStatusParam' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickVaultStatusFilterParamVariant2( /// /// /// - public global::System.Collections.Generic.IList PickVaultStatusFilterParamVariant2() => IsVaultStatusFilterParamVariant2 - ? VaultStatusFilterParamVariant2! + public global::System.Collections.Generic.IList PickVaultStatusFilterParamVariant2() => VaultStatusFilterParamVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VaultStatusFilterParamVariant2' but the value was {ToString()}."); /// /// @@ -154,13 +154,13 @@ public bool Validate() Validate(); } - if (IsVaultStatusParam && vaultStatusParam != null) + if (VaultStatusParam is { } __value0 && vaultStatusParam != null) { - return vaultStatusParam(VaultStatusParam!); + return vaultStatusParam(__value0); } - else if (IsVaultStatusFilterParamVariant2 && vaultStatusFilterParamVariant2 != null) + else if (VaultStatusFilterParamVariant2 is { } __value1 && vaultStatusFilterParamVariant2 != null) { - return vaultStatusFilterParamVariant2(VaultStatusFilterParamVariant2!); + return vaultStatusFilterParamVariant2(__value1); } return default(TResult); @@ -180,13 +180,13 @@ public void Match( Validate(); } - if (IsVaultStatusParam) + if (VaultStatusParam is { } __value0) { - vaultStatusParam?.Invoke(VaultStatusParam!); + vaultStatusParam?.Invoke(__value0); } - else if (IsVaultStatusFilterParamVariant2) + else if (VaultStatusFilterParamVariant2 is { } __value1) { - vaultStatusFilterParamVariant2?.Invoke(VaultStatusFilterParamVariant2!); + vaultStatusFilterParamVariant2?.Invoke(__value1); } } @@ -203,13 +203,13 @@ public void Switch( Validate(); } - if (IsVaultStatusParam) + if (VaultStatusParam is { } __value0) { - vaultStatusParam?.Invoke(VaultStatusParam!); + vaultStatusParam?.Invoke(__value0); } - else if (IsVaultStatusFilterParamVariant2) + else if (VaultStatusFilterParamVariant2 is { } __value1) { - vaultStatusFilterParamVariant2?.Invoke(VaultStatusFilterParamVariant2!); + vaultStatusFilterParamVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObjectObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObjectObject.g.cs index 4943be881..e9a37b85f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObjectObject.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VectorStoreFileBatchObjectObject.g.cs @@ -11,7 +11,7 @@ public enum VectorStoreFileBatchObjectObject /// /// /// - VectorStoreFilesBatch, + VectorStoreFileBatch, } /// @@ -26,7 +26,7 @@ public static string ToValueString(this VectorStoreFileBatchObjectObject value) { return value switch { - VectorStoreFileBatchObjectObject.VectorStoreFilesBatch => "vector_store.files_batch", + VectorStoreFileBatchObjectObject.VectorStoreFileBatch => "vector_store.file_batch", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -37,7 +37,7 @@ public static string ToValueString(this VectorStoreFileBatchObjectObject value) { return value switch { - "vector_store.files_batch" => VectorStoreFileBatchObjectObject.VectorStoreFilesBatch, + "vector_store.file_batch" => VectorStoreFileBatchObjectObject.VectorStoreFileBatch, _ => null, }; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs index be0e2975e..01c253970 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs @@ -42,8 +42,8 @@ public bool TryPickVideoModelVariant1( /// /// /// - public string PickVideoModelVariant1() => IsVideoModelVariant1 - ? VideoModelVariant1! + public string PickVideoModelVariant1() => VideoModelVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoModelVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.VideoModelEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsVideoModelVariant1 && videoModelVariant1 != null) + if (VideoModelVariant1 is { } __value0 && videoModelVariant1 != null) { - return videoModelVariant1(VideoModelVariant1!); + return videoModelVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsVideoModelVariant1) + if (VideoModelVariant1 is { } __value0) { - videoModelVariant1?.Invoke(VideoModelVariant1!); + videoModelVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsVideoModelVariant1) + if (VideoModelVariant1 is { } __value0) { - videoModelVariant1?.Invoke(VideoModelVariant1!); + videoModelVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs index ac49f6d64..fec2de13d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs @@ -42,8 +42,8 @@ public bool TryPickShared( /// /// /// - public global::tryAGI.OpenAI.VoiceIdsShared PickShared() => IsShared - ? Shared!.Value + public global::tryAGI.OpenAI.VoiceIdsShared PickShared() => Shared is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Shared' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickVoiceIdsOrCustomVoiceVariant2( /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2 PickVoiceIdsOrCustomVoiceVariant2() => IsVoiceIdsOrCustomVoiceVariant2 - ? VoiceIdsOrCustomVoiceVariant2! + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2 PickVoiceIdsOrCustomVoiceVariant2() => VoiceIdsOrCustomVoiceVariant2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VoiceIdsOrCustomVoiceVariant2' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsShared && shared != null) + if (Shared is { } __value0 && shared != null) { - return shared(Shared!); + return shared(__value0); } - else if (IsVoiceIdsOrCustomVoiceVariant2 && voiceIdsOrCustomVoiceVariant2 != null) + else if (VoiceIdsOrCustomVoiceVariant2 is { } __value1 && voiceIdsOrCustomVoiceVariant2 != null) { - return voiceIdsOrCustomVoiceVariant2(VoiceIdsOrCustomVoiceVariant2!); + return voiceIdsOrCustomVoiceVariant2(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsVoiceIdsOrCustomVoiceVariant2) + else if (VoiceIdsOrCustomVoiceVariant2 is { } __value1) { - voiceIdsOrCustomVoiceVariant2?.Invoke(VoiceIdsOrCustomVoiceVariant2!); + voiceIdsOrCustomVoiceVariant2?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsShared) + if (Shared is { } __value0) { - shared?.Invoke(Shared!); + shared?.Invoke(__value0); } - else if (IsVoiceIdsOrCustomVoiceVariant2) + else if (VoiceIdsOrCustomVoiceVariant2 is { } __value1) { - voiceIdsOrCustomVoiceVariant2?.Invoke(VoiceIdsOrCustomVoiceVariant2!); + voiceIdsOrCustomVoiceVariant2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs index 7d72e1ad0..660c53aaf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs @@ -42,8 +42,8 @@ public bool TryPickVoiceIdsSharedVariant1( /// /// /// - public string PickVoiceIdsSharedVariant1() => IsVoiceIdsSharedVariant1 - ? VoiceIdsSharedVariant1! + public string PickVoiceIdsSharedVariant1() => VoiceIdsSharedVariant1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VoiceIdsSharedVariant1' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickEnum( /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum PickEnum() => IsEnum - ? Enum!.Value + public global::tryAGI.OpenAI.VoiceIdsSharedEnum PickEnum() => Enum is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsVoiceIdsSharedVariant1 && voiceIdsSharedVariant1 != null) + if (VoiceIdsSharedVariant1 is { } __value0 && voiceIdsSharedVariant1 != null) { - return voiceIdsSharedVariant1(VoiceIdsSharedVariant1!); + return voiceIdsSharedVariant1(__value0); } - else if (IsEnum && @enum != null) + else if (Enum is { } __value1 && @enum != null) { - return @enum(Enum!); + return @enum(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsVoiceIdsSharedVariant1) + if (VoiceIdsSharedVariant1 is { } __value0) { - voiceIdsSharedVariant1?.Invoke(VoiceIdsSharedVariant1!); + voiceIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsVoiceIdsSharedVariant1) + if (VoiceIdsSharedVariant1 is { } __value0) { - voiceIdsSharedVariant1?.Invoke(VoiceIdsSharedVariant1!); + voiceIdsSharedVariant1?.Invoke(__value0); } - else if (IsEnum) + else if (Enum is { } __value1) { - @enum?.Invoke(Enum!); + @enum?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchActionResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchActionResource.g.cs index 484d6d9c9..3fd198c23 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchActionResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchActionResource.g.cs @@ -47,8 +47,8 @@ public bool TryPickSearch( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceSearch PickSearch() => IsSearch - ? Search! + public global::tryAGI.OpenAI.WebSearchActionResourceSearch PickSearch() => Search is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Search' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickOpenPage( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage PickOpenPage() => IsOpenPage - ? OpenPage! + public global::tryAGI.OpenAI.WebSearchActionResourceOpenPage PickOpenPage() => OpenPage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OpenPage' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickFindInPage( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage PickFindInPage() => IsFindInPage - ? FindInPage! + public global::tryAGI.OpenAI.WebSearchActionResourceFindInPage PickFindInPage() => FindInPage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FindInPage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickOther( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionResourceOther PickOther() => IsOther - ? Other! + public global::tryAGI.OpenAI.WebSearchActionResourceOther PickOther() => Other is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Other' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsSearch && search != null) + if (Search is { } __value0 && search != null) { - return search(Search!); + return search(__value0); } - else if (IsOpenPage && openPage != null) + else if (OpenPage is { } __value1 && openPage != null) { - return openPage(OpenPage!); + return openPage(__value1); } - else if (IsFindInPage && findInPage != null) + else if (FindInPage is { } __value2 && findInPage != null) { - return findInPage(FindInPage!); + return findInPage(__value2); } - else if (IsOther && other != null) + else if (Other is { } __value3 && other != null) { - return other(Other!); + return other(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsSearch) + if (Search is { } __value0) { - search?.Invoke(Search!); + search?.Invoke(__value0); } - else if (IsOpenPage) + else if (OpenPage is { } __value1) { - openPage?.Invoke(OpenPage!); + openPage?.Invoke(__value1); } - else if (IsFindInPage) + else if (FindInPage is { } __value2) { - findInPage?.Invoke(FindInPage!); + findInPage?.Invoke(__value2); } - else if (IsOther) + else if (Other is { } __value3) { - other?.Invoke(Other!); + other?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsSearch) + if (Search is { } __value0) { - search?.Invoke(Search!); + search?.Invoke(__value0); } - else if (IsOpenPage) + else if (OpenPage is { } __value1) { - openPage?.Invoke(OpenPage!); + openPage?.Invoke(__value1); } - else if (IsFindInPage) + else if (FindInPage is { } __value2) { - findInPage?.Invoke(FindInPage!); + findInPage?.Invoke(__value2); } - else if (IsOther) + else if (Other is { } __value3) { - other?.Invoke(Other!); + other?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs index 7ac6da7e6..43ccdf305 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCall.g.cs @@ -37,8 +37,7 @@ public sealed partial class WebSearchToolCall /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::tryAGI.OpenAI.WebSearchToolCallAction Action { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Action { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,21 +54,21 @@ public sealed partial class WebSearchToolCall /// /// The status of the web search tool call. /// + /// + /// The type of the web search tool call. Always `web_search_call`. + /// /// /// An object describing the specific action taken in this web search call.
/// Includes details on how the model used the web (search, open_page, find_in_page). /// - /// - /// The type of the web search tool call. Always `web_search_call`. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebSearchToolCall( string id, global::tryAGI.OpenAI.WebSearchCallStatus status, - global::tryAGI.OpenAI.WebSearchToolCallAction action, - global::tryAGI.OpenAI.WebSearchToolCallType type) + global::tryAGI.OpenAI.WebSearchToolCallType type, + global::tryAGI.OpenAI.WebSearchToolCallAction? action) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Type = type; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs index 35b7834e5..dd39c315a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs @@ -48,8 +48,8 @@ public bool TryPickSearch( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch PickSearch() => IsSearch - ? Search! + public global::tryAGI.OpenAI.WebSearchActionSearch PickSearch() => Search is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Search' but the value was {ToString()}."); /// @@ -85,8 +85,8 @@ public bool TryPickOpenPage( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage PickOpenPage() => IsOpenPage - ? OpenPage! + public global::tryAGI.OpenAI.WebSearchActionOpenPage PickOpenPage() => OpenPage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OpenPage' but the value was {ToString()}."); /// @@ -122,8 +122,8 @@ public bool TryPickFindInPage( /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind PickFindInPage() => IsFindInPage - ? FindInPage! + public global::tryAGI.OpenAI.WebSearchActionFind PickFindInPage() => FindInPage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FindInPage' but the value was {ToString()}."); /// /// @@ -251,17 +251,17 @@ public bool Validate() Validate(); } - if (IsSearch && search != null) + if (Search is { } __value0 && search != null) { - return search(Search!); + return search(__value0); } - else if (IsOpenPage && openPage != null) + else if (OpenPage is { } __value1 && openPage != null) { - return openPage(OpenPage!); + return openPage(__value1); } - else if (IsFindInPage && findInPage != null) + else if (FindInPage is { } __value2 && findInPage != null) { - return findInPage(FindInPage!); + return findInPage(__value2); } return default(TResult); @@ -283,17 +283,17 @@ public void Match( Validate(); } - if (IsSearch) + if (Search is { } __value0) { - search?.Invoke(Search!); + search?.Invoke(__value0); } - else if (IsOpenPage) + else if (OpenPage is { } __value1) { - openPage?.Invoke(OpenPage!); + openPage?.Invoke(__value1); } - else if (IsFindInPage) + else if (FindInPage is { } __value2) { - findInPage?.Invoke(FindInPage!); + findInPage?.Invoke(__value2); } } @@ -311,17 +311,17 @@ public void Switch( Validate(); } - if (IsSearch) + if (Search is { } __value0) { - search?.Invoke(Search!); + search?.Invoke(__value0); } - else if (IsOpenPage) + else if (OpenPage is { } __value1) { - openPage?.Invoke(OpenPage!); + openPage?.Invoke(__value1); } - else if (IsFindInPage) + else if (FindInPage is { } __value2) { - findInPage?.Invoke(FindInPage!); + findInPage?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs index 0fad6beba..5c99fec43 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ModelsClient.DeleteModel.g.cs @@ -151,7 +151,7 @@ partial void ProcessDeleteModelResponseContent( PrepareDeleteModelRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - model: model!); + model: model); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessDeleteModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDeleteModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDeleteModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDeleteModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDeleteModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 88d77a00b..26921f5b9 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 @@ -160,7 +160,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessListModelsResponseContent( pathTemplate: "\"/models\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c35fc2c20..1fdf5c18d 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 @@ -151,7 +151,7 @@ partial void ProcessRetrieveModelResponseContent( PrepareRetrieveModelRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - model: model!); + model: model); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessRetrieveModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessRetrieveModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessRetrieveModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessRetrieveModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessRetrieveModelResponseContent( pathTemplate: "$\"/models/{model}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Moderations.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Moderations.JsonSerializerContext.g.cs index b05c7a159..7130a748b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Moderations.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Moderations.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 1ad6feed7..b4e1e12a2 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 @@ -182,7 +182,7 @@ partial void ProcessCreateModerationResponseContent( pathTemplate: "\"/moderations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateModerationResponseContent( pathTemplate: "\"/moderations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateModerationResponseContent( pathTemplate: "\"/moderations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateModerationResponseContent( pathTemplate: "\"/moderations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateModerationResponseContent( pathTemplate: "\"/moderations\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs index 0fe44b05e..1c72108bc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs index 06419ed19..f37e81dc0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs index 08524ef50..9e8a16e29 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.4.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// /// @@ -306,21 +306,21 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } return default(TResult); @@ -344,21 +344,21 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } @@ -377,21 +377,21 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs index f9f7302b3..e44e35c0b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OneOf.5.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// /// @@ -371,25 +371,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } return default(TResult); @@ -415,25 +415,25 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } @@ -453,25 +453,25 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs index 75c5117bf..b6c55dae6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysCreate.g.cs @@ -182,7 +182,7 @@ partial void ProcessAdminApiKeysCreateResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessAdminApiKeysCreateResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessAdminApiKeysCreateResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessAdminApiKeysCreateResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessAdminApiKeysCreateResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs index c9c5ca86a..b84a76395 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysDelete.g.cs @@ -151,7 +151,7 @@ partial void ProcessAdminApiKeysDeleteResponseContent( PrepareAdminApiKeysDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - keyId: keyId!); + keyId: keyId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessAdminApiKeysDeleteResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessAdminApiKeysDeleteResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessAdminApiKeysDeleteResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessAdminApiKeysDeleteResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessAdminApiKeysDeleteResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs index 8c3c9cd58..dd06ff4ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysGet.g.cs @@ -151,7 +151,7 @@ partial void ProcessAdminApiKeysGetResponseContent( PrepareAdminApiKeysGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - keyId: keyId!); + keyId: keyId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessAdminApiKeysGetResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessAdminApiKeysGetResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessAdminApiKeysGetResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessAdminApiKeysGetResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessAdminApiKeysGetResponseContent( pathTemplate: "$\"/organization/admin_api_keys/{keyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs index 81aa91aa8..3b1379d6b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.AdminApiKeysList.g.cs @@ -210,7 +210,7 @@ partial void ProcessAdminApiKeysListResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessAdminApiKeysListResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessAdminApiKeysListResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessAdminApiKeysListResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessAdminApiKeysListResponseContent( pathTemplate: "\"/organization/admin_api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs index 07d28d5ff..10a10cebc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CancelChatSessionMethod.g.cs @@ -153,7 +153,7 @@ partial void ProcessCancelChatSessionMethodResponseContent( PrepareCancelChatSessionMethodRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - sessionId: sessionId!); + sessionId: sessionId); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessCancelChatSessionMethodResponseContent( pathTemplate: "$\"/chatkit/sessions/{sessionId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessCancelChatSessionMethodResponseContent( pathTemplate: "$\"/chatkit/sessions/{sessionId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessCancelChatSessionMethodResponseContent( pathTemplate: "$\"/chatkit/sessions/{sessionId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessCancelChatSessionMethodResponseContent( pathTemplate: "$\"/chatkit/sessions/{sessionId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessCancelChatSessionMethodResponseContent( pathTemplate: "$\"/chatkit/sessions/{sessionId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs index 79bb4ca77..ed9ec4fb8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateChatSessionMethod.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateChatSessionMethodResponseContent( pathTemplate: "\"/chatkit/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateChatSessionMethodResponseContent( pathTemplate: "\"/chatkit/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateChatSessionMethodResponseContent( pathTemplate: "\"/chatkit/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateChatSessionMethodResponseContent( pathTemplate: "\"/chatkit/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateChatSessionMethodResponseContent( pathTemplate: "\"/chatkit/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 95cf7949c..71d1a66be 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 @@ -180,7 +180,7 @@ partial void ProcessCreateContainerResponseContent( pathTemplate: "\"/containers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateContainerResponseContent( pathTemplate: "\"/containers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateContainerResponseContent( pathTemplate: "\"/containers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateContainerResponseContent( pathTemplate: "\"/containers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateContainerResponseContent( pathTemplate: "\"/containers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 72ae95009..c29f0f060 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 @@ -217,7 +217,7 @@ request.Filename is null PrepareCreateContainerFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!, + containerId: containerId, request: request); return __httpRequest; @@ -240,7 +240,7 @@ request.Filename is null pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -274,7 +274,7 @@ request.Filename is null pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -315,7 +315,7 @@ request.Filename is null pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -363,7 +363,7 @@ request.Filename is null pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -385,7 +385,7 @@ request.Filename is null pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs index d2ad3a331..bb0af5064 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateWebhookEndpoint.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateWebhookEndpointResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateWebhookEndpointResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateWebhookEndpointResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateWebhookEndpointResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateWebhookEndpointResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs index d978c7f4b..c3f5ac071 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.CreateanAPIkeyforaserviceaccount.g.cs @@ -182,8 +182,8 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( PrepareCreateanAPIkeyforaserviceaccountRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - serviceAccountId: serviceAccountId!, + projectId: projectId, + serviceAccountId: serviceAccountId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -208,7 +208,7 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}/api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}/api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}/api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}/api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessCreateanAPIkeyforaserviceaccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}/api_keys\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs index 984cf42e3..230580870 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createanexternalstorageconfiguration.g.cs @@ -182,7 +182,7 @@ partial void ProcessCreateanexternalstorageconfigurationResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateanexternalstorageconfigurationResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateanexternalstorageconfigurationResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateanexternalstorageconfigurationResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateanexternalstorageconfigurationResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs index 7d6a296b3..72dcf34a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Createcontentprovenancecheck.g.cs @@ -218,7 +218,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -252,7 +252,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -293,7 +293,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -363,7 +363,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -851,7 +851,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -885,7 +885,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -926,7 +926,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -974,7 +974,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -996,7 +996,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1444,7 +1444,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1478,7 +1478,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1519,7 +1519,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1567,7 +1567,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1589,7 +1589,7 @@ request.Filename is null pathTemplate: "\"/content_provenance_checks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs index 46c619e76..356b86cb5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainer.g.cs @@ -36,6 +36,11 @@ partial void ProcessDeleteContainerResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void ProcessDeleteContainerResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + /// /// Delete a container
/// Delete Container @@ -44,16 +49,18 @@ partial void ProcessDeleteContainerResponse( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteContainerAsync( + public async global::System.Threading.Tasks.Task DeleteContainerAsync( string containerId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await DeleteContainerAsResponseAsync( + var __response = await DeleteContainerAsResponseAsync( containerId: containerId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); + + return __response.Body; } /// /// Delete a container
@@ -63,7 +70,7 @@ await DeleteContainerAsResponseAsync( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteContainerAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteContainerAsResponseAsync( string containerId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -140,7 +147,7 @@ await DeleteContainerAsResponseAsync( PrepareDeleteContainerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!); + containerId: containerId); return __httpRequest; } @@ -162,7 +169,7 @@ await DeleteContainerAsResponseAsync( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +203,7 @@ await DeleteContainerAsResponseAsync( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +244,7 @@ await DeleteContainerAsResponseAsync( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +292,7 @@ await DeleteContainerAsResponseAsync( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +314,7 @@ await DeleteContainerAsResponseAsync( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -406,15 +413,22 @@ await DeleteContainerAsResponseAsync( client: HttpClient, response: __response, content: ref __content); + ProcessDeleteContainerResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + var __value = global::tryAGI.OpenAI.DeleteContainerResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { @@ -434,10 +448,19 @@ await DeleteContainerAsResponseAsync( try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.DeleteContainerResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs index 7593241b7..8574c7eaa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteContainerFile.g.cs @@ -38,6 +38,11 @@ partial void ProcessDeleteContainerFileResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void ProcessDeleteContainerFileResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + /// /// Delete a container file
/// Delete Container File @@ -47,18 +52,20 @@ partial void ProcessDeleteContainerFileResponse( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteContainerFileAsync( + public async global::System.Threading.Tasks.Task DeleteContainerFileAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await DeleteContainerFileAsResponseAsync( + var __response = await DeleteContainerFileAsResponseAsync( containerId: containerId, fileId: fileId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); + + return __response.Body; } /// /// Delete a container file
@@ -69,7 +76,7 @@ await DeleteContainerFileAsResponseAsync( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteContainerFileAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteContainerFileAsResponseAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -148,8 +155,8 @@ await DeleteContainerFileAsResponseAsync( PrepareDeleteContainerFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!, - fileId: fileId!); + containerId: containerId, + fileId: fileId); return __httpRequest; } @@ -171,7 +178,7 @@ await DeleteContainerFileAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +212,7 @@ await DeleteContainerFileAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +253,7 @@ await DeleteContainerFileAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +301,7 @@ await DeleteContainerFileAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +323,7 @@ await DeleteContainerFileAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -415,15 +422,22 @@ await DeleteContainerFileAsResponseAsync( client: HttpClient, response: __response, content: ref __content); + ProcessDeleteContainerFileResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + var __value = global::tryAGI.OpenAI.DeleteContainerFileResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { @@ -443,10 +457,19 @@ await DeleteContainerFileAsResponseAsync( try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.DeleteContainerFileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs index d7be0f0ab..d68b6042d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteThreadMethod.g.cs @@ -151,7 +151,7 @@ partial void ProcessDeleteThreadMethodResponseContent( PrepareDeleteThreadMethodRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!); + threadId: threadId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessDeleteThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDeleteThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDeleteThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDeleteThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDeleteThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs index 643764e69..f5088c096 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.DeleteWebhookEndpoint.g.cs @@ -151,7 +151,7 @@ partial void ProcessDeleteWebhookEndpointResponseContent( PrepareDeleteWebhookEndpointRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - webhookEndpointId: webhookEndpointId!); + webhookEndpointId: webhookEndpointId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessDeleteWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDeleteWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDeleteWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDeleteWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDeleteWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs index 40d198da4..9fa3deef2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteanexternalstorageconfiguration.g.cs @@ -151,7 +151,7 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( PrepareDeleteanexternalstorageconfigurationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - externalStorageId: externalStorageId!); + externalStorageId: externalStorageId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessDeleteanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteorganizationspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteorganizationspendlimit.g.cs index ff36dbe73..3004974da 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteorganizationspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteorganizationspendlimit.g.cs @@ -162,7 +162,7 @@ partial void ProcessDeleteorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ partial void ProcessDeleteorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessDeleteorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessDeleteorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessDeleteorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteprojectspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteprojectspendlimit.g.cs index 5eb0cc7a0..52a5acdf4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteprojectspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Deleteprojectspendlimit.g.cs @@ -151,7 +151,7 @@ partial void ProcessDeleteprojectspendlimitResponseContent( PrepareDeleteprojectspendlimitRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessDeleteprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessDeleteprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessDeleteprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessDeleteprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessDeleteprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs index f033470e9..bd711617e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.GetThreadMethod.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetThreadMethodResponseContent( PrepareGetThreadMethodRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!); + threadId: threadId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetThreadMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs index d1ebf111c..62a111d38 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getanexternalstorageconfiguration.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( PrepareGetanexternalstorageconfigurationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - externalStorageId: externalStorageId!); + externalStorageId: externalStorageId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessGetanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs index 5a0332bbe..12fb431f1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getorganizationspendlimit.g.cs @@ -162,7 +162,7 @@ partial void ProcessGetorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ partial void ProcessGetorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessGetorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessGetorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessGetorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs index 0a7fd7608..7113bccab 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectsafetyalert.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetprojectsafetyalertResponseContent( PrepareGetprojectsafetyalertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetprojectsafetyalertResponseContent( pathTemplate: "$\"/safety/alerts/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetprojectsafetyalertResponseContent( pathTemplate: "$\"/safety/alerts/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetprojectsafetyalertResponseContent( pathTemplate: "$\"/safety/alerts/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetprojectsafetyalertResponseContent( pathTemplate: "$\"/safety/alerts/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetprojectsafetyalertResponseContent( pathTemplate: "$\"/safety/alerts/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs index 8f8bfe783..03f702d8a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getprojectspendlimit.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetprojectspendlimitResponseContent( PrepareGetprojectspendlimitRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessGetprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessGetprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessGetprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessGetprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessGetprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs index 3fdf4c09d..0f99eb40b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Getsafetycase.g.cs @@ -151,7 +151,7 @@ partial void ProcessGetsafetycaseResponseContent( PrepareGetsafetycaseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetsafetycaseResponseContent( pathTemplate: "$\"/safety/cases/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetsafetycaseResponseContent( pathTemplate: "$\"/safety/cases/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetsafetycaseResponseContent( pathTemplate: "$\"/safety/cases/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetsafetycaseResponseContent( pathTemplate: "$\"/safety/cases/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetsafetycaseResponseContent( pathTemplate: "$\"/safety/cases/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 a4382b300..7a384eef7 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 @@ -184,7 +184,7 @@ partial void ProcessListContainerFilesResponseContent( PrepareListContainerFilesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!, + containerId: containerId, limit: limit, order: order, after: after); @@ -209,7 +209,7 @@ partial void ProcessListContainerFilesResponseContent( pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -243,7 +243,7 @@ partial void ProcessListContainerFilesResponseContent( pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessListContainerFilesResponseContent( pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessListContainerFilesResponseContent( pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -354,7 +354,7 @@ partial void ProcessListContainerFilesResponseContent( pathTemplate: "$\"/containers/{containerId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 70cd8a208..538c52a3b 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 @@ -210,7 +210,7 @@ partial void ProcessListContainersResponseContent( pathTemplate: "\"/containers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessListContainersResponseContent( pathTemplate: "\"/containers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessListContainersResponseContent( pathTemplate: "\"/containers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessListContainersResponseContent( pathTemplate: "\"/containers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessListContainersResponseContent( pathTemplate: "\"/containers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs index b680e9f55..83370e85f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadItemsMethod.g.cs @@ -197,7 +197,7 @@ partial void ProcessListThreadItemsMethodResponseContent( PrepareListThreadItemsMethodRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - threadId: threadId!, + threadId: threadId, limit: limit, order: order, after: after, @@ -223,7 +223,7 @@ partial void ProcessListThreadItemsMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessListThreadItemsMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessListThreadItemsMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +346,7 @@ partial void ProcessListThreadItemsMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -368,7 +368,7 @@ partial void ProcessListThreadItemsMethodResponseContent( pathTemplate: "$\"/chatkit/threads/{threadId}/items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs index 397328728..fe59bbbe4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListThreadsMethod.g.cs @@ -224,7 +224,7 @@ partial void ProcessListThreadsMethodResponseContent( pathTemplate: "\"/chatkit/threads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -258,7 +258,7 @@ partial void ProcessListThreadsMethodResponseContent( pathTemplate: "\"/chatkit/threads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessListThreadsMethodResponseContent( pathTemplate: "\"/chatkit/threads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListThreadsMethodResponseContent( pathTemplate: "\"/chatkit/threads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -369,7 +369,7 @@ partial void ProcessListThreadsMethodResponseContent( pathTemplate: "\"/chatkit/threads\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs index df100026d..e509d67c2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEndpoints.g.cs @@ -182,7 +182,7 @@ partial void ProcessListWebhookEndpointsResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessListWebhookEndpointsResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessListWebhookEndpointsResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessListWebhookEndpointsResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessListWebhookEndpointsResponseContent( pathTemplate: "\"/webhook_endpoints\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs index 85d50d858..259a5bf1c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.ListWebhookEventTypes.g.cs @@ -160,7 +160,7 @@ partial void ProcessListWebhookEventTypesResponseContent( pathTemplate: "\"/webhook_event_types\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ partial void ProcessListWebhookEventTypesResponseContent( pathTemplate: "\"/webhook_event_types\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessListWebhookEventTypesResponseContent( pathTemplate: "\"/webhook_event_types\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessListWebhookEventTypesResponseContent( pathTemplate: "\"/webhook_event_types\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessListWebhookEventTypesResponseContent( pathTemplate: "\"/webhook_event_types\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs index 5e125b958..6d562121d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Listexternalstorageconfigurations.g.cs @@ -204,7 +204,7 @@ partial void ProcessListexternalstorageconfigurationsResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -238,7 +238,7 @@ partial void ProcessListexternalstorageconfigurationsResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -279,7 +279,7 @@ partial void ProcessListexternalstorageconfigurationsResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessListexternalstorageconfigurationsResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -349,7 +349,7 @@ partial void ProcessListexternalstorageconfigurationsResponseContent( pathTemplate: "\"/organization/external_storage\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6fcd83acd..cbf16373a 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 @@ -147,7 +147,7 @@ partial void ProcessRetrieveContainerResponseContent( PrepareRetrieveContainerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!); + containerId: containerId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveContainerResponseContent( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveContainerResponseContent( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveContainerResponseContent( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveContainerResponseContent( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveContainerResponseContent( pathTemplate: "$\"/containers/{containerId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 e34f8730c..d5d835d6d 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 @@ -155,8 +155,8 @@ partial void ProcessRetrieveContainerFileResponseContent( PrepareRetrieveContainerFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!, - fileId: fileId!); + containerId: containerId, + fileId: fileId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessRetrieveContainerFileResponseContent( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessRetrieveContainerFileResponseContent( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessRetrieveContainerFileResponseContent( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessRetrieveContainerFileResponseContent( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessRetrieveContainerFileResponseContent( pathTemplate: "$\"/containers/{containerId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs index 00fe71950..5bfa5427b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveContainerFileContent.g.cs @@ -38,6 +38,11 @@ partial void ProcessRetrieveContainerFileContentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void ProcessRetrieveContainerFileContentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref byte[] content); + /// /// Retrieve container file content
/// Retrieve Container File Content @@ -47,18 +52,413 @@ partial void ProcessRetrieveContainerFileContentResponse( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RetrieveContainerFileContentAsync( + public async global::System.Threading.Tasks.Task RetrieveContainerFileContentAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await RetrieveContainerFileContentAsResponseAsync( + var __response = await RetrieveContainerFileContentAsResponseAsync( containerId: containerId, fileId: fileId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieve container file content
+ /// Retrieve Container File Content + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task RetrieveContainerFileContentAsStreamAsync( + string containerId, + string fileId, + global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareRetrieveContainerFileContentArguments( + httpClient: HttpClient, + containerId: ref containerId, + fileId: ref fileId); + + + var __authorizations = global::tryAGI.OpenAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_RetrieveContainerFileContentSecurityRequirements, + operationName: "RetrieveContainerFileContentAsync"); + + using var __timeoutCancellationTokenSource = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::tryAGI.OpenAI.PathBuilder( + path: $"/containers/{containerId}/files/{fileId}/content", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareRetrieveContainerFileContentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + containerId: containerId, + fileId: fileId); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveContainerFileContent", + methodName: "RetrieveContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveContainerFileContent", + methodName: "RetrieveContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveContainerFileContent", + methodName: "RetrieveContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessRetrieveContainerFileContentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveContainerFileContent", + methodName: "RetrieveContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::tryAGI.OpenAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "RetrieveContainerFileContent", + methodName: "RetrieveContainerFileContentAsync", + pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // The container was not found or has expired, or the file was not found in the container. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The request was rejected because a rate limit was exceeded. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::tryAGI.OpenAI.ErrorResponse? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::tryAGI.OpenAI.ErrorResponse.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::tryAGI.OpenAI.ResponseStream(__response, __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::tryAGI.OpenAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } } /// /// Retrieve container file content
@@ -69,7 +469,7 @@ await RetrieveContainerFileContentAsResponseAsync( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RetrieveContainerFileContentAsResponseAsync( + public async global::System.Threading.Tasks.Task> RetrieveContainerFileContentAsResponseAsync( string containerId, string fileId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -148,8 +548,8 @@ await RetrieveContainerFileContentAsResponseAsync( PrepareRetrieveContainerFileContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - containerId: containerId!, - fileId: fileId!); + containerId: containerId, + fileId: fileId); return __httpRequest; } @@ -171,7 +571,7 @@ await RetrieveContainerFileContentAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +605,7 @@ await RetrieveContainerFileContentAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +646,7 @@ await RetrieveContainerFileContentAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +694,7 @@ await RetrieveContainerFileContentAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +716,7 @@ await RetrieveContainerFileContentAsResponseAsync( pathTemplate: "$\"/containers/{containerId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -405,33 +805,34 @@ await RetrieveContainerFileContentAsResponseAsync( if (__effectiveReadResponseAsString) { - var __content = await __response.Content.ReadAsStringAsync( + var __content = await __response.Content.ReadAsByteArrayAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - ProcessResponseContent( - client: HttpClient, - response: __response, + ProcessRetrieveContainerFileContentResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, content: ref __content); try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __content); } catch (global::System.Exception __ex) { throw global::tryAGI.OpenAI.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __response.ReasonPhrase ?? string.Empty, innerException: __ex, - responseBody: __content, + responseBody: null, responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, @@ -443,10 +844,17 @@ await RetrieveContainerFileContentAsResponseAsync( try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + var __content = await __response.Content.ReadAsByteArrayAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __content); } catch (global::System.Exception __ex) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs index 2e0de68dc..332201503 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RetrieveWebhookEndpoint.g.cs @@ -151,7 +151,7 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( PrepareRetrieveWebhookEndpointRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - webhookEndpointId: webhookEndpointId!); + webhookEndpointId: webhookEndpointId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessRetrieveWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs index fd56e9af8..c5570efe8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.RotateWebhookEndpointSigningSecret.g.cs @@ -170,7 +170,7 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( PrepareRotateWebhookEndpointSigningSecretRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - webhookEndpointId: webhookEndpointId!, + webhookEndpointId: webhookEndpointId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/rotate_secret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/rotate_secret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/rotate_secret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/rotate_secret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessRotateWebhookEndpointSigningSecretResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/rotate_secret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs index ea67f65e5..dfc0fd988 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.TestWebhookEndpoint.g.cs @@ -170,7 +170,7 @@ partial void ProcessTestWebhookEndpointResponseContent( PrepareTestWebhookEndpointRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - webhookEndpointId: webhookEndpointId!, + webhookEndpointId: webhookEndpointId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessTestWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/test\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessTestWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/test\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessTestWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/test\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessTestWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/test\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessTestWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}/test\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs index 6c58727c7..be947bd66 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.UpdateWebhookEndpoint.g.cs @@ -170,7 +170,7 @@ partial void ProcessUpdateWebhookEndpointResponseContent( PrepareUpdateWebhookEndpointRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - webhookEndpointId: webhookEndpointId!, + webhookEndpointId: webhookEndpointId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessUpdateWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessUpdateWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessUpdateWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessUpdateWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessUpdateWebhookEndpointResponseContent( pathTemplate: "$\"/webhook_endpoints/{webhookEndpointId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateorganizationspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateorganizationspendlimit.g.cs index 4e96a99cf..1f535930d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateorganizationspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateorganizationspendlimit.g.cs @@ -182,7 +182,7 @@ partial void ProcessUpdateorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessUpdateorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessUpdateorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessUpdateorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessUpdateorganizationspendlimitResponseContent( pathTemplate: "\"/organization/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateprojectspendlimit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateprojectspendlimit.g.cs index 455c66b21..f3492e59c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateprojectspendlimit.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Updateprojectspendlimit.g.cs @@ -170,7 +170,7 @@ partial void ProcessUpdateprojectspendlimitResponseContent( PrepareUpdateprojectspendlimitRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -195,7 +195,7 @@ partial void ProcessUpdateprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -229,7 +229,7 @@ partial void ProcessUpdateprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -270,7 +270,7 @@ partial void ProcessUpdateprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessUpdateprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -340,7 +340,7 @@ partial void ProcessUpdateprojectspendlimitResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_limit\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs index a5723d81a..e418c8a50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OpenAiClient.Validateanexternalstorageconfiguration.g.cs @@ -151,7 +151,7 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( PrepareValidateanexternalstorageconfigurationRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - externalStorageId: externalStorageId!); + externalStorageId: externalStorageId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -175,7 +175,7 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessValidateanexternalstorageconfigurationResponseContent( pathTemplate: "$\"/organization/external_storage/{externalStorageId}/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs index 973e7b5ed..68908da23 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Aut { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Aut { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::tryAGI.OpenAI.Aut for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -489,7 +490,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -504,7 +505,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::tryAGI.OpenAI.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::tryAGI.OpenAI.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs index 3f9fb3bca..ed7eec76b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignments.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs index 9bdd9fe36..2c09f16e8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.AssignProjectGroupRole.g.cs @@ -174,8 +174,8 @@ partial void ProcessAssignProjectGroupRoleResponseContent( PrepareAssignProjectGroupRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - groupId: groupId!, + projectId: projectId, + groupId: groupId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessAssignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessAssignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessAssignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessAssignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessAssignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 9b6b31f6d..47fb5b82c 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 @@ -184,8 +184,8 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( PrepareListProjectGroupRoleAssignmentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - groupId: groupId!, + projectId: projectId, + groupId: groupId, limit: limit, after: after, order: order); @@ -212,7 +212,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -287,7 +287,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -335,7 +335,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -357,7 +357,7 @@ partial void ProcessListProjectGroupRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs index 13eec0443..c6b5105d5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.RetrieveProjectGroupRole.g.cs @@ -163,9 +163,9 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( PrepareRetrieveProjectGroupRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - groupId: groupId!, - roleId: roleId!); + projectId: projectId, + groupId: groupId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -189,7 +189,7 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessRetrieveProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs index e02be4e3e..d517b90d2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupRoleAssignmentsClient.UnassignProjectGroupRole.g.cs @@ -163,9 +163,9 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( PrepareUnassignProjectGroupRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - groupId: groupId!, - roleId: roleId!); + projectId: projectId, + groupId: groupId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -189,7 +189,7 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUnassignProjectGroupRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/groups/{groupId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs index a715b5417..8be8477f9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroups.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 e63be2d5e..0bafd0097 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 @@ -166,7 +166,7 @@ partial void ProcessAddProjectGroupResponseContent( PrepareAddProjectGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessAddProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessAddProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessAddProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessAddProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessAddProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 81123eac6..878c37cb5 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 @@ -184,7 +184,7 @@ partial void ProcessListProjectGroupsResponseContent( PrepareListProjectGroupsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after, order: order); @@ -211,7 +211,7 @@ partial void ProcessListProjectGroupsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListProjectGroupsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListProjectGroupsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListProjectGroupsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListProjectGroupsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c8cd7a24a..6e7800f5d 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 @@ -155,8 +155,8 @@ partial void ProcessRemoveProjectGroupResponseContent( PrepareRemoveProjectGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - groupId: groupId!); + projectId: projectId, + groupId: groupId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRemoveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRemoveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRemoveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRemoveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRemoveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs index 242af6218..4ca128d93 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectGroupsClient.RetrieveProjectGroup.g.cs @@ -170,8 +170,8 @@ partial void ProcessRetrieveProjectGroupResponseContent( PrepareRetrieveProjectGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - groupId: groupId!, + projectId: projectId, + groupId: groupId, groupType: groupType); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -196,7 +196,7 @@ partial void ProcessRetrieveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -230,7 +230,7 @@ partial void ProcessRetrieveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -271,7 +271,7 @@ partial void ProcessRetrieveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -319,7 +319,7 @@ partial void ProcessRetrieveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessRetrieveProjectGroupResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/groups/{groupId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs index a28797818..40773b489 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignments.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs index 3d3b7a8f4..f902ee32a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.AssignProjectUserRole.g.cs @@ -174,8 +174,8 @@ partial void ProcessAssignProjectUserRoleResponseContent( PrepareAssignProjectUserRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!, + projectId: projectId, + userId: userId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessAssignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessAssignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessAssignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessAssignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessAssignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 fe58da967..11ceeee59 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 @@ -184,8 +184,8 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( PrepareListProjectUserRoleAssignmentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!, + projectId: projectId, + userId: userId, limit: limit, after: after, order: order); @@ -212,7 +212,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -287,7 +287,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -335,7 +335,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -357,7 +357,7 @@ partial void ProcessListProjectUserRoleAssignmentsResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs index 85162affe..c47fb8d93 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.RetrieveProjectUserRole.g.cs @@ -163,9 +163,9 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( PrepareRetrieveProjectUserRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!, - roleId: roleId!); + projectId: projectId, + userId: userId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -189,7 +189,7 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessRetrieveProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs index 2e3b00ed0..f2517de35 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectUserRoleAssignmentsClient.UnassignProjectUserRole.g.cs @@ -163,9 +163,9 @@ partial void ProcessUnassignProjectUserRoleResponseContent( PrepareUnassignProjectUserRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!, - roleId: roleId!); + projectId: projectId, + userId: userId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -189,7 +189,7 @@ partial void ProcessUnassignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessUnassignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessUnassignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUnassignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessUnassignProjectUserRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Projects.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Projects.JsonSerializerContext.g.cs index 0d6db7bdb..d5d6c1aee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Projects.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Projects.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 51f29af43..e0de4dcea 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 @@ -147,7 +147,7 @@ partial void ProcessArchiveProjectResponseContent( PrepareArchiveProjectRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessArchiveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/archive\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessArchiveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/archive\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessArchiveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/archive\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessArchiveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/archive\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessArchiveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/archive\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 7a81a1f4c..5a5f402e2 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 @@ -184,7 +184,7 @@ partial void ProcessCreateProjectResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessCreateProjectResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessCreateProjectResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessCreateProjectResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessCreateProjectResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 2ad0b0d3c..9e684c5d3 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 @@ -166,7 +166,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( PrepareCreateProjectServiceAccountRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 f37f5f586..1ef85646b 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 @@ -166,7 +166,7 @@ partial void ProcessCreateProjectUserResponseContent( PrepareCreateProjectUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessCreateProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessCreateProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessCreateProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessCreateProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 21dac3bde..637d15af8 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 @@ -159,8 +159,8 @@ partial void ProcessDeleteProjectApiKeyResponseContent( PrepareDeleteProjectApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - apiKeyId: apiKeyId!); + projectId: projectId, + apiKeyId: apiKeyId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -184,7 +184,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessDeleteProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs index 4788bd954..7cb67293e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.DeleteProjectModelPermissions.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( PrepareDeleteProjectModelPermissionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6cdafb075..372c6a042 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 @@ -159,8 +159,8 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( PrepareDeleteProjectServiceAccountRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - serviceAccountId: serviceAccountId!); + projectId: projectId, + serviceAccountId: serviceAccountId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -184,7 +184,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessDeleteProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 4bc0a4cab..e0ac18cf2 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 @@ -159,8 +159,8 @@ partial void ProcessDeleteProjectUserResponseContent( PrepareDeleteProjectUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!); + projectId: projectId, + userId: userId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -184,7 +184,7 @@ partial void ProcessDeleteProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ partial void ProcessDeleteProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ partial void ProcessDeleteProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessDeleteProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessDeleteProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6c9a36f27..a41b8b904 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 @@ -180,7 +180,7 @@ partial void ProcessListProjectApiKeysResponseContent( PrepareListProjectApiKeysRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after, ownerProjectAccess: ownerProjectAccess); @@ -207,7 +207,7 @@ partial void ProcessListProjectApiKeysResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -241,7 +241,7 @@ partial void ProcessListProjectApiKeysResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -282,7 +282,7 @@ partial void ProcessListProjectApiKeysResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessListProjectApiKeysResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -352,7 +352,7 @@ partial void ProcessListProjectApiKeysResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 767d1343a..c36a7d0ca 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 @@ -180,7 +180,7 @@ partial void ProcessListProjectRateLimitsResponseContent( PrepareListProjectRateLimitsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after, before: before); @@ -207,7 +207,7 @@ partial void ProcessListProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -241,7 +241,7 @@ partial void ProcessListProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -282,7 +282,7 @@ partial void ProcessListProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessListProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -352,7 +352,7 @@ partial void ProcessListProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c06c46adc..79eb36c5b 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 @@ -171,7 +171,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( PrepareListProjectServiceAccountsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after); @@ -197,7 +197,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessListProjectServiceAccountsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 e1fe7ca22..9ca954a0a 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 @@ -171,7 +171,7 @@ partial void ProcessListProjectUsersResponseContent( PrepareListProjectUsersRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after); @@ -197,7 +197,7 @@ partial void ProcessListProjectUsersResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessListProjectUsersResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessListProjectUsersResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessListProjectUsersResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessListProjectUsersResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 43455bdc7..7d2522146 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 @@ -202,7 +202,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -236,7 +236,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -277,7 +277,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListProjectsResponseContent( pathTemplate: "\"/organization/projects\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ff57c5cec..a205f5488 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 @@ -168,7 +168,7 @@ partial void ProcessModifyProjectResponseContent( PrepareModifyProjectRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -193,7 +193,7 @@ partial void ProcessModifyProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessModifyProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessModifyProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessModifyProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessModifyProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 8753cbde5..0ba2dd810 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 @@ -174,8 +174,8 @@ partial void ProcessModifyProjectUserResponseContent( PrepareModifyProjectUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!, + projectId: projectId, + userId: userId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessModifyProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessModifyProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessModifyProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessModifyProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessModifyProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 5eacc7bdd..7008899dc 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 @@ -147,7 +147,7 @@ partial void ProcessRetrieveProjectResponseContent( PrepareRetrieveProjectRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveProjectResponseContent( pathTemplate: "$\"/organization/projects/{projectId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 f4a98a0b6..e0d67c96e 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 @@ -155,8 +155,8 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( PrepareRetrieveProjectApiKeyRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - apiKeyId: apiKeyId!); + projectId: projectId, + apiKeyId: apiKeyId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveProjectApiKeyResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/api_keys/{apiKeyId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs index de56468ce..7a063f7d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.RetrieveProjectModelPermissions.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( PrepareRetrieveProjectModelPermissionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!); + projectId: projectId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 3dcbff7d7..998fd0ec7 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 @@ -155,8 +155,8 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( PrepareRetrieveProjectServiceAccountRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - serviceAccountId: serviceAccountId!); + projectId: projectId, + serviceAccountId: serviceAccountId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ccb87ecf0..4c2ee6696 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 @@ -155,8 +155,8 @@ partial void ProcessRetrieveProjectUserResponseContent( PrepareRetrieveProjectUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - userId: userId!); + projectId: projectId, + userId: userId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveProjectUserResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs index da21af78a..f75ff30eb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectModelPermissions.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( PrepareUpdateProjectModelPermissionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessUpdateProjectModelPermissionsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/model_permissions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs index 591e4d1c4..43a21b816 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectRateLimits.g.cs @@ -174,8 +174,8 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( PrepareUpdateProjectRateLimitsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - rateLimitId: rateLimitId!, + projectId: projectId, + rateLimitId: rateLimitId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits/{rateLimitId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits/{rateLimitId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits/{rateLimitId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits/{rateLimitId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessUpdateProjectRateLimitsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/rate_limits/{rateLimitId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs index d1bbf2c31..b6dcf9fd6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ProjectsClient.UpdateProjectServiceAccount.g.cs @@ -174,8 +174,8 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( PrepareUpdateProjectServiceAccountRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - serviceAccountId: serviceAccountId!, + projectId: projectId, + serviceAccountId: serviceAccountId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessUpdateProjectServiceAccountResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/service_accounts/{serviceAccountId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs index a8c7f3a95..09342793f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs index 87eff9578..889299873 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.AcceptRealtimeCall.g.cs @@ -161,7 +161,7 @@ await AcceptRealtimeCallAsResponseAsync( PrepareAcceptRealtimeCallRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - callId: callId!, + callId: callId, request: request); return __httpRequest; @@ -184,7 +184,7 @@ await AcceptRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -218,7 +218,7 @@ await AcceptRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -259,7 +259,7 @@ await AcceptRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ await AcceptRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ await AcceptRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/accept\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCall.g.cs index 71f429dfe..82aa00f7f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCall.g.cs @@ -193,7 +193,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -529,7 +529,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -563,7 +563,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -604,7 +604,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -652,7 +652,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -674,7 +674,7 @@ partial void ProcessCreateRealtimeCallResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCallWithRawBody.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCallWithRawBody.g.cs index 6002c6919..1a3d5c69c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCallWithRawBody.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeCallWithRawBody.g.cs @@ -182,7 +182,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -507,7 +507,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -541,7 +541,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -582,7 +582,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -630,7 +630,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -652,7 +652,7 @@ partial void ProcessCreateRealtimeCallWithRawBodyResponseContent( pathTemplate: "\"/realtime/calls\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs index 19f371eec..2d1eb6962 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeClientSecret.g.cs @@ -196,7 +196,7 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( pathTemplate: "\"/realtime/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -230,7 +230,7 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( pathTemplate: "\"/realtime/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -271,7 +271,7 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( pathTemplate: "\"/realtime/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -319,7 +319,7 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( pathTemplate: "\"/realtime/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessCreateRealtimeClientSecretResponseContent( pathTemplate: "\"/realtime/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs index 6046cfbad..dfbfada4c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeSession.g.cs @@ -192,7 +192,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( pathTemplate: "\"/realtime/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -226,7 +226,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( pathTemplate: "\"/realtime/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -267,7 +267,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( pathTemplate: "\"/realtime/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( pathTemplate: "\"/realtime/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessCreateRealtimeSessionResponseContent( pathTemplate: "\"/realtime/sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs index 93a648efe..9bf523550 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranscriptionSession.g.cs @@ -192,7 +192,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( pathTemplate: "\"/realtime/transcription_sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -226,7 +226,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( pathTemplate: "\"/realtime/transcription_sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -267,7 +267,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( pathTemplate: "\"/realtime/transcription_sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( pathTemplate: "\"/realtime/transcription_sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessCreateRealtimeTranscriptionSessionResponseContent( pathTemplate: "\"/realtime/transcription_sessions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs index 25ba115ea..143b72a26 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.CreateRealtimeTranslationClientSecret.g.cs @@ -192,7 +192,7 @@ partial void ProcessCreateRealtimeTranslationClientSecretResponseContent( pathTemplate: "\"/realtime/translations/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -226,7 +226,7 @@ partial void ProcessCreateRealtimeTranslationClientSecretResponseContent( pathTemplate: "\"/realtime/translations/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -267,7 +267,7 @@ partial void ProcessCreateRealtimeTranslationClientSecretResponseContent( pathTemplate: "\"/realtime/translations/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessCreateRealtimeTranslationClientSecretResponseContent( pathTemplate: "\"/realtime/translations/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessCreateRealtimeTranslationClientSecretResponseContent( pathTemplate: "\"/realtime/translations/client_secrets\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs index d3ead5a57..650dd4d3b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.HangupRealtimeCall.g.cs @@ -142,7 +142,7 @@ await HangupRealtimeCallAsResponseAsync( PrepareHangupRealtimeCallRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - callId: callId!); + callId: callId); return __httpRequest; } @@ -164,7 +164,7 @@ await HangupRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -198,7 +198,7 @@ await HangupRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -239,7 +239,7 @@ await HangupRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -287,7 +287,7 @@ await HangupRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ await HangupRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/hangup\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs index dd3bae1fc..22d0a9d50 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.ReferRealtimeCall.g.cs @@ -159,7 +159,7 @@ await ReferRealtimeCallAsResponseAsync( PrepareReferRealtimeCallRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - callId: callId!, + callId: callId, request: request); return __httpRequest; @@ -182,7 +182,7 @@ await ReferRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ await ReferRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ await ReferRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await ReferRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ await ReferRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/refer\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs index 716569d15..2929dd271 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RealtimeClient.RejectRealtimeCall.g.cs @@ -159,7 +159,7 @@ await RejectRealtimeCallAsResponseAsync( PrepareRejectRealtimeCallRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - callId: callId!, + callId: callId, request: request); return __httpRequest; @@ -182,7 +182,7 @@ await RejectRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ await RejectRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ await RejectRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await RejectRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ await RejectRealtimeCallAsResponseAsync( pathTemplate: "$\"/realtime/calls/{callId}/reject\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs index 3fdad9e46..a5edc23c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Responses.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs index 3d69a1525..bc7c540af 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCancelResponse.g.cs @@ -169,7 +169,7 @@ partial void ProcessBetaCancelResponseResponseContent( PrepareBetaCancelResponseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!, + responseId: responseId, openaiBeta: openaiBeta); return __httpRequest; @@ -192,7 +192,7 @@ partial void ProcessBetaCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -226,7 +226,7 @@ partial void ProcessBetaCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -267,7 +267,7 @@ partial void ProcessBetaCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessBetaCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessBetaCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs index dcdc8cb05..52df901d0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCompactconversation.g.cs @@ -197,7 +197,7 @@ partial void ProcessBetaCompactconversationResponseContent( pathTemplate: "\"/responses/compact?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessBetaCompactconversationResponseContent( pathTemplate: "\"/responses/compact?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessBetaCompactconversationResponseContent( pathTemplate: "\"/responses/compact?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessBetaCompactconversationResponseContent( pathTemplate: "\"/responses/compact?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessBetaCompactconversationResponseContent( pathTemplate: "\"/responses/compact?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs index e8d83f2c5..39188e312 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponse.g.cs @@ -209,7 +209,7 @@ partial void ProcessBetaCreateResponseResponseContent( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -243,7 +243,7 @@ partial void ProcessBetaCreateResponseResponseContent( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessBetaCreateResponseResponseContent( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessBetaCreateResponseResponseContent( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -354,7 +354,7 @@ partial void ProcessBetaCreateResponseResponseContent( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponseAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponseAsStream.g.cs index d1fde5c18..ae1a4090f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponseAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaCreateResponseAsStream.g.cs @@ -172,7 +172,7 @@ partial void ProcessBetaCreateResponseAsStreamResponse( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -206,7 +206,7 @@ partial void ProcessBetaCreateResponseAsStreamResponse( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -247,7 +247,7 @@ partial void ProcessBetaCreateResponseAsStreamResponse( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -295,7 +295,7 @@ partial void ProcessBetaCreateResponseAsStreamResponse( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -317,7 +317,7 @@ partial void ProcessBetaCreateResponseAsStreamResponse( pathTemplate: "\"/responses?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs index 91b316764..b5d12dcd2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaDeleteResponse.g.cs @@ -38,6 +38,11 @@ partial void ProcessBetaDeleteResponseResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void ProcessBetaDeleteResponseResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + /// /// Delete a model response
/// Deletes a model response with the given ID. @@ -49,18 +54,20 @@ partial void ProcessBetaDeleteResponseResponse( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task BetaDeleteResponseAsync( + public async global::System.Threading.Tasks.Task BetaDeleteResponseAsync( string responseId, global::System.Collections.Generic.IList? openaiBeta = default, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await BetaDeleteResponseAsResponseAsync( + var __response = await BetaDeleteResponseAsResponseAsync( responseId: responseId, openaiBeta: openaiBeta, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); + + return __response.Body; } /// /// Delete a model response
@@ -73,7 +80,7 @@ await BetaDeleteResponseAsResponseAsync( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task BetaDeleteResponseAsResponseAsync( + public async global::System.Threading.Tasks.Task> BetaDeleteResponseAsResponseAsync( string responseId, global::System.Collections.Generic.IList? openaiBeta = default, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, @@ -158,7 +165,7 @@ await BetaDeleteResponseAsResponseAsync( PrepareBetaDeleteResponseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!, + responseId: responseId, openaiBeta: openaiBeta); return __httpRequest; @@ -181,7 +188,7 @@ await BetaDeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -215,7 +222,7 @@ await BetaDeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -256,7 +263,7 @@ await BetaDeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -304,7 +311,7 @@ await BetaDeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -326,7 +333,7 @@ await BetaDeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -425,15 +432,22 @@ await BetaDeleteResponseAsResponseAsync( client: HttpClient, response: __response, content: ref __content); + ProcessBetaDeleteResponseResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + var __value = global::tryAGI.OpenAI.BetaDeleteResponseResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { @@ -453,10 +467,19 @@ await BetaDeleteResponseAsResponseAsync( try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.BetaDeleteResponseResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs index 75b30641f..e62a49e28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetResponse.g.cs @@ -203,7 +203,7 @@ partial void ProcessBetaGetResponseResponseContent( PrepareBetaGetResponseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!, + responseId: responseId, include: include, stream: stream, startingAfter: startingAfter, @@ -230,7 +230,7 @@ partial void ProcessBetaGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessBetaGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessBetaGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessBetaGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessBetaGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs index d6a4dfdc5..185d3358c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaGetinputtokencounts.g.cs @@ -197,7 +197,7 @@ partial void ProcessBetaGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessBetaGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessBetaGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessBetaGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessBetaGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens?beta=true\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs index 0fa6b2da6..2647fea5b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.BetaListInputItems.g.cs @@ -203,7 +203,7 @@ partial void ProcessBetaListInputItemsResponseContent( PrepareBetaListInputItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!, + responseId: responseId, limit: limit, order: order, after: after, @@ -230,7 +230,7 @@ partial void ProcessBetaListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessBetaListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessBetaListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessBetaListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessBetaListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items?beta=true\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs index 9bcf6b236..efcbe8cee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CancelResponse.g.cs @@ -155,7 +155,7 @@ partial void ProcessCancelResponseResponseContent( PrepareCancelResponseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!); + responseId: responseId); return __httpRequest; } @@ -177,7 +177,7 @@ partial void ProcessCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -211,7 +211,7 @@ partial void ProcessCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -252,7 +252,7 @@ partial void ProcessCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -300,7 +300,7 @@ partial void ProcessCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessCancelResponseResponseContent( pathTemplate: "$\"/responses/{responseId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs index 9cbe2ac6d..6bcb769b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Compactconversation.g.cs @@ -182,7 +182,7 @@ partial void ProcessCompactconversationResponseContent( pathTemplate: "\"/responses/compact\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCompactconversationResponseContent( pathTemplate: "\"/responses/compact\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCompactconversationResponseContent( pathTemplate: "\"/responses/compact\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCompactconversationResponseContent( pathTemplate: "\"/responses/compact\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCompactconversationResponseContent( pathTemplate: "\"/responses/compact\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs index b0b16d89f..b500aa5ae 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponse.g.cs @@ -194,7 +194,7 @@ partial void ProcessCreateResponseResponseContent( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -228,7 +228,7 @@ partial void ProcessCreateResponseResponseContent( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -269,7 +269,7 @@ partial void ProcessCreateResponseResponseContent( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -317,7 +317,7 @@ partial void ProcessCreateResponseResponseContent( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -339,7 +339,7 @@ partial void ProcessCreateResponseResponseContent( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponseAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponseAsStream.g.cs index fef3235a8..c50e36f31 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponseAsStream.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.CreateResponseAsStream.g.cs @@ -160,7 +160,7 @@ partial void ProcessCreateResponseAsStreamResponse( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ partial void ProcessCreateResponseAsStreamResponse( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessCreateResponseAsStreamResponse( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessCreateResponseAsStreamResponse( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateResponseAsStreamResponse( pathTemplate: "\"/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs index 866028f84..cd21bff95 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.DeleteResponse.g.cs @@ -36,6 +36,11 @@ partial void ProcessDeleteResponseResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); + partial void ProcessDeleteResponseResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + /// /// Delete a model response
/// Deletes a model response with the given ID. @@ -46,16 +51,18 @@ partial void ProcessDeleteResponseResponse( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteResponseAsync( + public async global::System.Threading.Tasks.Task DeleteResponseAsync( string responseId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await DeleteResponseAsResponseAsync( + var __response = await DeleteResponseAsResponseAsync( responseId: responseId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); + + return __response.Body; } /// /// Delete a model response
@@ -67,7 +74,7 @@ await DeleteResponseAsResponseAsync( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteResponseAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteResponseAsResponseAsync( string responseId, global::tryAGI.OpenAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -144,7 +151,7 @@ await DeleteResponseAsResponseAsync( PrepareDeleteResponseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!); + responseId: responseId); return __httpRequest; } @@ -166,7 +173,7 @@ await DeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -200,7 +207,7 @@ await DeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -241,7 +248,7 @@ await DeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -289,7 +296,7 @@ await DeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -311,7 +318,7 @@ await DeleteResponseAsResponseAsync( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -410,15 +417,22 @@ await DeleteResponseAsResponseAsync( client: HttpClient, response: __response, content: ref __content); + ProcessDeleteResponseResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + var __value = global::tryAGI.OpenAI.DeleteResponseResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { @@ -438,10 +452,19 @@ await DeleteResponseAsResponseAsync( try { __response.EnsureSuccessStatusCode(); - return new global::tryAGI.OpenAI.AutoSDKHttpResponse( + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::tryAGI.OpenAI.DeleteResponseResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::tryAGI.OpenAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::tryAGI.OpenAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri); + requestUri: __response.RequestMessage?.RequestUri, + body: __value); } catch (global::System.Exception __ex) { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs index 50a1ac53a..d8c58785d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.GetResponse.g.cs @@ -189,7 +189,7 @@ partial void ProcessGetResponseResponseContent( PrepareGetResponseRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!, + responseId: responseId, include: include, stream: stream, startingAfter: startingAfter, @@ -215,7 +215,7 @@ partial void ProcessGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -249,7 +249,7 @@ partial void ProcessGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -360,7 +360,7 @@ partial void ProcessGetResponseResponseContent( pathTemplate: "$\"/responses/{responseId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs index 61657d27c..27f8a1fe6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ResponsesClient.Getinputtokencounts.g.cs @@ -182,7 +182,7 @@ partial void ProcessGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessGetinputtokencountsResponseContent( pathTemplate: "\"/responses/input_tokens\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 1697d6b3e..0c25aff7e 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 @@ -189,7 +189,7 @@ partial void ProcessListInputItemsResponseContent( PrepareListInputItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - responseId: responseId!, + responseId: responseId, limit: limit, order: order, after: after, @@ -215,7 +215,7 @@ partial void ProcessListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -249,7 +249,7 @@ partial void ProcessListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -360,7 +360,7 @@ partial void ProcessListInputItemsResponseContent( pathTemplate: "$\"/responses/{responseId}/input_items\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs index c602cb497..0a15f0f9c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Roles.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 a4623c7e1..2ef984999 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 @@ -166,7 +166,7 @@ partial void ProcessCreateProjectRoleResponseContent( PrepareCreateProjectRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessCreateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessCreateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessCreateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessCreateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs index cc1b9c127..df87e17a1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.CreateRole.g.cs @@ -182,7 +182,7 @@ partial void ProcessCreateRoleResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateRoleResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateRoleResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateRoleResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateRoleResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 10ea153ce..ae31ad1c6 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 @@ -155,8 +155,8 @@ partial void ProcessDeleteProjectRoleResponseContent( PrepareDeleteProjectRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - roleId: roleId!); + projectId: projectId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessDeleteProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessDeleteProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessDeleteProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessDeleteProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessDeleteProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs index 7f0a06ec7..a0fc00168 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.DeleteRole.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteRoleResponseContent( PrepareDeleteRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - roleId: roleId!); + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessDeleteRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ee35b797d..a256e4fcb 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 @@ -184,7 +184,7 @@ partial void ProcessListProjectRolesResponseContent( PrepareListProjectRolesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, after: after, order: order); @@ -211,7 +211,7 @@ partial void ProcessListProjectRolesResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessListProjectRolesResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -286,7 +286,7 @@ partial void ProcessListProjectRolesResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListProjectRolesResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ partial void ProcessListProjectRolesResponseContent( pathTemplate: "$\"/projects/{projectId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs index 39ac4d441..d2527c155 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.ListRoles.g.cs @@ -202,7 +202,7 @@ partial void ProcessListRolesResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -236,7 +236,7 @@ partial void ProcessListRolesResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -277,7 +277,7 @@ partial void ProcessListRolesResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListRolesResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListRolesResponseContent( pathTemplate: "\"/organization/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs index ee9281a2e..2c18e4579 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveProjectRole.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveProjectRoleResponseContent( PrepareRetrieveProjectRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - roleId: roleId!); + projectId: projectId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs index abf974cd5..9391af683 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.RetrieveRole.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveRoleResponseContent( PrepareRetrieveRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - roleId: roleId!); + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 a631be844..6b5df7cbc 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 @@ -174,8 +174,8 @@ partial void ProcessUpdateProjectRoleResponseContent( PrepareUpdateProjectRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - roleId: roleId!, + projectId: projectId, + roleId: roleId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessUpdateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessUpdateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessUpdateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessUpdateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessUpdateProjectRoleResponseContent( pathTemplate: "$\"/projects/{projectId}/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs index aae918155..0b84faaf2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.RolesClient.UpdateRole.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateRoleResponseContent( PrepareUpdateRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - roleId: roleId!, + roleId: roleId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessUpdateRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessUpdateRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessUpdateRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessUpdateRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessUpdateRoleResponseContent( pathTemplate: "$\"/organization/roles/{roleId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Skills.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Skills.JsonSerializerContext.g.cs index bbbb0a68f..c3dd92e0b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Skills.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Skills.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 79599ca8d..f26c4e218 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 @@ -267,7 +267,7 @@ __fileNameFiles2 is null pathTemplate: "\"/skills\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ __fileNameFiles2 is null pathTemplate: "\"/skills\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -342,7 +342,7 @@ __fileNameFiles2 is null pathTemplate: "\"/skills\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -390,7 +390,7 @@ __fileNameFiles2 is null pathTemplate: "\"/skills\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -412,7 +412,7 @@ __fileNameFiles2 is null pathTemplate: "\"/skills\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 432707c1d..56765415f 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 @@ -266,7 +266,7 @@ __fileNameFiles2 is null PrepareCreateSkillVersionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, + skillId: skillId, request: request); return __httpRequest; @@ -289,7 +289,7 @@ __fileNameFiles2 is null pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ __fileNameFiles2 is null pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -364,7 +364,7 @@ __fileNameFiles2 is null pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -412,7 +412,7 @@ __fileNameFiles2 is null pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -434,7 +434,7 @@ __fileNameFiles2 is null pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 3fc69f9c4..924d8101f 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 @@ -151,7 +151,7 @@ partial void ProcessDeleteSkillResponseContent( PrepareDeleteSkillRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!); + skillId: skillId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessDeleteSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessDeleteSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessDeleteSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessDeleteSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessDeleteSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 b484f783b..859fc6388 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 @@ -163,8 +163,8 @@ partial void ProcessDeleteSkillVersionResponseContent( PrepareDeleteSkillVersionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, - version: version!); + skillId: skillId, + version: version); return __httpRequest; } @@ -186,7 +186,7 @@ partial void ProcessDeleteSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessDeleteSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessDeleteSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessDeleteSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessDeleteSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 836898a96..ac45f0e6e 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 @@ -151,7 +151,7 @@ partial void ProcessGetSkillResponseContent( PrepareGetSkillRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!); + skillId: skillId); return __httpRequest; } @@ -173,7 +173,7 @@ partial void ProcessGetSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -207,7 +207,7 @@ partial void ProcessGetSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessGetSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessGetSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -318,7 +318,7 @@ partial void ProcessGetSkillResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs index f375e5c23..d911f3d17 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs @@ -155,7 +155,7 @@ partial void ProcessGetSkillContentResponseContent( PrepareGetSkillContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!); + skillId: skillId); return __httpRequest; } @@ -177,7 +177,7 @@ partial void ProcessGetSkillContentResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -211,7 +211,7 @@ partial void ProcessGetSkillContentResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -252,7 +252,7 @@ partial void ProcessGetSkillContentResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -300,7 +300,7 @@ partial void ProcessGetSkillContentResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessGetSkillContentResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs index 6cf439fec..d3f295190 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContentAsBytes.g.cs @@ -155,7 +155,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( PrepareGetSkillContentAsBytesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!); + skillId: skillId); return __httpRequest; } @@ -177,7 +177,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -211,7 +211,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -252,7 +252,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -300,7 +300,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -550,7 +550,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( PrepareGetSkillContentAsBytesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!); + skillId: skillId); return __httpRequest; } @@ -572,7 +572,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -606,7 +606,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -647,7 +647,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -695,7 +695,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -717,7 +717,7 @@ partial void ProcessGetSkillContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ce5e364d5..2ec7c797b 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 @@ -163,8 +163,8 @@ partial void ProcessGetSkillVersionResponseContent( PrepareGetSkillVersionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, - version: version!); + skillId: skillId, + version: version); return __httpRequest; } @@ -186,7 +186,7 @@ partial void ProcessGetSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessGetSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessGetSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessGetSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessGetSkillVersionResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs index a570571eb..41a11a3e0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs @@ -167,8 +167,8 @@ partial void ProcessGetSkillVersionContentResponseContent( PrepareGetSkillVersionContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, - version: version!); + skillId: skillId, + version: version); return __httpRequest; } @@ -190,7 +190,7 @@ partial void ProcessGetSkillVersionContentResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -224,7 +224,7 @@ partial void ProcessGetSkillVersionContentResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -265,7 +265,7 @@ partial void ProcessGetSkillVersionContentResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessGetSkillVersionContentResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -335,7 +335,7 @@ partial void ProcessGetSkillVersionContentResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs index 568a85895..2515c33b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContentAsBytes.g.cs @@ -167,8 +167,8 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( PrepareGetSkillVersionContentAsBytesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, - version: version!); + skillId: skillId, + version: version); return __httpRequest; } @@ -190,7 +190,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -224,7 +224,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -265,7 +265,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -335,7 +335,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -605,8 +605,8 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( PrepareGetSkillVersionContentAsBytesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, - version: version!); + skillId: skillId, + version: version); return __httpRequest; } @@ -628,7 +628,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -662,7 +662,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -703,7 +703,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -751,7 +751,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -773,7 +773,7 @@ partial void ProcessGetSkillVersionContentAsBytesResponseContent( pathTemplate: "$\"/skills/{skillId}/versions/{version}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 dafe22884..cc974e544 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 @@ -184,7 +184,7 @@ partial void ProcessListSkillVersionsResponseContent( PrepareListSkillVersionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, + skillId: skillId, limit: limit, order: order, after: after); @@ -209,7 +209,7 @@ partial void ProcessListSkillVersionsResponseContent( pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -243,7 +243,7 @@ partial void ProcessListSkillVersionsResponseContent( pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessListSkillVersionsResponseContent( pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessListSkillVersionsResponseContent( pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -354,7 +354,7 @@ partial void ProcessListSkillVersionsResponseContent( pathTemplate: "$\"/skills/{skillId}/versions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 8ebec23c2..c7ec0fb12 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 @@ -196,7 +196,7 @@ partial void ProcessListSkillsResponseContent( pathTemplate: "\"/skills\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -230,7 +230,7 @@ partial void ProcessListSkillsResponseContent( pathTemplate: "\"/skills\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -271,7 +271,7 @@ partial void ProcessListSkillsResponseContent( pathTemplate: "\"/skills\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -319,7 +319,7 @@ partial void ProcessListSkillsResponseContent( pathTemplate: "\"/skills\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -341,7 +341,7 @@ partial void ProcessListSkillsResponseContent( pathTemplate: "\"/skills\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 25746267e..1fb49a095 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 @@ -170,7 +170,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( PrepareUpdateSkillDefaultVersionRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - skillId: skillId!, + skillId: skillId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessUpdateSkillDefaultVersionResponseContent( pathTemplate: "$\"/skills/{skillId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs index 86bfb458d..73084c50a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlerts.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs index 3e5ce0a78..b7decbece 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateOrganizationSpendAlert.g.cs @@ -182,7 +182,7 @@ partial void ProcessCreateOrganizationSpendAlertResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -216,7 +216,7 @@ partial void ProcessCreateOrganizationSpendAlertResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -257,7 +257,7 @@ partial void ProcessCreateOrganizationSpendAlertResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ partial void ProcessCreateOrganizationSpendAlertResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateOrganizationSpendAlertResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs index d762a57b5..58b921c87 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.CreateProjectSpendAlert.g.cs @@ -166,7 +166,7 @@ partial void ProcessCreateProjectSpendAlertResponseContent( PrepareCreateProjectSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessCreateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessCreateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessCreateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessCreateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessCreateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs index 575f28736..b067d7e56 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteOrganizationSpendAlert.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( PrepareDeleteOrganizationSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - alertId: alertId!); + alertId: alertId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs index 330c4609a..5b9f005a4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.DeleteProjectSpendAlert.g.cs @@ -155,8 +155,8 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( PrepareDeleteProjectSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - alertId: alertId!); + projectId: projectId, + alertId: alertId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessDeleteProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs index efc19ffcc..7fcb58425 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListOrganizationSpendAlerts.g.cs @@ -208,7 +208,7 @@ partial void ProcessListOrganizationSpendAlertsResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessListOrganizationSpendAlertsResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessListOrganizationSpendAlertsResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessListOrganizationSpendAlertsResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessListOrganizationSpendAlertsResponseContent( pathTemplate: "\"/organization/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs index 9b7213d77..bf41d02c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.ListProjectSpendAlerts.g.cs @@ -189,7 +189,7 @@ partial void ProcessListProjectSpendAlertsResponseContent( PrepareListProjectSpendAlertsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, + projectId: projectId, limit: limit, order: order, after: after, @@ -217,7 +217,7 @@ partial void ProcessListProjectSpendAlertsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessListProjectSpendAlertsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessListProjectSpendAlertsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -340,7 +340,7 @@ partial void ProcessListProjectSpendAlertsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -362,7 +362,7 @@ partial void ProcessListProjectSpendAlertsResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs index 08a422a7c..c642757f2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveOrganizationSpendAlert.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( PrepareRetrieveOrganizationSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - alertId: alertId!); + alertId: alertId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs index 1f3a4e07b..bfb493acc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.RetrieveProjectSpendAlert.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( PrepareRetrieveProjectSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - alertId: alertId!); + projectId: projectId, + alertId: alertId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs index 5a9a0fdc8..e0b3efb8b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateOrganizationSpendAlert.g.cs @@ -166,7 +166,7 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( PrepareUpdateOrganizationSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - alertId: alertId!, + alertId: alertId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessUpdateOrganizationSpendAlertResponseContent( pathTemplate: "$\"/organization/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs index 00b31f8d4..91581cfe3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SpendAlertsClient.UpdateProjectSpendAlert.g.cs @@ -174,8 +174,8 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( PrepareUpdateProjectSpendAlertRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - projectId: projectId!, - alertId: alertId!, + projectId: projectId, + alertId: alertId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -200,7 +200,7 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -234,7 +234,7 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -275,7 +275,7 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -345,7 +345,7 @@ partial void ProcessUpdateProjectSpendAlertResponseContent( pathTemplate: "$\"/organization/projects/{projectId}/spend_alerts/{alertId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs index 658c8348a..287876952 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Uploads.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 e3dca3ff8..44df49db3 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 @@ -210,7 +210,7 @@ request.Dataname is null PrepareAddUploadPartRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!, + uploadId: uploadId, request: request); return __httpRequest; @@ -233,7 +233,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -267,7 +267,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -308,7 +308,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -356,7 +356,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -378,7 +378,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -856,7 +856,7 @@ request.Dataname is null PrepareAddUploadPartRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!, + uploadId: uploadId, request: request); return __httpRequest; @@ -879,7 +879,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -913,7 +913,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -954,7 +954,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1002,7 +1002,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1024,7 +1024,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1456,7 +1456,7 @@ request.Dataname is null PrepareAddUploadPartRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!, + uploadId: uploadId, request: request); return __httpRequest; @@ -1479,7 +1479,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1513,7 +1513,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1554,7 +1554,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1602,7 +1602,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1624,7 +1624,7 @@ request.Dataname is null pathTemplate: "$\"/uploads/{uploadId}/parts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 84b75f88d..cb6ed8deb 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 @@ -153,7 +153,7 @@ partial void ProcessCancelUploadResponseContent( PrepareCancelUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!); + uploadId: uploadId); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessCancelUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessCancelUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessCancelUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessCancelUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessCancelUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 878b003a4..27dadf521 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 @@ -178,7 +178,7 @@ partial void ProcessCompleteUploadResponseContent( PrepareCompleteUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - uploadId: uploadId!, + uploadId: uploadId, request: request); return __httpRequest; @@ -201,7 +201,7 @@ partial void ProcessCompleteUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/complete\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -235,7 +235,7 @@ partial void ProcessCompleteUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/complete\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -276,7 +276,7 @@ partial void ProcessCompleteUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/complete\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessCompleteUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/complete\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -346,7 +346,7 @@ partial void ProcessCompleteUploadResponseContent( pathTemplate: "$\"/uploads/{uploadId}/complete\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 13e14d9ed..5f0df986d 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 @@ -208,7 +208,7 @@ partial void ProcessCreateUploadResponseContent( pathTemplate: "\"/uploads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCreateUploadResponseContent( pathTemplate: "\"/uploads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -283,7 +283,7 @@ partial void ProcessCreateUploadResponseContent( pathTemplate: "\"/uploads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessCreateUploadResponseContent( pathTemplate: "\"/uploads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessCreateUploadResponseContent( pathTemplate: "\"/uploads\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs index aeb25f209..4df459829 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Usage.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs index b9d22eeda..9fa29dfbf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioSpeeches.g.cs @@ -184,7 +184,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( path: "/organization/usage/audio_speeches", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -235,7 +235,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( PrepareUsageAudioSpeechesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -268,7 +268,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( pathTemplate: "\"/organization/usage/audio_speeches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( pathTemplate: "\"/organization/usage/audio_speeches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( pathTemplate: "\"/organization/usage/audio_speeches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -391,7 +391,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( pathTemplate: "\"/organization/usage/audio_speeches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessUsageAudioSpeechesResponseContent( pathTemplate: "\"/organization/usage/audio_speeches\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs index 9261e6e9c..d0a2a377a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageAudioTranscriptions.g.cs @@ -184,7 +184,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( path: "/organization/usage/audio_transcriptions", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -235,7 +235,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( PrepareUsageAudioTranscriptionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -268,7 +268,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( pathTemplate: "\"/organization/usage/audio_transcriptions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( pathTemplate: "\"/organization/usage/audio_transcriptions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( pathTemplate: "\"/organization/usage/audio_transcriptions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -391,7 +391,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( pathTemplate: "\"/organization/usage/audio_transcriptions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessUsageAudioTranscriptionsResponseContent( pathTemplate: "\"/organization/usage/audio_transcriptions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs index 061834c29..e9020f417 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCodeInterpreterSessions.g.cs @@ -160,7 +160,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( path: "/organization/usage/code_interpreter_sessions", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -208,7 +208,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( PrepareUsageCodeInterpreterSessionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -238,7 +238,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( pathTemplate: "\"/organization/usage/code_interpreter_sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( pathTemplate: "\"/organization/usage/code_interpreter_sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( pathTemplate: "\"/organization/usage/code_interpreter_sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -361,7 +361,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( pathTemplate: "\"/organization/usage/code_interpreter_sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -383,7 +383,7 @@ partial void ProcessUsageCodeInterpreterSessionsResponseContent( pathTemplate: "\"/organization/usage/code_interpreter_sessions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs index 23743fcfe..c9dccf7e7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCompletions.g.cs @@ -192,7 +192,7 @@ partial void ProcessUsageCompletionsResponseContent( path: "/organization/usage/completions", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -244,7 +244,7 @@ partial void ProcessUsageCompletionsResponseContent( PrepareUsageCompletionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -278,7 +278,7 @@ partial void ProcessUsageCompletionsResponseContent( pathTemplate: "\"/organization/usage/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUsageCompletionsResponseContent( pathTemplate: "\"/organization/usage/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessUsageCompletionsResponseContent( pathTemplate: "\"/organization/usage/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -401,7 +401,7 @@ partial void ProcessUsageCompletionsResponseContent( pathTemplate: "\"/organization/usage/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessUsageCompletionsResponseContent( pathTemplate: "\"/organization/usage/completions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs index b1b467de1..469d467cf 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageCosts.g.cs @@ -180,7 +180,7 @@ partial void ProcessUsageCostsResponseContent( path: "/organization/costs", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -230,7 +230,7 @@ partial void ProcessUsageCostsResponseContent( PrepareUsageCostsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -262,7 +262,7 @@ partial void ProcessUsageCostsResponseContent( pathTemplate: "\"/organization/costs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -296,7 +296,7 @@ partial void ProcessUsageCostsResponseContent( pathTemplate: "\"/organization/costs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessUsageCostsResponseContent( pathTemplate: "\"/organization/costs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -385,7 +385,7 @@ partial void ProcessUsageCostsResponseContent( pathTemplate: "\"/organization/costs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -407,7 +407,7 @@ partial void ProcessUsageCostsResponseContent( pathTemplate: "\"/organization/costs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs index 9375cac52..e17023cfd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageEmbeddings.g.cs @@ -184,7 +184,7 @@ partial void ProcessUsageEmbeddingsResponseContent( path: "/organization/usage/embeddings", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -235,7 +235,7 @@ partial void ProcessUsageEmbeddingsResponseContent( PrepareUsageEmbeddingsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -268,7 +268,7 @@ partial void ProcessUsageEmbeddingsResponseContent( pathTemplate: "\"/organization/usage/embeddings\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessUsageEmbeddingsResponseContent( pathTemplate: "\"/organization/usage/embeddings\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessUsageEmbeddingsResponseContent( pathTemplate: "\"/organization/usage/embeddings\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -391,7 +391,7 @@ partial void ProcessUsageEmbeddingsResponseContent( pathTemplate: "\"/organization/usage/embeddings\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessUsageEmbeddingsResponseContent( pathTemplate: "\"/organization/usage/embeddings\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs index a6d0a806b..0decca545 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageFileSearchCalls.g.cs @@ -184,7 +184,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( path: "/organization/usage/file_search_calls", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -235,7 +235,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( PrepareUsageFileSearchCallsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -268,7 +268,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( pathTemplate: "\"/organization/usage/file_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( pathTemplate: "\"/organization/usage/file_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( pathTemplate: "\"/organization/usage/file_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -391,7 +391,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( pathTemplate: "\"/organization/usage/file_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessUsageFileSearchCallsResponseContent( pathTemplate: "\"/organization/usage/file_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs index b362f698a..06aa097d9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageImages.g.cs @@ -200,7 +200,7 @@ partial void ProcessUsageImagesResponseContent( path: "/organization/usage/images", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("sources", sources, selector: static x => x.ToValueString(), delimiter: ",", explode: true) @@ -253,7 +253,7 @@ partial void ProcessUsageImagesResponseContent( PrepareUsageImagesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, sources: sources, @@ -288,7 +288,7 @@ partial void ProcessUsageImagesResponseContent( pathTemplate: "\"/organization/usage/images\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessUsageImagesResponseContent( pathTemplate: "\"/organization/usage/images\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -363,7 +363,7 @@ partial void ProcessUsageImagesResponseContent( pathTemplate: "\"/organization/usage/images\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -411,7 +411,7 @@ partial void ProcessUsageImagesResponseContent( pathTemplate: "\"/organization/usage/images\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -433,7 +433,7 @@ partial void ProcessUsageImagesResponseContent( pathTemplate: "\"/organization/usage/images\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs index d483a9fd0..0c44b137b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageModerations.g.cs @@ -184,7 +184,7 @@ partial void ProcessUsageModerationsResponseContent( path: "/organization/usage/moderations", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -235,7 +235,7 @@ partial void ProcessUsageModerationsResponseContent( PrepareUsageModerationsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -268,7 +268,7 @@ partial void ProcessUsageModerationsResponseContent( pathTemplate: "\"/organization/usage/moderations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessUsageModerationsResponseContent( pathTemplate: "\"/organization/usage/moderations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessUsageModerationsResponseContent( pathTemplate: "\"/organization/usage/moderations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -391,7 +391,7 @@ partial void ProcessUsageModerationsResponseContent( pathTemplate: "\"/organization/usage/moderations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessUsageModerationsResponseContent( pathTemplate: "\"/organization/usage/moderations\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs index c5e0aa91c..60ee83169 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageVectorStores.g.cs @@ -160,7 +160,7 @@ partial void ProcessUsageVectorStoresResponseContent( path: "/organization/usage/vector_stores", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -208,7 +208,7 @@ partial void ProcessUsageVectorStoresResponseContent( PrepareUsageVectorStoresRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -238,7 +238,7 @@ partial void ProcessUsageVectorStoresResponseContent( pathTemplate: "\"/organization/usage/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessUsageVectorStoresResponseContent( pathTemplate: "\"/organization/usage/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessUsageVectorStoresResponseContent( pathTemplate: "\"/organization/usage/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -361,7 +361,7 @@ partial void ProcessUsageVectorStoresResponseContent( pathTemplate: "\"/organization/usage/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -383,7 +383,7 @@ partial void ProcessUsageVectorStoresResponseContent( pathTemplate: "\"/organization/usage/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs index 98f1c8856..90ffcbcb7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UsageClient.UsageWebSearchCalls.g.cs @@ -192,7 +192,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( path: "/organization/usage/web_search_calls", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("start_time", startTime.ToString()!) + .AddRequiredParameter("start_time", startTime.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) .AddOptionalParameter("end_time", endTime?.ToString()) .AddOptionalParameter("bucket_width", bucketWidth?.ToValueString()) .AddOptionalParameter("project_ids", projectIds, delimiter: ",", explode: true) @@ -244,7 +244,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( PrepareUsageWebSearchCallsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - startTime: startTime!, + startTime: startTime, endTime: endTime, bucketWidth: bucketWidth, projectIds: projectIds, @@ -278,7 +278,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( pathTemplate: "\"/organization/usage/web_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( pathTemplate: "\"/organization/usage/web_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( pathTemplate: "\"/organization/usage/web_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -401,7 +401,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( pathTemplate: "\"/organization/usage/web_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessUsageWebSearchCallsResponseContent( pathTemplate: "\"/organization/usage/web_search_calls\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs index 56fb563c5..8215aa16a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignments.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs index c96079069..8bccf5125 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.AssignUserRole.g.cs @@ -166,7 +166,7 @@ partial void ProcessAssignUserRoleResponseContent( PrepareAssignUserRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!, + userId: userId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessAssignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessAssignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessAssignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessAssignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessAssignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs index 47d99c560..cff92abeb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.ListUserRoleAssignments.g.cs @@ -176,7 +176,7 @@ partial void ProcessListUserRoleAssignmentsResponseContent( PrepareListUserRoleAssignmentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!, + userId: userId, limit: limit, after: after, order: order); @@ -203,7 +203,7 @@ partial void ProcessListUserRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessListUserRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -278,7 +278,7 @@ partial void ProcessListUserRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -326,7 +326,7 @@ partial void ProcessListUserRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -348,7 +348,7 @@ partial void ProcessListUserRoleAssignmentsResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs index 8ef4a6d6a..2d76d6325 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.RetrieveUserRole.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveUserRoleResponseContent( PrepareRetrieveUserRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!, - roleId: roleId!); + userId: userId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessRetrieveUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessRetrieveUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessRetrieveUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessRetrieveUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessRetrieveUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs index eb5b505dd..429b408bd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.UserOrganizationRoleAssignmentsClient.UnassignUserRole.g.cs @@ -155,8 +155,8 @@ partial void ProcessUnassignUserRoleResponseContent( PrepareUnassignUserRoleRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!, - roleId: roleId!); + userId: userId, + roleId: roleId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -180,7 +180,7 @@ partial void ProcessUnassignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessUnassignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessUnassignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessUnassignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessUnassignUserRoleResponseContent( pathTemplate: "$\"/organization/users/{userId}/roles/{roleId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Users.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Users.JsonSerializerContext.g.cs index fa9e3ef54..015742893 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Users.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Users.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 e81bcb325..5999cf3e2 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteUserResponseContent( PrepareDeleteUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!); + userId: userId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessDeleteUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessDeleteUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessDeleteUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessDeleteUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessDeleteUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 e55e548c2..75a30fa5d 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 @@ -198,7 +198,7 @@ partial void ProcessListUsersResponseContent( pathTemplate: "\"/organization/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessListUsersResponseContent( pathTemplate: "\"/organization/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessListUsersResponseContent( pathTemplate: "\"/organization/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessListUsersResponseContent( pathTemplate: "\"/organization/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessListUsersResponseContent( pathTemplate: "\"/organization/users\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 0f45be386..1fc6d51df 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 @@ -166,7 +166,7 @@ partial void ProcessModifyUserResponseContent( PrepareModifyUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!, + userId: userId, request: request); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -191,7 +191,7 @@ partial void ProcessModifyUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ partial void ProcessModifyUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ partial void ProcessModifyUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessModifyUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ partial void ProcessModifyUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 88fd74eb9..ce1beec1b 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 @@ -147,7 +147,7 @@ partial void ProcessRetrieveUserResponseContent( PrepareRetrieveUserRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - userId: userId!); + userId: userId); global::tryAGI.OpenAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(__httpRequest); @@ -171,7 +171,7 @@ partial void ProcessRetrieveUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -205,7 +205,7 @@ partial void ProcessRetrieveUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -246,7 +246,7 @@ partial void ProcessRetrieveUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessRetrieveUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessRetrieveUserResponseContent( pathTemplate: "$\"/organization/users/{userId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Vaults.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Vaults.JsonSerializerContext.g.cs index 23f20cf05..90cb1440d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Vaults.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Vaults.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVault.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVault.g.cs index d39de9943..873019568 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVault.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVault.g.cs @@ -180,7 +180,7 @@ partial void ProcessCreateVaultResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateVaultResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateVaultResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateVaultResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateVaultResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVaultCredential.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVaultCredential.g.cs index b5e0267d5..1fafd4683 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVaultCredential.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.CreateVaultCredential.g.cs @@ -166,7 +166,7 @@ partial void ProcessCreateVaultCredentialResponseContent( PrepareCreateVaultCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!, + vaultId: vaultId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessCreateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessCreateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessCreateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCreateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessCreateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVault.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVault.g.cs index 6e46560da..b105dd926 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVault.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVault.g.cs @@ -147,7 +147,7 @@ partial void ProcessDeleteVaultResponseContent( PrepareDeleteVaultRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!); + vaultId: vaultId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVaultCredential.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVaultCredential.g.cs index dded3b799..548e99c90 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVaultCredential.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.DeleteVaultCredential.g.cs @@ -155,8 +155,8 @@ partial void ProcessDeleteVaultCredentialResponseContent( PrepareDeleteVaultCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!, - credentialId: credentialId!); + vaultId: vaultId, + credentialId: credentialId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessDeleteVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessDeleteVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessDeleteVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessDeleteVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessDeleteVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs index 394efa3f4..f906b965f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaultCredentials.g.cs @@ -198,7 +198,7 @@ partial void ProcessListVaultCredentialsResponseContent( PrepareListVaultCredentialsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!, + vaultId: vaultId, order: order, limit: limit, status: status, @@ -224,7 +224,7 @@ partial void ProcessListVaultCredentialsResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -258,7 +258,7 @@ partial void ProcessListVaultCredentialsResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessListVaultCredentialsResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessListVaultCredentialsResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -369,7 +369,7 @@ partial void ProcessListVaultCredentialsResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs index e2befa6fe..94509d60a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.ListVaults.g.cs @@ -215,7 +215,7 @@ partial void ProcessListVaultsResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -249,7 +249,7 @@ partial void ProcessListVaultsResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessListVaultsResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessListVaultsResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -360,7 +360,7 @@ partial void ProcessListVaultsResponseContent( pathTemplate: "\"/vaults\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVault.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVault.g.cs index d66714fe3..88d13d32d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVault.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVault.g.cs @@ -147,7 +147,7 @@ partial void ProcessRetrieveVaultResponseContent( PrepareRetrieveVaultRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!); + vaultId: vaultId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessRetrieveVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessRetrieveVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessRetrieveVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessRetrieveVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessRetrieveVaultResponseContent( pathTemplate: "$\"/vaults/{vaultId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVaultCredential.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVaultCredential.g.cs index 881bd59fb..416bd8316 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVaultCredential.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RetrieveVaultCredential.g.cs @@ -155,8 +155,8 @@ partial void ProcessRetrieveVaultCredentialResponseContent( PrepareRetrieveVaultCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!, - credentialId: credentialId!); + vaultId: vaultId, + credentialId: credentialId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessRetrieveVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessRetrieveVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessRetrieveVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessRetrieveVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessRetrieveVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RotateVaultCredential.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RotateVaultCredential.g.cs index 3cfe52c2a..e53ce8607 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RotateVaultCredential.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VaultsClient.RotateVaultCredential.g.cs @@ -174,8 +174,8 @@ partial void ProcessRotateVaultCredentialResponseContent( PrepareRotateVaultCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vaultId: vaultId!, - credentialId: credentialId!, + vaultId: vaultId, + credentialId: credentialId, request: request); return __httpRequest; @@ -198,7 +198,7 @@ partial void ProcessRotateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessRotateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessRotateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessRotateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessRotateVaultCredentialResponseContent( pathTemplate: "$\"/vaults/{vaultId}/credentials/{credentialId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStores.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStores.JsonSerializerContext.g.cs index f927bc9e3..1c1723717 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStores.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStores.JsonSerializerContext.g.cs @@ -1,9 +1,6 @@ #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 { /// /// 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 259ae4962..4769ce312 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 @@ -155,8 +155,8 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( PrepareCancelVectorStoreFileBatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - batchId: batchId!); + vectorStoreId: vectorStoreId, + batchId: batchId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCancelVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 ca389b70c..fa1caae81 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 @@ -180,7 +180,7 @@ partial void ProcessCreateVectorStoreResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessCreateVectorStoreResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessCreateVectorStoreResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessCreateVectorStoreResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateVectorStoreResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 1e4cf822c..35ed31c36 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 @@ -170,7 +170,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( PrepareCreateVectorStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, + vectorStoreId: vectorStoreId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessCreateVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 2a912aa85..878a39ae8 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 @@ -170,7 +170,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( PrepareCreateVectorStoreFileBatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, + vectorStoreId: vectorStoreId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessCreateVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 fc6e64544..d31c2f031 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 @@ -147,7 +147,7 @@ partial void ProcessDeleteVectorStoreResponseContent( PrepareDeleteVectorStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!); + vectorStoreId: vectorStoreId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessDeleteVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessDeleteVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessDeleteVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessDeleteVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessDeleteVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 1c8dace34..8e2b70ce3 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 @@ -155,8 +155,8 @@ partial void ProcessDeleteVectorStoreFileResponseContent( PrepareDeleteVectorStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - fileId: fileId!); + vectorStoreId: vectorStoreId, + fileId: fileId); return __httpRequest; } @@ -178,7 +178,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessDeleteVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs index c5c8a776e..3cbe487ca 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStore.g.cs @@ -147,7 +147,7 @@ partial void ProcessGetVectorStoreResponseContent( PrepareGetVectorStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!); + vectorStoreId: vectorStoreId); return __httpRequest; } @@ -169,7 +169,7 @@ partial void ProcessGetVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -203,7 +203,7 @@ partial void ProcessGetVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessGetVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -292,7 +292,7 @@ partial void ProcessGetVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessGetVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs index b8c0775c3..70435e64d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFile.g.cs @@ -163,8 +163,8 @@ partial void ProcessGetVectorStoreFileResponseContent( PrepareGetVectorStoreFileRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - fileId: fileId!); + vectorStoreId: vectorStoreId, + fileId: fileId); return __httpRequest; } @@ -186,7 +186,7 @@ partial void ProcessGetVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessGetVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessGetVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessGetVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessGetVectorStoreFileResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs index eceecab29..023d412ba 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.GetVectorStoreFileBatch.g.cs @@ -163,8 +163,8 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( PrepareGetVectorStoreFileBatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - batchId: batchId!); + vectorStoreId: vectorStoreId, + batchId: batchId); return __httpRequest; } @@ -186,7 +186,7 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessGetVectorStoreFileBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs index 2bfb2f238..e636b1ffb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VectorStoresClient.ListFilesInVectorStoreBatch.g.cs @@ -210,8 +210,8 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( PrepareListFilesInVectorStoreBatchRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - batchId: batchId!, + vectorStoreId: vectorStoreId, + batchId: batchId, limit: limit, order: order, after: after, @@ -238,7 +238,7 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -361,7 +361,7 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -383,7 +383,7 @@ partial void ProcessListFilesInVectorStoreBatchResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c5c074c3e..b40859598 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 @@ -202,7 +202,7 @@ partial void ProcessListVectorStoreFilesResponseContent( PrepareListVectorStoreFilesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, + vectorStoreId: vectorStoreId, limit: limit, order: order, after: after, @@ -229,7 +229,7 @@ partial void ProcessListVectorStoreFilesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessListVectorStoreFilesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -304,7 +304,7 @@ partial void ProcessListVectorStoreFilesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -352,7 +352,7 @@ partial void ProcessListVectorStoreFilesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -374,7 +374,7 @@ partial void ProcessListVectorStoreFilesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 dc7641611..0b3370f25 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 @@ -210,7 +210,7 @@ partial void ProcessListVectorStoresResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -244,7 +244,7 @@ partial void ProcessListVectorStoresResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessListVectorStoresResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessListVectorStoresResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessListVectorStoresResponseContent( pathTemplate: "\"/vector_stores\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 0cdc242ea..0b61d59ec 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 @@ -166,7 +166,7 @@ partial void ProcessModifyVectorStoreResponseContent( PrepareModifyVectorStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, + vectorStoreId: vectorStoreId, request: request); return __httpRequest; @@ -189,7 +189,7 @@ partial void ProcessModifyVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessModifyVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessModifyVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessModifyVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessModifyVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 15a87c65c..3185dcd34 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 @@ -163,8 +163,8 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( PrepareRetrieveVectorStoreFileContentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - fileId: fileId!); + vectorStoreId: vectorStoreId, + fileId: fileId); return __httpRequest; } @@ -186,7 +186,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -220,7 +220,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -261,7 +261,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -331,7 +331,7 @@ partial void ProcessRetrieveVectorStoreFileContentResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}/content\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 7c354da87..4b3637896 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 @@ -170,7 +170,7 @@ partial void ProcessSearchVectorStoreResponseContent( PrepareSearchVectorStoreRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, + vectorStoreId: vectorStoreId, request: request); return __httpRequest; @@ -193,7 +193,7 @@ partial void ProcessSearchVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/search\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessSearchVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/search\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessSearchVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/search\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessSearchVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/search\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessSearchVectorStoreResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/search\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 d24b65f85..28a82b8e7 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 @@ -182,8 +182,8 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( PrepareUpdateVectorStoreFileAttributesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - vectorStoreId: vectorStoreId!, - fileId: fileId!, + vectorStoreId: vectorStoreId, + fileId: fileId, request: request); return __httpRequest; @@ -206,7 +206,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -240,7 +240,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -329,7 +329,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -351,7 +351,7 @@ partial void ProcessUpdateVectorStoreFileAttributesResponseContent( pathTemplate: "$\"/vector_stores/{vectorStoreId}/files/{fileId}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/tryAGI.OpenAI/asyncapi.json b/src/libs/tryAGI.OpenAI/asyncapi.json index 87e42388b..aa7807b18 100644 --- a/src/libs/tryAGI.OpenAI/asyncapi.json +++ b/src/libs/tryAGI.OpenAI/asyncapi.json @@ -1381,7 +1381,10 @@ ] }, "language": { - "type": "string", + "type": [ + "string", + "null" + ], "description": "The language of the input audio.\n" }, "languages": { @@ -5739,10 +5742,20 @@ }, "transcription": { "description": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n", - "$ref": "#/components/schemas/AudioTranscriptionResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/AudioTranscriptionResponse" + }, + { + "type": "null" + } + ] }, "noise_reduction": { - "type": "object", + "type": [ + "object", + "null" + ], "default": null, "description": "Configuration for input audio noise reduction. This can be set to `null` to turn off.\nNoise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.\nFiltering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.\n", "properties": { @@ -5780,7 +5793,10 @@ } }, "include": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string", "enum": [ @@ -6121,7 +6137,10 @@ "description": "Expiration timestamp for the session, in seconds since epoch." }, "include": { - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string", "enum": [ @@ -6142,10 +6161,20 @@ }, "transcription": { "description": "Configuration of the transcription model.\n", - "$ref": "#/components/schemas/AudioTranscriptionResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/AudioTranscriptionResponse" + }, + { + "type": "null" + } + ] }, "noise_reduction": { - "type": "object", + "type": [ + "object", + "null" + ], "description": "Configuration for input audio noise reduction.\n", "properties": { "type": { @@ -6196,7 +6225,7 @@ "x-oaiMeta": { "name": "The transcription session object", "group": "realtime", - "example": "{\n \"id\": \"sess_BBwZc7cFV3XizEyKGDCGL\",\n \"type\": \"transcription\",\n \"object\": \"realtime.transcription_session\",\n \"expires_at\": 1742188264,\n \"include\": [\"item.input_audio_transcription.logprobs\"],\n \"audio\": {\n \"input\": {\n \"format\": \"pcm16\",\n \"transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"language\": null,\n \"prompt\": \"\"\n },\n \"noise_reduction\": null,\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 200\n }\n }\n }\n}\n" + "example": "{\n \"id\": \"sess_BBwZc7cFV3XizEyKGDCGL\",\n \"type\": \"transcription\",\n \"object\": \"realtime.transcription_session\",\n \"expires_at\": 1742188264,\n \"include\": [\"item.input_audio_transcription.logprobs\"],\n \"audio\": {\n \"input\": {\n \"format\": {\"type\": \"audio/pcm\", \"rate\": 24000},\n \"transcription\": {\n \"model\": \"gpt-4o-transcribe\",\n \"language\": null,\n \"prompt\": \"\"\n },\n \"noise_reduction\": null,\n \"turn_detection\": {\n \"type\": \"server_vad\",\n \"threshold\": 0.5,\n \"prefix_padding_ms\": 300,\n \"silence_duration_ms\": 200\n }\n }\n }\n}\n" } }, "RealtimeTruncation": { diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index c9ec668de..617266454 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -812,7 +812,7 @@ paths: content: application/json: schema: - oneOf: + anyOf: - $ref: "#/components/schemas/CreateTranscriptionResponseJson" - $ref: "#/components/schemas/CreateTranscriptionResponseDiarizedJson" - $ref: "#/components/schemas/CreateTranscriptionResponseVerboseJson" @@ -1318,28 +1318,22 @@ paths: Console.WriteLine($"{transcription.Text}"); - response: > + response: | { "task": "transcribe", "language": "english", - "duration": 8.470000267028809, - "text": "The beach was a popular spot on a hot summer day. People were swimming in the ocean, building sandcastles, and playing beach volleyball.", + "duration": 0.5, + "text": "Hello.", "words": [ { - "word": "The", + "word": "Hello", "start": 0.0, - "end": 0.23999999463558197 - }, - ... - { - "word": "volleyball", - "start": 7.400000095367432, - "end": 7.900000095367432 + "end": 0.5 } ], "usage": { "type": "duration", - "seconds": 9 + "seconds": 1 } } - title: Segment timestamps @@ -1419,8 +1413,8 @@ paths: { "task": "transcribe", "language": "english", - "duration": 8.470000267028809, - "text": "The beach was a popular spot on a hot summer day. People were swimming in the ocean, building sandcastles, and playing beach volleyball.", + "duration": 3.32, + "text": "The beach was a popular spot on a hot summer day.", "segments": [ { "id": 0, @@ -1435,12 +1429,11 @@ paths: "avg_logprob": -0.2860786020755768, "compression_ratio": 1.2363636493682861, "no_speech_prob": 0.00985979475080967 - }, - ... + } ], "usage": { "type": "duration", - "seconds": 9 + "seconds": 4 } } /audio/translations: @@ -2072,14 +2065,13 @@ paths: }, "metadata": { "customer_id": "user_123456789", - "batch_description": "Nightly job", + "batch_description": "Nightly job" } - }, - { ... }, + } ], "first_id": "batch_abc123", - "last_id": "batch_abc456", - "has_more": true + "last_id": "batch_abc123", + "has_more": false } /batches/{batch_id}: get: @@ -2900,14 +2892,17 @@ paths: Console.Write(completionUpdate.ContentUpdate[0].Text); } } - response: | - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} + response: |+ + data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} + + data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]} - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]} + : Intermediate chat completion chunks omitted. - .... + data: {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + + data: [DONE] - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} - title: Functions request: curl: > @@ -3387,7 +3382,8 @@ paths: } ] } - ] + ], + "refusal": null }, "finish_reason": "stop" } @@ -3401,8 +3397,7 @@ paths: "accepted_prediction_tokens": 0, "rejected_prediction_tokens": 0 } - }, - "system_fingerprint": null + } } /chat/completions/{completion_id}: get: @@ -4209,6 +4204,23 @@ paths: responses: "200": description: OK + content: + application/json: + schema: + type: object + properties: + object: + type: string + enum: + - container.deleted + deleted: + type: boolean + id: + type: string + required: + - object + - deleted + - id "404": description: The container was not found. content: @@ -4448,6 +4460,23 @@ paths: responses: "200": description: OK + content: + application/json: + schema: + type: object + properties: + object: + type: string + enum: + - container.file.deleted + deleted: + type: boolean + id: + type: string + required: + - object + - deleted + - id "404": description: The container was not found or has expired, or the file was not found in the container. @@ -4490,6 +4519,11 @@ paths: responses: "200": description: Success + content: + "*/*": + schema: + type: string + format: binary "404": description: The container was not found or has expired, or the file was not found in the container. @@ -5126,18 +5160,20 @@ paths: -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ - "input": "The food was delicious and the waiter...", - "model": "text-embedding-ada-002", - "encoding_format": "float" + "input": "Hello world", + "model": "text-embedding-3-small", + "encoding_format": "float", + "dimensions": 3 }' python: | from openai import OpenAI client = OpenAI() client.embeddings.create( - model="text-embedding-ada-002", - input="The food was delicious and the waiter...", - encoding_format="float" + model="text-embedding-3-small", + input="Hello world", + encoding_format="float", + dimensions=3 ) javascript: | import OpenAI from "openai"; @@ -5146,9 +5182,10 @@ paths: async function main() { const embedding = await openai.embeddings.create({ - model: "text-embedding-ada-002", - input: "The quick brown fox jumped over the lazy dog", + model: "text-embedding-3-small", + input: "Hello world", encoding_format: "float", + dimensions: 3, }); console.log(embedding); @@ -5168,8 +5205,10 @@ paths: ); - OpenAIEmbedding embedding = client.GenerateEmbedding(input: "The - quick brown fox jumped over the lazy dog"); + EmbeddingGenerationOptions options = new() { Dimensions = 3 }; + + OpenAIEmbedding embedding = client.GenerateEmbedding(input: "Hello + world", options: options); ReadOnlyMemory vector = embedding.ToFloats(); @@ -5186,18 +5225,17 @@ paths: { "object": "embedding", "embedding": [ - 0.0023064255, - -0.009327292, - .... (1536 floats total for ada-002) - -0.0028842222, + 0.26726124, + 0.53452248, + 0.80178373 ], "index": 0 } ], - "model": "text-embedding-ada-002", + "model": "text-embedding-3-small", "usage": { - "prompt_tokens": 8, - "total_tokens": 8 + "prompt_tokens": 2, + "total_tokens": 2 } } /evals: @@ -7177,7 +7215,8 @@ paths: "created_at": 1613677385, "expires_at": 1677614202, "filename": "salesOverview.pdf", - "purpose": "assistants" + "purpose": "assistants", + "status": "processed" }, { "id": "file-abc456", @@ -7186,7 +7225,8 @@ paths: "created_at": 1613779121, "expires_at": 1677614202, "filename": "puppy.jsonl", - "purpose": "fine-tune" + "purpose": "fine-tune", + "status": "processed" } ], "first_id": "file-abc123", @@ -7274,9 +7314,9 @@ paths: curl https://api.openai.com/v1/files \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -F purpose="fine-tune" \ - -F file="@mydata.jsonl" - -F expires_after[anchor]="created_at" - -F expires_after[seconds]=2592000 + -F file="@mydata.jsonl" \ + -F 'expires_after[anchor]=created_at' \ + -F 'expires_after[seconds]=2592000' python: | from openai import OpenAI client = OpenAI() @@ -7315,9 +7355,10 @@ paths: "object": "file", "bytes": 120000, "created_at": 1677610602, - "expires_at": 1677614202, + "expires_at": 1680202602, "filename": "mydata.jsonl", - "purpose": "fine-tune" + "purpose": "fine-tune", + "status": "processed" } /files/{file_id}: delete: @@ -7445,9 +7486,10 @@ paths: "object": "file", "bytes": 120000, "created_at": 1677610602, - "expires_at": 1677614202, + "expires_at": 1680202602, "filename": "mydata.jsonl", - "purpose": "fine-tune" + "purpose": "fine-tune", + "status": "processed" } /files/{file_id}/content: get: @@ -8167,7 +8209,16 @@ paths: } } }, - "metadata": null + "metadata": null, + "error": {}, + "finished_at": null, + "seed": null, + "trained_tokens": null, + "hyperparameters": { + "batch_size": "auto", + "learning_rate_multiplier": "auto", + "n_epochs": "auto" + } } - title: Epochs request: @@ -8266,11 +8317,7 @@ paths: } }, "metadata": null, - "error": { - "code": null, - "message": null, - "param": null - }, + "error": {}, "finished_at": null, "seed": 683058546, "trained_tokens": null, @@ -8344,19 +8391,15 @@ paths: } }, "metadata": null, - "error": { - "code": null, - "message": null, - "param": null - }, + "error": {}, "finished_at": null, - "hyperparameters": null, "seed": 1036326793, "estimated_finish": null, "integrations": [], "user_provided_suffix": null, "usage_metrics": null, - "shared_with_openai": false + "shared_with_openai": false, + "trained_tokens": null } - title: Reinforcement request: @@ -8520,7 +8563,16 @@ paths: } } }, - "metadata": null + "metadata": null, + "error": {}, + "finished_at": null, + "seed": null, + "trained_tokens": null, + "hyperparameters": { + "batch_size": "auto", + "learning_rate_multiplier": "auto", + "n_epochs": "auto" + } } - title: W&B Integration request: @@ -8577,7 +8629,16 @@ paths: } } }, - "metadata": null + "metadata": null, + "error": {}, + "finished_at": null, + "seed": null, + "trained_tokens": null, + "hyperparameters": { + "batch_size": "auto", + "learning_rate_multiplier": "auto", + "n_epochs": "auto" + } } get: operationId: listPaginatedFineTuningJobs @@ -8637,7 +8698,7 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/fine_tuning/jobs?limit=2&metadata[key]=value \ + curl "https://api.openai.com/v1/fine_tuning/jobs?limit=2&metadata[key]=value" \ -H "Authorization: Bearer $OPENAI_API_KEY" python: | from openai import OpenAI @@ -8673,13 +8734,31 @@ paths: "status": "queued", "validation_file": null, "training_file": "file-abc123", + "error": null, + "finished_at": null, + "trained_tokens": null, + "seed": 42, + "hyperparameters": { + "batch_size": "auto", + "learning_rate_multiplier": "auto", + "n_epochs": "auto" + }, + "method": { + "type": "supervised", + "supervised": { + "hyperparameters": { + "batch_size": "auto", + "learning_rate_multiplier": "auto", + "n_epochs": "auto" + } + } + }, "metadata": { "key": "value" } - }, - { ... }, - { ... } - ], "has_more": true + } + ], + "has_more": false } /fine_tuning/jobs/{fine_tuning_job_id}: get: @@ -8756,15 +8835,15 @@ paths: "fine_tuned_model": "ft:davinci-002:my-org:custom_suffix:7q8mpxmy", "organization_id": "org-123", "result_files": [ - "file-abc123" + "file-abc123" ], "status": "succeeded", "validation_file": null, "training_file": "file-abc123", "hyperparameters": { - "n_epochs": 4, - "batch_size": 1, - "learning_rate_multiplier": 1.0 + "n_epochs": 4, + "batch_size": 1, + "learning_rate_multiplier": 1.0 }, "trained_tokens": 5768, "integrations": [], @@ -8779,7 +8858,8 @@ paths: "learning_rate_multiplier": 1.0 } } - } + }, + "error": {} } /fine_tuning/jobs/{fine_tuning_job_id}/cancel: post: @@ -8861,7 +8941,12 @@ paths: "result_files": [], "status": "cancelled", "validation_file": "file-abc123", - "training_file": "file-abc123" + "training_file": "file-abc123", + "error": {}, + "finished_at": null, + "seed": null, + "trained_tokens": null, + "hyperparameters": null } /fine_tuning/jobs/{fine_tuning_job_id}/checkpoints: get: @@ -9147,14 +9232,33 @@ paths: { "object": "fine_tuning.job", "id": "ftjob-abc123", - "model": "gpt-4o-mini-2024-07-18", + "model": "o4-mini", "created_at": 1721764800, "fine_tuned_model": null, "organization_id": "org-123", "result_files": [], - "status": "paused", - "validation_file": "file-abc123", - "training_file": "file-abc123" + "status": "pausing", + "validation_file": "file-123", + "training_file": "file-abc", + "error": {}, + "finished_at": null, + "seed": null, + "trained_tokens": null, + "method": { + "type": "reinforcement", + "reinforcement": { + "grader": { + "type": "string_check", + "name": "Example string check grader", + "input": "{{sample.output_text}}", + "reference": "{{item.label}}", + "operation": "eq" + }, + "hyperparameters": { + "reasoning_effort": "medium" + } + } + } } /fine_tuning/jobs/{fine_tuning_job_id}/resume: post: @@ -9231,14 +9335,33 @@ paths: { "object": "fine_tuning.job", "id": "ftjob-abc123", - "model": "gpt-4o-mini-2024-07-18", + "model": "o4-mini", "created_at": 1721764800, "fine_tuned_model": null, "organization_id": "org-123", "result_files": [], "status": "queued", - "validation_file": "file-abc123", - "training_file": "file-abc123" + "validation_file": "file-123", + "training_file": "file-abc", + "error": {}, + "finished_at": null, + "seed": null, + "trained_tokens": null, + "method": { + "type": "reinforcement", + "reinforcement": { + "grader": { + "type": "string_check", + "name": "Example string check grader", + "input": "{{sample.output_text}}", + "reference": "{{item.label}}", + "operation": "eq" + }, + "hyperparameters": { + "reasoning_effort": "medium" + } + } + } } /images/edits: post: @@ -10476,31 +10599,31 @@ paths: -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ + "model": "omni-moderation-latest", "input": "I want to kill them." }' - python: > + python: | from openai import OpenAI - client = OpenAI() - - moderation = client.moderations.create(input="I want to kill - them.") - + moderation = client.moderations.create( + model="omni-moderation-latest", + input="I want to kill them.", + ) print(moderation) - javascript: > + javascript: | import OpenAI from "openai"; - const openai = new OpenAI(); - async function main() { - const moderation = await openai.moderations.create({ input: "I want to kill them." }); + const moderation = await openai.moderations.create({ + model: "omni-moderation-latest", + input: "I want to kill them.", + }); console.log(moderation); } - main(); csharp: > using System; @@ -10522,7 +10645,7 @@ paths: response: | { "id": "modr-AB8CjOTu2jiq12hp1AQPfeqFWaORR", - "model": "text-moderation-007", + "model": "omni-moderation-latest", "results": [ { "flagged": true, @@ -10537,20 +10660,65 @@ paths: "self-harm/intent": false, "self-harm/instructions": false, "harassment/threatening": true, - "violence": true + "violence": true, + "illicit": false, + "illicit/violent": false }, "category_scores": { - "sexual": 0.000011726012417057063, + "sexual": 1.1726012417057063e-05, "hate": 0.22706663608551025, "harassment": 0.5215635299682617, - "self-harm": 2.227119921371923e-6, - "sexual/minors": 7.107352217872176e-8, + "self-harm": 2.227119921371923e-06, + "sexual/minors": 7.107352217872176e-08, "hate/threatening": 0.023547329008579254, - "violence/graphic": 0.00003391829886822961, - "self-harm/intent": 1.646940972932498e-6, - "self-harm/instructions": 1.1198755256458526e-9, + "violence/graphic": 3.391829886822961e-05, + "self-harm/intent": 1.646940972932498e-06, + "self-harm/instructions": 1.1198755256458526e-09, "harassment/threatening": 0.5694745779037476, - "violence": 0.9971134662628174 + "violence": 0.9971134662628174, + "illicit": 0.001, + "illicit/violent": 0.001 + }, + "category_applied_input_types": { + "sexual": [ + "text" + ], + "hate": [ + "text" + ], + "harassment": [ + "text" + ], + "self-harm": [ + "text" + ], + "sexual/minors": [ + "text" + ], + "hate/threatening": [ + "text" + ], + "violence/graphic": [ + "text" + ], + "self-harm/intent": [ + "text" + ], + "self-harm/instructions": [ + "text" + ], + "harassment/threatening": [ + "text" + ], + "violence": [ + "text" + ], + "illicit": [ + "text" + ], + "illicit/violent": [ + "text" + ] } } ] @@ -10924,6 +11092,7 @@ paths: "name": "Main Admin Key", "redacted_value": "sk-admin...xyz", "created_at": 1711471533, + "expires_at": null, "last_used_at": 1711471534, "owner": { "type": "user", @@ -12114,6 +12283,7 @@ paths: "id": "group_01J1F8ABCDXYZ", "name": "Support Team", "created_at": 1711471533, + "group_type": "group", "is_scim_managed": false } ], @@ -12193,6 +12363,7 @@ paths: "id": "group_01J1F8ABCDXYZ", "name": "Support Team", "created_at": 1711471533, + "group_type": "group", "is_scim_managed": false } /organization/groups/{group_id}: @@ -12500,7 +12671,13 @@ paths: "name": "Ada Lovelace", "email": "ada@example.com" }, - "metadata": {} + "metadata": {}, + "assignment_sources": [ + { + "principal_id": "group_01J1F8ABCDXYZ", + "principal_type": "group" + } + ] } ], "has_more": false, @@ -13126,7 +13303,8 @@ paths: "status": "accepted", "created_at": 1711471533, "expires_at": 1711471533, - "accepted_at": 1711471533 + "accepted_at": 1711471533, + "projects": [] } ], "first_id": "invite-abc", @@ -13290,7 +13468,8 @@ paths: "status": "accepted", "created_at": 1711471533, "expires_at": 1711471533, - "accepted_at": 1711471533 + "accepted_at": 1711471533, + "projects": [] } delete: security: @@ -14483,6 +14662,7 @@ paths: "project_id": "proj_abc123", "group_id": "group_01J1F8ABCDXYZ", "group_name": "Support Team", + "group_type": "group", "created_at": 1711471533 } ], @@ -14566,6 +14746,7 @@ paths: "project_id": "proj_abc123", "group_id": "group_01J1F8ABCDXYZ", "group_name": "Support Team", + "group_type": "group", "created_at": 1711471533 } /organization/projects/{project_id}/groups/{group_id}: @@ -15148,6 +15329,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + example: + error: + code: project_not_found + message: The project proj_abc was not found + type: invalid_request_error + param: null x-oaiMeta: group: administration examples: @@ -15173,11 +15360,6 @@ paths: "last_id": "rl-ada", "has_more": false } - error_response: | - { - "code": 404, - "message": "The project {project_id} was not found" - } /organization/projects/{project_id}/rate_limits/{rate_limit_id}: post: security: @@ -15232,6 +15414,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ErrorResponse" + example: + error: + code: project_not_found + message: The project proj_abc was not found + type: invalid_request_error + param: null x-oaiMeta: group: administration examples: @@ -15252,11 +15440,6 @@ paths: "max_tokens_per_1_minute": 150000, "max_images_per_1_minute": 10 } - error_response: | - { - "code": 404, - "message": "The project {project_id} was not found" - } /organization/projects/{project_id}/service_accounts: get: security: @@ -19073,7 +19256,13 @@ paths: "name": "Ada Lovelace", "email": "ada@example.com" }, - "metadata": {} + "metadata": {}, + "assignment_sources": [ + { + "principal_id": "user_abc123", + "principal_type": "user" + } + ] } ], "has_more": false, @@ -19411,7 +19600,13 @@ paths: "name": "Ada Lovelace", "email": "ada@example.com" }, - "metadata": {} + "metadata": {}, + "assignment_sources": [ + { + "principal_id": "group_01J1F8ABCDXYZ", + "principal_type": "group" + } + ] } ], "has_more": false, @@ -20161,7 +20356,13 @@ paths: "name": "Ada Lovelace", "email": "ada@example.com" }, - "metadata": {} + "metadata": {}, + "assignment_sources": [ + { + "principal_id": "user_abc123", + "principal_type": "user" + } + ] } ], "has_more": false, @@ -21252,7 +21453,8 @@ paths: { "type": "output_text", "text": "In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars. As she dipped her horn into the water, the pool began to shimmer, revealing a pathway to a magical realm of endless night skies. Filled with wonder, Lumina whispered a wish for all who dream to find their own hidden magic, and as she glanced back, her hoofprints sparkled like stardust.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -21415,7 +21617,8 @@ paths: { "type": "output_text", "text": "The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -21708,7 +21911,8 @@ paths: "url": "https://.../?utm_source=chatgpt.com", "title": "..." } - ] + ], + "logprobs": [] } ] } @@ -21924,7 +22128,8 @@ paths: "file_id": "file-4wDz5b167pAf72nx1h9eiN", "filename": "dragons.pdf" } - ] + ], + "logprobs": [] } ] } @@ -22055,35 +22260,36 @@ paths: Console.Write(outputTextDeltaUpdate.Delta); } } - response: | + response: |+ event: response.created - data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}},"sequence_number":0} event: response.in_progress - data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}},"sequence_number":1} event: response.output_item.added - data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]}} + data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]},"sequence_number":2} event: response.content_part.added - data: {"type":"response.content_part.added","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"","annotations":[]}} + data: {"type":"response.content_part.added","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"","annotations":[],"logprobs":[]},"sequence_number":3} event: response.output_text.delta - data: {"type":"response.output_text.delta","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"delta":"Hi"} + data: {"type":"response.output_text.delta","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"delta":"Hi","sequence_number":4,"logprobs":[]} - ... + : Intermediate response events omitted. event: response.output_text.done - data: {"type":"response.output_text.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"text":"Hi there! How can I assist you today?"} + data: {"type":"response.output_text.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"text":"Hi there! How can I assist you today?","sequence_number":10,"logprobs":[]} event: response.content_part.done - data: {"type":"response.content_part.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}} + data: {"type":"response.content_part.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[],"logprobs":[]},"sequence_number":11} event: response.output_item.done - data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}} + data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[],"logprobs":[]}]},"sequence_number":12} event: response.completed - data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}} + data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0}},"user":null,"metadata":{}},"sequence_number":13} + - title: Functions request: curl: > @@ -22311,7 +22517,11 @@ paths: "output_tokens_details": { "reasoning_tokens": 0 }, - "total_tokens": 314 + "total_tokens": 314, + "input_tokens_details": { + "cached_tokens": 0, + "cache_write_tokens": 0 + } }, "user": null, "metadata": {} @@ -22408,7 +22618,8 @@ paths: { "type": "output_text", "text": "The classic tongue twister...", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -22564,7 +22775,8 @@ paths: { "type": "output_text", "text": "Silent circuits hum, \nThoughts emerge in data streams— \nDigital dawn breaks.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -22619,6 +22831,25 @@ paths: responses: "200": description: OK + content: + application/json: + schema: + type: object + properties: + object: + type: string + enum: + - response.deleted + default: response.deleted + x-stainless-const: true + deleted: + type: boolean + id: + type: string + required: + - object + - deleted + - id "404": description: Not Found content: @@ -22649,8 +22880,8 @@ paths: print(response) response: | { - "id": "resp_6786a1bec27481909a17d673315b29f6", - "object": "response", + "id": "resp_123", + "object": "response.deleted", "deleted": true } /responses/{response_id}/cancel: @@ -22730,7 +22961,8 @@ paths: { "type": "output_text", "text": "Silent circuits hum, \nThoughts emerge in data streams— \nDigital dawn breaks.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -23013,6 +23245,9 @@ paths: application/json: schema: $ref: "#/components/schemas/RunObject" + text/event-stream: + schema: + $ref: "#/components/schemas/AssistantStreamEvent" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -23161,35 +23396,35 @@ paths: } main(); - response: | + response: |+ event: thread.created - data: {"id":"thread_123","object":"thread","created_at":1710348075,"metadata":{}} + data: {"id":"thread_123","object":"thread","created_at":1710348075,"metadata":{},"tool_resources":{}} event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"tool_resources":{},"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.step.created - data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.run.step.in_progress - data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.message.created - data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[], "metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[], "metadata":{},"attachments":[]} event: thread.message.in_progress - data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[], "metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[], "metadata":{},"attachments":[]} event: thread.message.delta data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"Hello","annotations":[]}}]}} - ... + : Intermediate Assistant events omitted. event: thread.message.delta data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":" today"}}]}} @@ -23198,16 +23433,17 @@ paths: data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"?"}}]}} event: thread.message.completed - data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710348077,"role":"assistant","content":[{"type":"text","text":{"value":"Hello! How can I assist you today?","annotations":[]}}], "metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710348077,"role":"assistant","content":[{"type":"text","text":{"value":"Hello! How can I assist you today?","annotations":[]}}], "metadata":{},"attachments":[]} event: thread.run.step.completed - data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}} + data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"expired_at":null,"metadata":{}} event: thread.run.completed - {"id":"run_123","object":"thread.run","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1713226836,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1713226837,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} + data: {"id":"run_123","object":"thread.run","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1713226836,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1713226837,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: done data: [DONE] + - title: Streaming with Functions request: curl: > @@ -23337,24 +23573,24 @@ paths: main(); - response: | + response: |+ event: thread.created - data: {"id":"thread_123","object":"thread","created_at":1710351818,"metadata":{}} + data: {"id":"thread_123","object":"thread","created_at":1710351818,"metadata":{},"tool_resources":{}} event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.step.created - data: {"id":"step_001","object":"thread.run.step","created_at":1710351819,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710352418,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710351819,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710352418,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null,"expired_at":null,"metadata":{}} event: thread.run.step.in_progress - data: {"id":"step_001","object":"thread.run.step","created_at":1710351819,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710352418,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710351819,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710352418,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[]},"usage":null,"expired_at":null,"metadata":{}} event: thread.run.step.delta data: {"id":"step_001","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"id":"call_XXNp8YGaFrjrSjgqxtC8JJ1B","type":"function","function":{"name":"get_current_weather","arguments":"","output":null}}]}}} @@ -23365,7 +23601,7 @@ paths: event: thread.run.step.delta data: {"id":"step_001","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"type":"function","function":{"arguments":"location"}}]}}} - ... + : Intermediate Assistant events omitted. event: thread.run.step.delta data: {"id":"step_001","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"type":"function","function":{"arguments":"ahrenheit"}}]}}} @@ -23374,10 +23610,11 @@ paths: data: {"id":"step_001","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"type":"function","function":{"arguments":"\"}"}}]}}} event: thread.run.requires_action - data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"requires_action","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":{"type":"submit_tool_outputs","submit_tool_outputs":{"tool_calls":[{"id":"call_XXNp8YGaFrjrSjgqxtC8JJ1B","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}"}}]}},"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710351818,"assistant_id":"asst_123","thread_id":"thread_123","status":"requires_action","started_at":1710351818,"expires_at":1710352418,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":{"type":"submit_tool_outputs","submit_tool_outputs":{"tool_calls":[{"id":"call_XXNp8YGaFrjrSjgqxtC8JJ1B","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}"}}]}},"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":{"prompt_tokens":345,"completion_tokens":11,"total_tokens":356},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: done data: [DONE] + /threads/{thread_id}: get: operationId: getThread @@ -23712,7 +23949,11 @@ paths: } ], "attachments": [], - "metadata": {} + "metadata": {}, + "status": "completed", + "completed_at": 1699016383, + "incomplete_at": null, + "incomplete_details": null }, { "id": "msg_abc456", @@ -23732,7 +23973,11 @@ paths: } ], "attachments": [], - "metadata": {} + "metadata": {}, + "status": "completed", + "completed_at": 1699016383, + "incomplete_at": null, + "incomplete_details": null } ], "first_id": "msg_abc123", @@ -23830,7 +24075,11 @@ paths: } ], "attachments": [], - "metadata": {} + "metadata": {}, + "status": "completed", + "completed_at": 1713226573, + "incomplete_at": null, + "incomplete_details": null } /threads/{thread_id}/messages/{message_id}: get: @@ -23916,7 +24165,11 @@ paths: } ], "attachments": [], - "metadata": {} + "metadata": {}, + "status": "completed", + "completed_at": 1699017614, + "incomplete_at": null, + "incomplete_details": null } post: operationId: modifyMessage @@ -24015,11 +24268,15 @@ paths: } } ], - "file_ids": [], "metadata": { "modified": "true", "user": "abc123" - } + }, + "status": "completed", + "completed_at": 1699017614, + "incomplete_at": null, + "incomplete_details": null, + "attachments": [] } delete: operationId: deleteMessage @@ -24202,7 +24459,7 @@ paths: "completed_at": 1699075073, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "incomplete_details": null, "tools": [ { @@ -24228,12 +24485,12 @@ paths: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null }, { "id": "run_abc456", @@ -24249,7 +24506,7 @@ paths: "completed_at": 1699063291, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "incomplete_details": null, "tools": [ { @@ -24275,12 +24532,12 @@ paths: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null } ], "first_id": "run_abc123", @@ -24325,6 +24582,9 @@ paths: application/json: schema: $ref: "#/components/schemas/RunObject" + text/event-stream: + schema: + $ref: "#/components/schemas/AssistantStreamEvent" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -24339,7 +24599,8 @@ paths: -H "Content-Type: application/json" \ -H "OpenAI-Beta: assistants=v2" \ -d '{ - "assistant_id": "asst_abc123" + "assistant_id": "asst_abc123", + "instructions": "You are a helpful assistant." }' python: | from openai import OpenAI @@ -24347,24 +24608,28 @@ paths: run = client.beta.threads.runs.create( thread_id="thread_abc123", - assistant_id="asst_abc123" + assistant_id="asst_abc123", + instructions="You are a helpful assistant." ) print(run) - javascript: | + javascript: > import OpenAI from "openai"; + const openai = new OpenAI(); + async function main() { const run = await openai.beta.threads.runs.create( "thread_abc123", - { assistant_id: "asst_abc123" } + { assistant_id: "asst_abc123", instructions: "You are a helpful assistant." } ); console.log(run); } + main(); response: | { @@ -24374,14 +24639,14 @@ paths: "assistant_id": "asst_abc123", "thread_id": "thread_abc123", "status": "queued", - "started_at": 1699063290, + "started_at": null, "expires_at": null, "cancelled_at": null, "failed_at": null, - "completed_at": 1699063291, + "completed_at": null, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "incomplete_details": null, "tools": [ { @@ -24395,12 +24660,12 @@ paths: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null } - title: Streaming request: @@ -24442,32 +24707,32 @@ paths: } main(); - response: | + response: |+ event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710330641,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710330641,"expires_at":1710331240,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.step.created - data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.run.step.in_progress - data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.message.created - data: {"id":"msg_001","object":"thread.message","created_at":1710330641,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710330641,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{},"attachments":[]} event: thread.message.in_progress - data: {"id":"msg_001","object":"thread.message","created_at":1710330641,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710330641,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{},"attachments":[]} event: thread.message.delta data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"Hello","annotations":[]}}]}} - ... + : Intermediate Assistant events omitted. event: thread.message.delta data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":" today"}}]}} @@ -24476,16 +24741,17 @@ paths: data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"?"}}]}} event: thread.message.completed - data: {"id":"msg_001","object":"thread.message","created_at":1710330641,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710330642,"role":"assistant","content":[{"type":"text","text":{"value":"Hello! How can I assist you today?","annotations":[]}}],"metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710330641,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710330642,"role":"assistant","content":[{"type":"text","text":{"value":"Hello! How can I assist you today?","annotations":[]}}],"metadata":{},"attachments":[]} event: thread.run.step.completed - data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710330642,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}} + data: {"id":"step_001","object":"thread.run.step","created_at":1710330641,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710330642,"expires_at":1710331240,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"expired_at":null,"metadata":{}} event: thread.run.completed - data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710330641,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710330642,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710330640,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710330641,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710330642,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: done data: [DONE] + - title: Streaming with Functions request: curl: > @@ -24604,32 +24870,32 @@ paths: main(); - response: | + response: |+ event: thread.run.created - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710348075,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710348075,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.step.created - data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.run.step.in_progress - data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null} + data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.message.created - data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{},"attachments":[]} event: thread.message.in_progress - data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{},"attachments":[]} event: thread.message.delta data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"Hello","annotations":[]}}]}} - ... + : Intermediate Assistant events omitted. event: thread.message.delta data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":" today"}}]}} @@ -24638,16 +24904,17 @@ paths: data: {"id":"msg_001","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"?"}}]}} event: thread.message.completed - data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710348077,"role":"assistant","content":[{"type":"text","text":{"value":"Hello! How can I assist you today?","annotations":[]}}],"metadata":{}} + data: {"id":"msg_001","object":"thread.message","created_at":1710348076,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710348077,"role":"assistant","content":[{"type":"text","text":{"value":"Hello! How can I assist you today?","annotations":[]}}],"metadata":{},"attachments":[]} event: thread.run.step.completed - data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}} + data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"expired_at":null,"metadata":{}} event: thread.run.completed - data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710348075,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710348077,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710348075,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710348077,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: done data: [DONE] + /threads/{thread_id}/runs/{run_id}: get: operationId: getRun @@ -24729,7 +24996,7 @@ paths: "completed_at": 1699075073, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "incomplete_details": null, "tools": [ { @@ -24747,12 +25014,12 @@ paths: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null } post: operationId: modifyRun @@ -24852,7 +25119,7 @@ paths: "completed_at": 1699075073, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "incomplete_details": null, "tools": [ { @@ -24880,12 +25147,12 @@ paths: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null } /threads/{thread_id}/runs/{run_id}/cancel: post: @@ -24983,7 +25250,14 @@ paths: "top_p": 1.0, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null, + "incomplete_details": null, + "max_prompt_tokens": null, + "max_completion_tokens": null, + "truncation_strategy": { + "type": "auto" + } } /threads/{thread_id}/runs/{run_id}/steps: get: @@ -25126,11 +25400,12 @@ paths: "prompt_tokens": 123, "completion_tokens": 456, "total_tokens": 579 - } + }, + "metadata": {} } ], "first_id": "step_abc123", - "last_id": "step_abc456", + "last_id": "step_abc123", "has_more": false } /threads/{thread_id}/runs/{run_id}/steps/{step_id}: @@ -25239,7 +25514,8 @@ paths: "prompt_tokens": 123, "completion_tokens": 456, "total_tokens": 579 - } + }, + "metadata": {} } /threads/{thread_id}/runs/{run_id}/submit_tool_outputs: post: @@ -25280,6 +25556,9 @@ paths: application/json: schema: $ref: "#/components/schemas/RunObject" + text/event-stream: + schema: + $ref: "#/components/schemas/AssistantStreamEvent" "429": $ref: "#/components/responses/TooManyRequests" x-oaiMeta: @@ -25355,7 +25634,7 @@ paths: "completed_at": null, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "tools": [ { "type": "function", @@ -25386,12 +25665,13 @@ paths: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null, + "incomplete_details": null } - title: Streaming request: @@ -25455,27 +25735,27 @@ paths: main(); - response: | + response: |+ event: thread.run.step.completed - data: {"id":"step_001","object":"thread.run.step","created_at":1710352449,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"completed","cancelled_at":null,"completed_at":1710352475,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[{"id":"call_iWr0kQ2EaYMaxNdl0v3KYkx7","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}","output":"70 degrees and sunny."}}]},"usage":{"prompt_tokens":291,"completion_tokens":24,"total_tokens":315}} + data: {"id":"step_001","object":"thread.run.step","created_at":1710352449,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"tool_calls","status":"completed","cancelled_at":null,"completed_at":1710352475,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"tool_calls","tool_calls":[{"id":"call_iWr0kQ2EaYMaxNdl0v3KYkx7","type":"function","function":{"name":"get_current_weather","arguments":"{\"location\":\"San Francisco, CA\",\"unit\":\"fahrenheit\"}","output":"70 degrees and sunny."}}]},"usage":{"prompt_tokens":291,"completion_tokens":24,"total_tokens":315},"expired_at":null,"metadata":{}} event: thread.run.queued - data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":1710352448,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":1710352448,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.in_progress - data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710352475,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710352475,"expires_at":1710353047,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":null,"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: thread.run.step.created - data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":null} + data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.run.step.in_progress - data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":null} + data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":null,"expired_at":null,"metadata":{}} event: thread.message.created - data: {"id":"msg_002","object":"thread.message","created_at":1710352476,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{}} + data: {"id":"msg_002","object":"thread.message","created_at":1710352476,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{},"attachments":[]} event: thread.message.in_progress - data: {"id":"msg_002","object":"thread.message","created_at":1710352476,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{}} + data: {"id":"msg_002","object":"thread.message","created_at":1710352476,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"in_progress","incomplete_details":null,"incomplete_at":null,"completed_at":null,"role":"assistant","content":[],"metadata":{},"attachments":[]} event: thread.message.delta data: {"id":"msg_002","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"The","annotations":[]}}]}} @@ -25486,7 +25766,7 @@ paths: event: thread.message.delta data: {"id":"msg_002","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":" weather"}}]}} - ... + : Intermediate Assistant events omitted. event: thread.message.delta data: {"id":"msg_002","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":" sunny"}}]}} @@ -25495,16 +25775,17 @@ paths: data: {"id":"msg_002","object":"thread.message.delta","delta":{"content":[{"index":0,"type":"text","text":{"value":"."}}]}} event: thread.message.completed - data: {"id":"msg_002","object":"thread.message","created_at":1710352476,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710352477,"role":"assistant","content":[{"type":"text","text":{"value":"The current weather in San Francisco, CA is 70 degrees Fahrenheit and sunny.","annotations":[]}}],"metadata":{}} + data: {"id":"msg_002","object":"thread.message","created_at":1710352476,"assistant_id":"asst_123","thread_id":"thread_123","run_id":"run_123","status":"completed","incomplete_details":null,"incomplete_at":null,"completed_at":1710352477,"role":"assistant","content":[{"type":"text","text":{"value":"The current weather in San Francisco, CA is 70 degrees Fahrenheit and sunny.","annotations":[]}}],"metadata":{},"attachments":[]} event: thread.run.step.completed - data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710352477,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":{"prompt_tokens":329,"completion_tokens":18,"total_tokens":347}} + data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710352477,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":{"prompt_tokens":329,"completion_tokens":18,"total_tokens":347},"expired_at":null,"metadata":{}} event: thread.run.completed - data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710352475,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710352477,"required_action":null,"last_error":null,"model":"gpt-5","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true}} + data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710352475,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710352477,"required_action":null,"last_error":null,"model":"gpt-5","instructions":"You are a helpful assistant.","tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto"},"incomplete_details":null,"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto","parallel_tool_calls":true} event: done data: [DONE] + /uploads: post: operationId: createUpload @@ -25762,9 +26043,9 @@ paths: "object": "file", "bytes": 2147483648, "created_at": 1719186911, - "expires_at": 1719127296, "filename": "training_examples.jsonl", - "purpose": "fine-tune" + "purpose": "fine-tune", + "status": "processed" } } /uploads/{upload_id}/parts: @@ -25945,29 +26226,34 @@ paths: "created_at": 1699061776, "name": "Support FAQ", "description": "Contains commonly asked questions and answers, organized by topic.", - "bytes": 139920, "file_counts": { "in_progress": 0, "completed": 3, "failed": 0, "cancelled": 0, "total": 3 - } + }, + "usage_bytes": 139920, + "status": "completed", + "last_active_at": null, + "metadata": {} }, { "id": "vs_abc456", "object": "vector_store", "created_at": 1699061776, "name": "Support FAQ v2", - "description": null, - "bytes": 139920, "file_counts": { "in_progress": 0, "completed": 3, "failed": 0, "cancelled": 0, "total": 3 - } + }, + "usage_bytes": 139920, + "status": "completed", + "last_active_at": null, + "metadata": {} } ], "first_id": "vs_abc123", @@ -26046,14 +26332,17 @@ paths: "created_at": 1699061776, "name": "Support FAQ", "description": "Contains commonly asked questions and answers, organized by topic.", - "bytes": 139920, "file_counts": { "in_progress": 0, - "completed": 3, + "completed": 0, "failed": 0, "cancelled": 0, - "total": 3 - } + "total": 0 + }, + "usage_bytes": 0, + "status": "completed", + "last_active_at": null, + "metadata": {} } /vector_stores/{vector_store_id}: get: @@ -26117,7 +26406,19 @@ paths: { "id": "vs_abc123", "object": "vector_store", - "created_at": 1699061776 + "created_at": 1699061776, + "name": "Support FAQ", + "file_counts": { + "in_progress": 0, + "completed": 3, + "failed": 0, + "cancelled": 0, + "total": 3 + }, + "usage_bytes": 139920, + "status": "completed", + "last_active_at": null, + "metadata": {} } post: operationId: modifyVectorStore @@ -26209,14 +26510,17 @@ paths: "created_at": 1699061776, "name": "Support FAQ", "description": "Contains commonly asked questions and answers, organized by topic.", - "bytes": 139920, "file_counts": { "in_progress": 0, "completed": 3, "failed": 0, "cancelled": 0, "total": 3 - } + }, + "usage_bytes": 139920, + "status": "completed", + "last_active_at": null, + "metadata": {} } delete: operationId: deleteVectorStore @@ -26800,13 +27104,19 @@ paths: "id": "file-abc123", "object": "vector_store.file", "created_at": 1699061776, - "vector_store_id": "vs_abc123" + "vector_store_id": "vs_abc123", + "usage_bytes": 1234, + "status": "completed", + "last_error": null }, { "id": "file-abc456", "object": "vector_store.file", "created_at": 1699061776, - "vector_store_id": "vs_abc123" + "vector_store_id": "vs_abc123", + "usage_bytes": 1234, + "status": "completed", + "last_error": null } ], "first_id": "file-abc123", @@ -26935,13 +27245,19 @@ paths: "id": "file-abc123", "object": "vector_store.file", "created_at": 1699061776, - "vector_store_id": "vs_abc123" + "vector_store_id": "vs_abc123", + "usage_bytes": 1234, + "status": "completed", + "last_error": null }, { "id": "file-abc456", "object": "vector_store.file", "created_at": 1699061776, - "vector_store_id": "vs_abc123" + "vector_store_id": "vs_abc123", + "usage_bytes": 1234, + "status": "completed", + "last_error": null } ], "first_id": "file-abc123", @@ -27146,9 +27462,10 @@ paths: "id": "file-abc123", "object": "vector_store.file", "created_at": 1699061776, - "vector_store_id": "vs_abcd", + "vector_store_id": "vs_abc123", "status": "completed", - "last_error": null + "last_error": null, + "usage_bytes": 1234 } delete: operationId: deleteVectorStoreFile @@ -27330,7 +27647,7 @@ paths: examples: request: curl: | - curl https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} \ + curl https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123 \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"attributes": {"key1": "value1", "key2": 2}}' @@ -27340,10 +27657,16 @@ paths: "object": "vector_store.file", "usage_bytes": 1234, "created_at": 1699061776, - "vector_store_id": "vs_abcd", + "vector_store_id": "vs_abc123", "status": "completed", "last_error": null, - "chunking_strategy": {...}, + "chunking_strategy": { + "type": "static", + "static": { + "max_chunk_size_tokens": 800, + "chunk_overlap_tokens": 400 + } + }, "attributes": {"key1": "value1", "key2": 2} } /vector_stores/{vector_store_id}/files/{file_id}/content: @@ -27405,13 +27728,12 @@ paths: -H "Authorization: Bearer $OPENAI_API_KEY" response: | { - "file_id": "file-abc123", - "filename": "example.txt", - "attributes": {"key": "value"}, - "content": [ - {"type": "text", "text": "..."}, - ... - ] + "object": "vector_store.file_content.page", + "data": [ + {"type": "text", "text": "file content"} + ], + "has_more": false, + "next_page": null } /vector_stores/{vector_store_id}/search: post: @@ -29123,7 +29445,11 @@ paths: "created_at": 1712697600, "size": "1024x1792", "seconds": "8", - "quality": "standard" + "prompt": "A calico cat playing a piano on stage", + "completed_at": null, + "expires_at": null, + "error": null, + "remixed_from_video_id": null } get: tags: @@ -29254,10 +29580,22 @@ paths: "id": "video_123", "object": "video", "model": "sora-2", - "status": "completed" + "status": "completed", + "created_at": 1712697600, + "completed_at": 1712697840, + "progress": 100, + "expires_at": null, + "error": null, + "prompt": "A calico cat playing a piano on stage", + "size": "1024x1792", + "seconds": "8", + "remixed_from_video_id": null } ], - "object": "list" + "object": "list", + "first_id": "video_123", + "last_id": "video_123", + "has_more": false } /videos/characters: post: @@ -29483,7 +29821,22 @@ paths: group: videos path: retrieve matching the provided identifier. examples: - response: "" + response: | + { + "id": "video_123", + "object": "video", + "model": "sora-2", + "status": "queued", + "progress": 0, + "created_at": 1712697600, + "completed_at": null, + "error": null, + "expires_at": null, + "prompt": "A calico cat playing a piano on stage", + "remixed_from_video_id": null, + "size": "720x1280", + "seconds": "4" + } request: javascript: | import OpenAI from 'openai'; @@ -29960,7 +30313,7 @@ paths: Video video = client.videos().remix(params); } } - response: | + response: > { "id": "video_456", "object": "video", @@ -29970,7 +30323,11 @@ paths: "created_at": 1712698600, "size": "720x1280", "seconds": "8", - "remixed_from_video_id": "video_123" + "remixed_from_video_id": "video_123", + "prompt": "Extend the scene with the cat taking a bow to the cheering audience", + "completed_at": null, + "expires_at": null, + "error": null } /responses/input_tokens: post: @@ -31213,29 +31570,37 @@ paths: { "id": "cthi_user_001", "object": "chatkit.thread_item", - "type": "user_message", + "type": "chatkit.user_message", "content": [ { "type": "input_text", "text": "I need help debugging an onboarding issue." } ], - "attachments": [] + "attachments": [], + "created_at": 1712345600, + "thread_id": "cthr_abc123", + "inference_options": null }, { "id": "cthi_assistant_002", "object": "chatkit.thread_item", - "type": "assistant_message", + "type": "chatkit.assistant_message", "content": [ { "type": "output_text", - "text": "Let's start by confirming the workflow version you deployed." + "text": "Let's start by confirming the workflow version you deployed.", + "annotations": [] } - ] + ], + "created_at": 1712345601, + "thread_id": "cthr_abc123" } ], "has_more": false, - "object": "list" + "object": "list", + "first_id": "cthi_user_001", + "last_id": "cthi_assistant_002" } /chatkit/threads/{thread_id}: get: @@ -31357,39 +31722,16 @@ paths: ChatKitThread chatkitThread = client.beta().chatkit().threads().retrieve("cthr_123"); } } - response: > + response: | { "id": "cthr_abc123", "object": "chatkit.thread", "title": "Customer escalation", - "items": { - "data": [ - { - "id": "cthi_user_001", - "object": "chatkit.thread_item", - "type": "user_message", - "content": [ - { - "type": "input_text", - "text": "I need help debugging an onboarding issue." - } - ], - "attachments": [] - }, - { - "id": "cthi_assistant_002", - "object": "chatkit.thread_item", - "type": "assistant_message", - "content": [ - { - "type": "output_text", - "text": "Let's start by confirming the workflow version you deployed." - } - ] - } - ], - "has_more": false - } + "created_at": 1712345600, + "status": { + "type": "active" + }, + "user": "user_123" } delete: summary: Delete a ChatKit thread @@ -31676,16 +32018,28 @@ paths: { "id": "cthr_abc123", "object": "chatkit.thread", - "title": "Customer escalation" + "title": "Customer escalation", + "created_at": 1712345600, + "status": { + "type": "active" + }, + "user": "user_123" }, { "id": "cthr_def456", "object": "chatkit.thread", - "title": "Demo feedback" + "title": "Demo feedback", + "created_at": 1712345600, + "status": { + "type": "active" + }, + "user": "user_456" } ], "has_more": false, - "object": "list" + "object": "list", + "first_id": "cthr_abc123", + "last_id": "cthr_def456" } /agents/environments/{environment_id}: get: @@ -35446,7 +35800,8 @@ paths: { "type": "output_text", "text": "In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars. As she dipped her horn into the water, the pool began to shimmer, revealing a pathway to a magical realm of endless night skies. Filled with wonder, Lumina whispered a wish for all who dream to find their own hidden magic, and as she glanced back, her hoofprints sparkled like stardust.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -35609,7 +35964,8 @@ paths: { "type": "output_text", "text": "The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -35902,7 +36258,8 @@ paths: "url": "https://.../?utm_source=chatgpt.com", "title": "..." } - ] + ], + "logprobs": [] } ] } @@ -36118,7 +36475,8 @@ paths: "file_id": "file-4wDz5b167pAf72nx1h9eiN", "filename": "dragons.pdf" } - ] + ], + "logprobs": [] } ] } @@ -36249,35 +36607,36 @@ paths: Console.Write(outputTextDeltaUpdate.Delta); } } - response: | + response: |+ event: response.created - data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}},"sequence_number":0} event: response.in_progress - data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} + data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}},"sequence_number":1} event: response.output_item.added - data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]}} + data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]},"sequence_number":2} event: response.content_part.added - data: {"type":"response.content_part.added","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"","annotations":[]}} + data: {"type":"response.content_part.added","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"","annotations":[],"logprobs":[]},"sequence_number":3} event: response.output_text.delta - data: {"type":"response.output_text.delta","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"delta":"Hi"} + data: {"type":"response.output_text.delta","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"delta":"Hi","sequence_number":4,"logprobs":[]} - ... + : Intermediate response events omitted. event: response.output_text.done - data: {"type":"response.output_text.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"text":"Hi there! How can I assist you today?"} + data: {"type":"response.output_text.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"text":"Hi there! How can I assist you today?","sequence_number":10,"logprobs":[]} event: response.content_part.done - data: {"type":"response.content_part.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}} + data: {"type":"response.content_part.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[],"logprobs":[]},"sequence_number":11} event: response.output_item.done - data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}} + data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[],"logprobs":[]}]},"sequence_number":12} event: response.completed - data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}} + data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","access_programs":null,"created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-6-astra","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[],"logprobs":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0}},"user":null,"metadata":{}},"sequence_number":13} + - title: Functions request: curl: > @@ -36505,7 +36864,11 @@ paths: "output_tokens_details": { "reasoning_tokens": 0 }, - "total_tokens": 314 + "total_tokens": 314, + "input_tokens_details": { + "cached_tokens": 0, + "cache_write_tokens": 0 + } }, "user": null, "metadata": {} @@ -36602,7 +36965,8 @@ paths: { "type": "output_text", "text": "The classic tongue twister...", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -36785,7 +37149,8 @@ paths: { "type": "output_text", "text": "Silent circuits hum, \nThoughts emerge in data streams— \nDigital dawn breaks.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -36853,6 +37218,25 @@ paths: responses: "200": description: OK + content: + application/json: + schema: + type: object + properties: + object: + type: string + enum: + - response.deleted + default: response.deleted + x-stainless-const: true + deleted: + type: boolean + id: + type: string + required: + - object + - deleted + - id "404": description: Not Found content: @@ -36883,8 +37267,8 @@ paths: print(response) response: | { - "id": "resp_6786a1bec27481909a17d673315b29f6", - "object": "response", + "id": "resp_123", + "object": "response.deleted", "deleted": true } /responses/{response_id}/cancel?beta=true: @@ -36977,7 +37361,8 @@ paths: { "type": "output_text", "text": "Silent circuits hum, \nThoughts emerge in data streams— \nDigital dawn breaks.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] } @@ -37934,6 +38319,7 @@ components: "name": "Main Admin Key", "redacted_value": "sk-admin...xyz", "created_at": 1711471533, + "expires_at": null, "last_used_at": 1711471534, "owner": { "type": "user", @@ -38573,7 +38959,9 @@ components: - gpt-4o-transcribe-diarize - gpt-realtime-whisper language: - type: string + type: + - string + - "null" description: | The language of the input audio. languages: @@ -39709,7 +40097,9 @@ components: guide](https://developers.openai.com/api/docs/models) to browse and compare available models. errors: - type: object + type: + - object + - "null" properties: object: type: string @@ -39737,49 +40127,69 @@ components: - cancelling - cancelled output_file_id: - type: string + type: + - string + - "null" description: The ID of the file containing the outputs of successfully executed requests. error_file_id: - type: string + type: + - string + - "null" description: The ID of the file containing the outputs of requests with errors. created_at: type: integer format: unixtime description: The Unix timestamp (in seconds) for when the batch was created. in_progress_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch started processing. expires_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch will expire. finalizing_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch started finalizing. completed_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch was completed. failed_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch failed. expired_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch expired. cancelling_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch started cancelling. cancelled_at: - type: integer + type: + - integer + - "null" format: unixtime description: The Unix timestamp (in seconds) for when the batch was cancelled. request_counts: @@ -40266,33 +40676,103 @@ components: description: | An array of chat completion message objects. items: - allOf: - - $ref: "#/components/schemas/ChatCompletionResponseMessage" - - type: object - required: - - id - properties: - id: - type: string - description: The identifier of the chat message. - content_parts: - anyOf: - - type: array - description: > - If a content parts array was provided, this is an - array of `text` and `image_url` parts. - - Otherwise, null. - items: - oneOf: - - $ref: "#/components/schemas/ChatCompletionRequestMessageContentPartText" - - $ref: "#/components/schemas/ChatCompletionRequestMessageContentPartImage" - - type: "null" + properties: + id: + type: string + role: + enum: + - user + - assistant + - tool + - system + - function + - developer + type: string + content: + anyOf: + - type: string + - type: "null" + content_parts: + anyOf: + - items: + properties: + type: + enum: + - text + - image_url + - input_audio + - file + type: string + text: + anyOf: + - type: string + - type: "null" + image_url: + anyOf: + - properties: + url: + type: string + detail: + anyOf: + - type: string + - type: "null" + required: + - url + type: object + - type: "null" + input_audio: + anyOf: + - properties: + data: + type: string + format: + type: string + required: + - data + - format + type: object + - type: "null" + file: + anyOf: + - properties: + file_data: + anyOf: + - type: string + - type: "null" + filename: + anyOf: + - type: string + - type: "null" + file_id: + anyOf: + - type: string + - type: "null" + type: object + - type: "null" + required: + - type + type: object + type: array + - type: "null" + name: + anyOf: + - type: string + - type: "null" + required: + - id + - role + - content + - content_parts + type: object first_id: - type: string + type: + - string + - "null" description: The identifier of the first chat message in the data array. last_id: - type: string + type: + - string + - "null" description: The identifier of the last chat message in the data array. has_more: type: boolean @@ -41615,7 +42095,6 @@ components: - completion_tokens - total_tokens CompoundFilter: - $recursiveAnchor: true type: object additionalProperties: false title: Compound Filter @@ -41634,7 +42113,7 @@ components: items: oneOf: - $ref: "#/components/schemas/ComparisonFilter" - - $recursiveRef: "#" + - $ref: "#/components/schemas/CompoundFilter" discriminator: propertyName: type required: @@ -42958,26 +43437,31 @@ components: $ref: "#/components/schemas/ChatCompletionStreamResponseDelta" logprobs: description: Log probability information for the choice. - type: object - nullable: true + type: + - object + - "null" properties: content: description: A list of message content tokens with log probability information. - type: array + type: + - array + - "null" items: $ref: "#/components/schemas/ChatCompletionTokenLogprob" - nullable: true refusal: description: A list of message refusal tokens with log probability information. - type: array + type: + - array + - "null" items: $ref: "#/components/schemas/ChatCompletionTokenLogprob" - nullable: true required: - content - refusal finish_reason: - type: string + type: + - string + - "null" description: > The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided @@ -42997,7 +43481,7 @@ components: - tool_calls - content_filter - function_call - nullable: true + - null index: type: integer description: The index of the choice in the list of choices. @@ -43038,8 +43522,9 @@ components: - chat.completion.chunk x-stainless-const: true usage: - $ref: "#/components/schemas/CompletionUsage" - nullable: true + anyOf: + - $ref: "#/components/schemas/CompletionUsage" + - type: "null" description: > An optional field that will only be present when you set @@ -43074,17 +43559,35 @@ components: - id - model - object + examples: + - id: chatcmpl-123 + object: chat.completion.chunk + created: 1694268190 + model: gpt-6-astra + system_fingerprint: fp_44709d6fcb + choices: + - index: 0 + delta: + content: Hello + logprobs: null + finish_reason: null + obfuscation: p9K3xT6w + - id: chatcmpl-123 + object: chat.completion.chunk + created: 1694268190 + model: gpt-6-astra + system_fingerprint: fp_44709d6fcb + choices: + - index: 0 + delta: {} + logprobs: null + finish_reason: stop + obfuscation: "" x-oaiMeta: name: The chat completion chunk object group: chat example: | {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"obfuscation":"r4N7vQ2m"} - - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"obfuscation":"p9K3xT6w"} - - .... - - {"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-6-astra", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"obfuscation":""} CreateCompletionRequest: type: object properties: @@ -43734,18 +44237,15 @@ components: group: eval runs example: | { - "name": "gpt-6-astra", - "data_source": { - "type": "completions", - "input_messages": { - "type": "item_reference", - "item_reference": "item.input" - }, - "model": "gpt-6-astra", - "source": { - "type": "stored_completions", - "model": "gpt-6-astra" - } + "type": "completions", + "input_messages": { + "type": "item_reference", + "item_reference": "item.input" + }, + "model": "gpt-6-astra", + "source": { + "type": "stored_completions", + "model": "gpt-6-astra" } } CreateEvalCustomDataSourceConfig: @@ -44133,18 +44633,15 @@ components: group: eval runs example: | { - "name": "gpt-6-astra", - "data_source": { + "type": "responses", + "input_messages": { + "type": "item_reference", + "item_reference": "item.input" + }, + "model": "gpt-6-astra", + "source": { "type": "responses", - "input_messages": { - "type": "item_reference", - "item_reference": "item.input" - }, - "model": "gpt-6-astra", - "source": { - "type": "responses", - "model": "gpt-6-astra" - } + "model": "gpt-6-astra" } } CreateEvalRunRequest: @@ -46560,8 +47057,8 @@ components: { "task": "transcribe", "language": "english", - "duration": 8.470000267028809, - "text": "The beach was a popular spot on a hot summer day. People were swimming in the ocean, building sandcastles, and playing beach volleyball.", + "duration": 3.32, + "text": "The beach was a popular spot on a hot summer day.", "segments": [ { "id": 0, @@ -46576,12 +47073,11 @@ components: "avg_logprob": -0.2860786020755768, "compression_ratio": 1.2363636493682861, "no_speech_prob": 0.00985979475080967 - }, - ... + } ], "usage": { "type": "duration", - "seconds": 9 + "seconds": 4 } } CreateTranslationRequest: @@ -47513,14 +48009,19 @@ components: type: integer description: The index of the embedding in the list of embeddings. embedding: - type: array description: > - The embedding vector, which is a list of floats. The length of - vector depends on the model as listed in the [embedding + The embedding vector, returned as a list of floats when + `encoding_format` is `float` (the default), or as a base64-encoded + string when `encoding_format` is `base64`. The length of the vector + depends on the model as listed in the [embedding guide](https://developers.openai.com/api/docs/guides/embeddings). - items: - type: number - format: float + anyOf: + - type: array + items: + type: number + format: float + - type: string + contentEncoding: base64 object: type: string description: The object type, which is always "embedding". @@ -47537,10 +48038,9 @@ components: { "object": "embedding", "embedding": [ - 0.0023064255, - -0.009327292, - .... (1536 floats total for ada-002) - -0.0028842222, + 0.26726124, + 0.53452248, + 0.80178373 ], "index": 0 } @@ -47652,20 +48152,72 @@ components: x-oaiMeta: name: The eval object group: evals - example: | + example: > { "object": "eval", "id": "eval_67abd54d9b0081909a86353f6fb9317a", "data_source_config": { "type": "custom", - "item_schema": { + "schema": { "type": "object", "properties": { - "label": {"type": "string"} + "item": {"type": "object", "properties": {"label": {"type": "string"}}, "required": ["label"]}, + "sample": { + "type": "object", + "properties": { + "model": {"type": "string"}, + "choices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "object", + "properties": { + "role": {"type": "string", "enum": ["assistant"]}, + "content": {"type": ["string", "array", "null"]}, + "refusal": {"type": ["boolean", "null"]}, + "tool_calls": { + "type": ["array", "null"], + "items": { + "type": "object", + "properties": { + "type": {"type": "string", "enum": ["function"]}, + "function": { + "type": "object", + "properties": {"name": {"type": "string"}, "arguments": {"type": "string"}}, + "required": ["name", "arguments"] + }, + "id": {"type": "string"} + }, + "required": ["type", "function", "id"] + } + }, + "function_call": { + "type": ["object", "null"], + "properties": {"name": {"type": "string"}, "arguments": {"type": "string"}}, + "required": ["name", "arguments"] + } + }, + "required": ["role"] + }, + "finish_reason": {"type": "string"} + }, + "required": ["index", "message", "finish_reason"] + } + }, + "output_text": {"type": "string"}, + "output_json": {"type": "object"}, + "output_tools": {"type": "array", "items": {"type": "object"}}, + "output_reasoning_summary": {"type": ["string", "null"]}, + "output_audio": {"type": ["object", "null"]}, + "input_tools": {"type": "array", "items": {"type": "object"}} + }, + "required": ["model", "choices"] + } }, - "required": ["label"] - }, - "include_sample_schema": true + "required": ["item", "sample"] + } }, "testing_criteria": [ { @@ -48717,7 +49269,9 @@ components: - prompt_tokens - cached_tokens error: - $ref: "#/components/schemas/EvalApiError" + anyOf: + - $ref: "#/components/schemas/EvalApiError" + - type: "null" temperature: type: number description: The sampling temperature used. @@ -49571,6 +50125,8 @@ components: - message - param - type: "null" + - type: object + maxProperties: 0 fine_tuned_model: anyOf: - type: string @@ -49586,7 +50142,9 @@ components: running. - type: "null" hyperparameters: - type: object + type: + - object + - "null" description: The hyperparameters used for the fine-tuning job. This value will only be returned when running `supervised` jobs. properties: @@ -49658,9 +50216,9 @@ components: example: file-abc123 status: type: string - description: The current status of the fine-tuning job, which can be either - `validating_files`, `queued`, `running`, `succeeded`, `failed`, or - `cancelled`. + description: The current status of the fine-tuning job, which can be + `validating_files`, `queued`, `running`, `pausing`, `paused`, + `succeeded`, `failed`, or `cancelled`. enum: - validating_files - queued @@ -49668,6 +50226,8 @@ components: - succeeded - failed - cancelled + - pausing + - paused trained_tokens: anyOf: - type: integer @@ -49697,7 +50257,9 @@ components: - $ref: "#/components/schemas/FineTuningIntegration" - type: "null" seed: - type: integer + type: + - integer + - "null" description: The seed used for the fine-tuning job. estimated_finish: anyOf: @@ -49708,7 +50270,9 @@ components: job is not running. - type: "null" method: - $ref: "#/components/schemas/FineTuneMethod" + anyOf: + - $ref: "#/components/schemas/FineTuneMethod" + - type: "null" metadata: $ref: "#/components/schemas/Metadata" required: @@ -49716,7 +50280,6 @@ components: - error - finished_at - fine_tuned_model - - hyperparameters - id - model - object @@ -49727,6 +50290,22 @@ components: - training_file - validation_file - seed + if: + properties: + method: + type: object + properties: + type: + enum: + - dpo + - reinforcement + required: + - type + required: + - method + else: + required: + - hyperparameters x-oaiMeta: name: The fine-tuning job object example: | @@ -49739,15 +50318,15 @@ components: "fine_tuned_model": "ft:davinci-002:my-org:custom_suffix:7q8mpxmy", "organization_id": "org-123", "result_files": [ - "file-abc123" + "file-abc123" ], "status": "succeeded", "validation_file": null, "training_file": "file-abc123", "hyperparameters": { - "n_epochs": 4, - "batch_size": 1, - "learning_rate_multiplier": 1.0 + "n_epochs": 4, + "batch_size": 1, + "learning_rate_multiplier": 1.0 }, "trained_tokens": 5768, "integrations": [], @@ -49765,7 +50344,8 @@ components: }, "metadata": { "key": "value" - } + }, + "error": {} } FineTuningJobCheckpoint: type: object @@ -50601,12 +51181,14 @@ components: "id": "group_01J1F8ABCDXYZ", "name": "Support Team", "created_at": 1711471533, + "group_type": "group", "is_scim_managed": false }, { "id": "group_01J1F8PQRMNO", "name": "Sales", "created_at": 1711472599, + "group_type": "group", "is_scim_managed": true } ], @@ -53858,7 +54440,11 @@ components: "assistant_id": "asst_abc123", "run_id": "run_abc123", "attachments": [], - "metadata": {} + "metadata": {}, + "status": "completed", + "completed_at": 1698983503, + "incomplete_at": null, + "incomplete_details": null } MessagePhase: type: string @@ -54255,7 +54841,9 @@ components: both. - type: "null" user: - type: string + type: + - string + - "null" example: user-1234 deprecated: true description: | @@ -54550,7 +55138,8 @@ components: "created_at": 1677610602, "expires_at": 1680202602, "filename": "salesOverview.pdf", - "purpose": "assistants" + "purpose": "assistants", + "status": "processed" } OrganizationCertificate: type: object @@ -55465,6 +56054,7 @@ components: "project_id": "proj_abc123", "group_id": "group_01J1F8ABCDXYZ", "group_name": "Support Team", + "group_type": "group", "created_at": 1711471533 } ], @@ -64857,14 +65447,18 @@ components: Configuration for input audio transcription. $ref: "#/components/schemas/AudioTranscriptionResponse" noise_reduction: - type: object + type: + - object + - "null" description: | Configuration for input audio noise reduction. properties: type: $ref: "#/components/schemas/NoiseReductionType" turn_detection: - type: object + type: + - object + - "null" description: | Configuration for turn detection. properties: @@ -64933,7 +65527,9 @@ components: The arbitrary metadata to attach to this trace to enable filtering in the traces dashboard. turn_detection: - type: object + type: + - object + - "null" description: > Configuration for turn detection. Can be set to `null` to turn off. Server @@ -65136,9 +65732,13 @@ components: transcription: description: | Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service. - $ref: "#/components/schemas/AudioTranscriptionResponse" + anyOf: + - $ref: "#/components/schemas/AudioTranscriptionResponse" + - type: "null" noise_reduction: - type: object + type: + - object + - "null" default: null description: > Configuration for input audio noise reduction. This can be @@ -65197,7 +65797,9 @@ components: also possible to prompt the model to speak faster or slower. include: - type: array + type: + - array + - "null" items: type: string enum: @@ -65599,7 +66201,9 @@ components: format: unixtime description: Expiration timestamp for the session, in seconds since epoch. include: - type: array + type: + - array + - "null" items: type: string enum: @@ -65622,9 +66226,13 @@ components: transcription: description: | Configuration of the transcription model. - $ref: "#/components/schemas/AudioTranscriptionResponse" + anyOf: + - $ref: "#/components/schemas/AudioTranscriptionResponse" + - type: "null" noise_reduction: - type: object + type: + - object + - "null" description: | Configuration for input audio noise reduction. properties: @@ -65697,7 +66305,7 @@ components: "include": ["item.input_audio_transcription.logprobs"], "audio": { "input": { - "format": "pcm16", + "format": {"type": "audio/pcm", "rate": 24000}, "transcription": { "model": "gpt-4o-transcribe", "language": null, @@ -67090,7 +67698,9 @@ components: - javascript - type: "null" usage: - $ref: "#/components/schemas/ResponseUsage" + anyOf: + - $ref: "#/components/schemas/ResponseUsage" + - type: "null" prompt_cache_options: $ref: "#/components/schemas/PromptCacheOptions" prompt_cache_diagnostics: @@ -67159,6 +67769,7 @@ components: a park or nature reserve. There are trees and shrubs in the background. annotations: [] + logprobs: [] parallel_tool_calls: true previous_response_id: null reasoning: @@ -67560,9 +68171,11 @@ components: { "type": "output_text", "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "annotations": [] + "annotations": [], + "logprobs": [] } - ] + ], + "status": "completed" } ], "previous_response_id": null, @@ -67584,10 +68197,15 @@ components: "output_tokens_details": { "reasoning_tokens": 0 }, - "total_tokens": 0 + "total_tokens": 0, + "input_tokens_details": { + "cached_tokens": 0, + "cache_write_tokens": 0 + } }, "user": null, - "metadata": {} + "metadata": {}, + "parallel_tool_calls": true }, "sequence_number": 1 } @@ -68064,8 +68682,10 @@ components: "truncation": "disabled", "usage": null, "user": null, - "metadata": {} - } + "metadata": {}, + "parallel_tool_calls": true + }, + "sequence_number": 1 } ResponseFileSearchCallCompletedEvent: type: object @@ -68678,7 +69298,7 @@ components: "completed_at": null, "error": null, "incomplete_details": { - "reason": "max_tokens" + "reason": "max_output_tokens" }, "instructions": null, "max_output_tokens": null, @@ -68699,7 +69319,8 @@ components: "truncation": "disabled", "usage": null, "user": null, - "metadata": {} + "metadata": {}, + "parallel_tool_calls": true }, "sequence_number": 1 } @@ -69220,7 +69841,8 @@ components: { "type": "output_text", "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] }, @@ -69385,10 +70007,22 @@ components: { "type": "response.queued", "response": { - "id": "res_123", + "id": "resp_123", + "object": "response", + "access_programs": null, + "created_at": 1609459200, "status": "queued", - "created_at": "2021-01-01T00:00:00Z", - "updated_at": "2021-01-01T00:00:00Z" + "error": null, + "incomplete_details": null, + "instructions": null, + "model": "gpt-6-astra", + "output": [], + "parallel_tool_calls": true, + "temperature": 1, + "tool_choice": "auto", + "tools": [], + "top_p": 1, + "metadata": {} }, "sequence_number": 1 } @@ -72311,10 +72945,11 @@ components: - incomplete - expired required_action: - type: object + type: + - object + - "null" description: Details on the action required to continue the run. Will be `null` if no action is required. - nullable: true properties: type: description: For now, this is always `submit_tool_outputs`. @@ -72337,10 +72972,11 @@ components: - type - submit_tool_outputs last_error: - type: object + type: + - object + - "null" description: The last error associated with this run. Will be `null` if there are no errors. - nullable: true properties: code: type: string @@ -72357,34 +72993,40 @@ components: - message expires_at: description: The Unix timestamp (in seconds) for when the run will expire. - type: integer + type: + - integer + - "null" format: unixtime - nullable: true started_at: description: The Unix timestamp (in seconds) for when the run was started. - type: integer + type: + - integer + - "null" format: unixtime - nullable: true cancelled_at: description: The Unix timestamp (in seconds) for when the run was cancelled. - type: integer + type: + - integer + - "null" format: unixtime - nullable: true failed_at: description: The Unix timestamp (in seconds) for when the run failed. - type: integer + type: + - integer + - "null" format: unixtime - nullable: true completed_at: description: The Unix timestamp (in seconds) for when the run was completed. - type: integer + type: + - integer + - "null" format: unixtime - nullable: true incomplete_details: description: Details on why the run is incomplete. Will be `null` if the run is not incomplete. - type: object - nullable: true + type: + - object + - "null" properties: reason: description: The reason why the run is incomplete. This will point to which @@ -72422,40 +73064,45 @@ components: temperature: description: The sampling temperature used for this run. If not set, defaults to 1. - type: number - nullable: true + type: + - number + - "null" top_p: description: The nucleus sampling value used for this run. If not set, defaults to 1. - type: number - nullable: true + type: + - number + - "null" max_prompt_tokens: - type: integer - nullable: true + type: + - integer + - "null" description: > The maximum number of prompt tokens specified to have been used over the course of the run. minimum: 256 max_completion_tokens: - type: integer - nullable: true + type: + - integer + - "null" description: > The maximum number of completion tokens specified to have been used over the course of the run. minimum: 256 truncation_strategy: - allOf: + anyOf: - $ref: "#/components/schemas/TruncationObject" - - nullable: true + - type: "null" tool_choice: - allOf: + anyOf: - $ref: "#/components/schemas/AssistantsApiToolChoiceOption" - - nullable: true + - type: "null" parallel_tool_calls: $ref: "#/components/schemas/ParallelToolCalls" response_format: - $ref: "#/components/schemas/AssistantsApiResponseFormatOption" - nullable: true + anyOf: + - $ref: "#/components/schemas/AssistantsApiResponseFormatOption" + - type: "null" required: - id - object @@ -72500,7 +73147,7 @@ components: "completed_at": 1699073498, "last_error": null, "model": "gpt-5", - "instructions": null, + "instructions": "You are a helpful assistant.", "tools": [{"type": "file_search"}, {"type": "code_interpreter"}], "metadata": {}, "incomplete_details": null, @@ -72514,12 +73161,12 @@ components: "max_prompt_tokens": 1000, "max_completion_tokens": 1000, "truncation_strategy": { - "type": "auto", - "last_messages": null + "type": "auto" }, "response_format": "auto", "tool_choice": "auto", - "parallel_tool_calls": true + "parallel_tool_calls": true, + "required_action": null } RunStepCompletionUsage: anyOf: @@ -73188,7 +73835,8 @@ components: "prompt_tokens": 123, "completion_tokens": 456, "total_tokens": 579 - } + }, + "metadata": {} } RunStepStreamEvent: oneOf: @@ -73920,7 +74568,8 @@ components: "id": "thread_abc123", "object": "thread", "created_at": 1698107661, - "metadata": {} + "metadata": {}, + "tool_resources": {} } ThreadStreamEvent: oneOf: @@ -74736,10 +75385,10 @@ components: - upload x-stainless-const: true file: - allOf: + description: The ready File object after the Upload is completed. + anyOf: - $ref: "#/components/schemas/OpenAIFile" - - nullable: true - description: The ready File object after the Upload is completed. + - type: "null" required: - bytes - created_at @@ -74766,7 +75415,8 @@ components: "bytes": 2147483648, "created_at": 1719186911, "filename": "training_examples.jsonl", - "purpose": "fine-tune" + "purpose": "fine-tune", + "status": "processed" } } UploadCertificateRequest: @@ -75899,7 +76549,7 @@ components: description: The object type, which is always `vector_store.file_batch`. type: string enum: - - vector_store.files_batch + - vector_store.file_batch x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the vector store files @@ -75959,7 +76609,7 @@ components: example: | { "id": "vsfb_123", - "object": "vector_store.files_batch", + "object": "vector_store.file_batch", "created_at": 1698107661, "vector_store_id": "vs_abc123", "status": "completed", @@ -76207,7 +76857,7 @@ components: "failed": 0, "total": 100 }, - "last_used_at": 1698107661 + "metadata": {} } VectorStoreSearchRequest: type: object @@ -76846,7 +77496,6 @@ components: - id - type - status - - action WebhookBatchCancelled: type: object title: batch.cancelled @@ -78652,7 +79301,7 @@ components: description: The ID of the file. index: type: integer - description: The index of the file in the list of files. + description: The index in the output text at which to insert the file citation. filename: type: string description: The filename of the file cited. @@ -96229,7 +96878,7 @@ components: event_id: event_dtmf_1 event: "5" LiveTransportDTMFSend: - description: A SIP DTMF keypress successfully sent by the hosted tool. Delivered + description: A SIP DTMF keypress successfully sent to the SIP trunk. Delivered only to sideband observers; this is not a client command. example: type: transport.dtmf.send @@ -96250,6 +96899,9 @@ components: minLength: 1 maxLength: 1 pattern: ^[0-9A-D*#]$ + client_event_id: + description: The event_id of the client command, when supplied. + type: string required: - type - event_id @@ -98403,7 +99055,6 @@ components: - $ref: "#/components/schemas/BetaComparisonFilter" - $ref: "#/components/schemas/BetaCompoundFilter" BetaCompoundFilter: - $recursiveAnchor: true type: object additionalProperties: false title: Compound Filter @@ -98422,7 +99073,7 @@ components: items: oneOf: - $ref: "#/components/schemas/BetaComparisonFilter" - - $recursiveRef: "#" + - $ref: "#/components/schemas/BetaCompoundFilter" discriminator: propertyName: type required: @@ -101013,7 +101664,6 @@ components: - id - type - status - - action BetaWebSearchActionFind: type: object title: Find action @@ -101943,7 +102593,7 @@ components: description: The ID of the file. index: type: integer - description: The index of the file in the list of files. + description: The index in the output text at which to insert the file citation. filename: type: string description: The filename of the file cited. @@ -103956,10 +104606,22 @@ components: { "type": "response.queued", "response": { - "id": "res_123", + "id": "resp_123", + "object": "response", + "access_programs": null, + "created_at": 1609459200, "status": "queued", - "created_at": "2021-01-01T00:00:00Z", - "updated_at": "2021-01-01T00:00:00Z" + "error": null, + "incomplete_details": null, + "instructions": null, + "model": "gpt-6-astra", + "output": [], + "parallel_tool_calls": true, + "temperature": 1, + "tool_choice": "auto", + "tools": [], + "top_p": 1, + "metadata": {} }, "sequence_number": 1 } @@ -104126,7 +104788,9 @@ components: - javascript - type: "null" usage: - $ref: "#/components/schemas/BetaResponseUsage" + anyOf: + - $ref: "#/components/schemas/BetaResponseUsage" + - type: "null" prompt_cache_options: $ref: "#/components/schemas/BetaPromptCacheOptions" prompt_cache_diagnostics: @@ -104195,6 +104859,7 @@ components: a park or nature reserve. There are trees and shrubs in the background. annotations: [] + logprobs: [] parallel_tool_calls: true previous_response_id: null reasoning: @@ -104721,7 +105386,9 @@ components: both. - type: "null" user: - type: string + type: + - string + - "null" example: user-1234 deprecated: true description: | @@ -106084,7 +106751,8 @@ components: { "type": "output_text", "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "annotations": [] + "annotations": [], + "logprobs": [] } ] }, @@ -106935,9 +107603,11 @@ components: { "type": "output_text", "text": "In a shimmering forest under a sky full of stars, a lonely unicorn named Lila discovered a hidden pond that glowed with moonlight. Every night, she would leave sparkling, magical flowers by the water's edge, hoping to share her beauty with others. One enchanting evening, she woke to find a group of friendly animals gathered around, eager to be friends and share in her magic.", - "annotations": [] + "annotations": [], + "logprobs": [] } - ] + ], + "status": "completed" } ], "previous_response_id": null, @@ -106959,10 +107629,15 @@ components: "output_tokens_details": { "reasoning_tokens": 0 }, - "total_tokens": 0 + "total_tokens": 0, + "input_tokens_details": { + "cached_tokens": 0, + "cache_write_tokens": 0 + } }, "user": null, - "metadata": {} + "metadata": {}, + "parallel_tool_calls": true }, "sequence_number": 1 } @@ -107405,7 +108080,7 @@ components: "completed_at": null, "error": null, "incomplete_details": { - "reason": "max_tokens" + "reason": "max_output_tokens" }, "instructions": null, "max_output_tokens": null, @@ -107426,7 +108101,8 @@ components: "truncation": "disabled", "usage": null, "user": null, - "metadata": {} + "metadata": {}, + "parallel_tool_calls": true }, "sequence_number": 1 } @@ -107495,8 +108171,10 @@ components: "truncation": "disabled", "usage": null, "user": null, - "metadata": {} - } + "metadata": {}, + "parallel_tool_calls": true + }, + "sequence_number": 1 } BetaResponseWebSearchCallCompletedEvent: type: object From 054b7ccf872cd9e6a6161e8ecb70b03c13b45aea Mon Sep 17 00:00:00 2001 From: "Konstantin S." Date: Tue, 29 Sep 2026 12:20:19 +0400 Subject: [PATCH 2/2] fix(cli): regenerate nested wait polling --- .../Commands/AdminApiKeysCreateCommandApiCommand.g.cs | 4 ++-- .../Commands/AdminApiKeysDeleteCommandApiCommand.g.cs | 4 ++-- .../Commands/AdminApiKeysGetCommandApiCommand.g.cs | 4 ++-- .../Commands/AdminApiKeysListCommandApiCommand.g.cs | 4 ++-- .../Commands/AgentsCreateAgentCommandApiCommand.g.cs | 4 ++-- .../AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs | 4 ++-- ...ntsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs | 4 ++-- .../AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs | 4 ++-- .../AgentsCreateAgentSessionCommandApiCommand.g.cs | 4 ++-- .../AgentsCreateAgentSessionEventsCommandApiCommand.g.cs | 4 ++-- .../Commands/AgentsDeleteAgentCommandApiCommand.g.cs | 4 ++-- ...ntsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs | 4 ++-- .../AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs | 4 ++-- .../AgentsDeleteAgentSessionCommandApiCommand.g.cs | 4 ++-- .../AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs | 4 ++-- ...entsListAgentEnvironmentTemplatesCommandApiCommand.g.cs | 4 ++-- .../AgentsListAgentSessionArtifactsCommandApiCommand.g.cs | 4 ++-- .../AgentsListAgentSessionEventsCommandApiCommand.g.cs | 4 ++-- .../AgentsListAgentSessionItemsCommandApiCommand.g.cs | 4 ++-- ...entsListAgentSessionSubagentItemsCommandApiCommand.g.cs | 4 ++-- ...ListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs | 4 ++-- ...entsListAgentSessionSubagentTurnsCommandApiCommand.g.cs | 4 ++-- .../AgentsListAgentSessionSubagentsCommandApiCommand.g.cs | 4 ++-- .../AgentsListAgentSessionTurnsCommandApiCommand.g.cs | 4 ++-- .../Commands/AgentsListAgentSessionsCommandApiCommand.g.cs | 4 ++-- .../Commands/AgentsListAgentsCommandApiCommand.g.cs | 4 ++-- .../Commands/AgentsRetrieveAgentCommandApiCommand.g.cs | 4 ++-- .../AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs | 4 ++-- ...sRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs | 4 ++-- ...gentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs | 4 ++-- ...trieveAgentSessionArtifactContentCommandApiCommand.g.cs | 4 ++-- .../AgentsRetrieveAgentSessionCommandApiCommand.g.cs | 4 ++-- ...gentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs | 4 ++-- ...sRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs | 4 ++-- .../AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs | 4 ++-- .../Commands/AgentsUpdateAgentCommandApiCommand.g.cs | 4 ++-- ...ntsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs | 4 ++-- .../AgentsUpdateAgentSessionCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsCancelRunCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsCreateMessageCommandApiCommand.g.cs | 7 ++++--- .../AssistantsCreateRunAsStreamCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsCreateRunCommandApiCommand.g.cs | 7 ++++--- ...istantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs | 4 ++-- .../AssistantsCreateThreadAndRunCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsCreateThreadCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsDeleteMessageCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsDeleteThreadCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsGetMessageCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsGetRunCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsGetRunStepCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsGetThreadCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsListMessagesCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsListRunStepsCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsListRunsCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsModifyMessageCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsModifyRunCommandApiCommand.g.cs | 4 ++-- .../Commands/AssistantsModifyThreadCommandApiCommand.g.cs | 4 ++-- ...antsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs | 4 ++-- .../AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs | 4 ++-- .../AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioCreateSpeechCommandApiCommand.g.cs | 4 ++-- .../AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs | 4 ++-- .../AudioCreateTranscriptionAsTextCommandApiCommand.g.cs | 4 ++-- .../AudioCreateTranscriptionCommandApiCommand.g.cs | 4 ++-- .../AudioCreateTranslationAsTextCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioCreateTranslationCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioCreateVoiceCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioGetVoiceConsentCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioListVoiceConsentsCommandApiCommand.g.cs | 4 ++-- .../Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs | 4 ++-- .../Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs | 4 ++-- .../Commands/BatchCancelBatchCommandApiCommand.g.cs | 4 ++-- .../Commands/BatchCreateBatchCommandApiCommand.g.cs | 4 ++-- .../Commands/BatchListBatchesCommandApiCommand.g.cs | 4 ++-- .../Commands/BatchRetrieveBatchCommandApiCommand.g.cs | 4 ++-- .../Commands/CancelChatSessionMethodCommandApiCommand.g.cs | 4 ++-- ...sActivateOrganizationCertificatesCommandApiCommand.g.cs | 4 ++-- ...icatesActivateProjectCertificatesCommandApiCommand.g.cs | 4 ++-- ...eactivateOrganizationCertificatesCommandApiCommand.g.cs | 4 ++-- ...atesDeactivateProjectCertificatesCommandApiCommand.g.cs | 4 ++-- .../CertificatesDeleteCertificateCommandApiCommand.g.cs | 4 ++-- .../CertificatesGetCertificateCommandApiCommand.g.cs | 4 ++-- ...catesListOrganizationCertificatesCommandApiCommand.g.cs | 4 ++-- ...rtificatesListProjectCertificatesCommandApiCommand.g.cs | 4 ++-- .../CertificatesModifyCertificateCommandApiCommand.g.cs | 4 ++-- .../CertificatesUploadCertificateCommandApiCommand.g.cs | 4 ++-- .../ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs | 4 ++-- .../ChatCreateChatCompletionCommandApiCommand.g.cs | 4 ++-- .../ChatDeleteChatCompletionCommandApiCommand.g.cs | 4 ++-- .../Commands/ChatGetChatCompletionCommandApiCommand.g.cs | 4 ++-- .../ChatGetChatCompletionMessagesCommandApiCommand.g.cs | 4 ++-- .../Commands/ChatListChatCompletionsCommandApiCommand.g.cs | 4 ++-- .../ChatUpdateChatCompletionCommandApiCommand.g.cs | 4 ++-- .../CompletionsCreateCompletionCommandApiCommand.g.cs | 4 ++-- .../ConversationsCreateConversationCommandApiCommand.g.cs | 4 ++-- ...versationsCreateConversationItemsCommandApiCommand.g.cs | 4 ++-- .../ConversationsDeleteConversationCommandApiCommand.g.cs | 4 ++-- ...nversationsDeleteConversationItemCommandApiCommand.g.cs | 4 ++-- .../ConversationsGetConversationCommandApiCommand.g.cs | 4 ++-- .../ConversationsGetConversationItemCommandApiCommand.g.cs | 4 ++-- ...onversationsListConversationItemsCommandApiCommand.g.cs | 4 ++-- .../ConversationsUpdateConversationCommandApiCommand.g.cs | 4 ++-- .../Commands/CreateChatSessionMethodCommandApiCommand.g.cs | 4 ++-- .../Commands/CreateContainerCommandApiCommand.g.cs | 4 ++-- .../Commands/CreateContainerFileCommandApiCommand.g.cs | 4 ++-- .../Commands/CreateWebhookEndpointCommandApiCommand.g.cs | 4 ++-- .../CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs | 4 ++-- ...ateanexternalstorageconfigurationCommandApiCommand.g.cs | 4 ++-- .../CreatecontentprovenancecheckCommandApiCommand.g.cs | 4 ++-- ...RetrieveOrganizationDataRetentionCommandApiCommand.g.cs | 4 ++-- ...ntionRetrieveProjectDataRetentionCommandApiCommand.g.cs | 4 ++-- ...onUpdateOrganizationDataRetentionCommandApiCommand.g.cs | 4 ++-- ...tentionUpdateProjectDataRetentionCommandApiCommand.g.cs | 4 ++-- .../Commands/DeleteContainerCommandApiCommand.g.cs | 4 ++-- .../Commands/DeleteContainerFileCommandApiCommand.g.cs | 4 ++-- .../Commands/DeleteThreadMethodCommandApiCommand.g.cs | 4 ++-- .../Commands/DeleteWebhookEndpointCommandApiCommand.g.cs | 4 ++-- ...eteanexternalstorageconfigurationCommandApiCommand.g.cs | 4 ++-- .../DeleteorganizationspendlimitCommandApiCommand.g.cs | 4 ++-- .../Commands/DeleteprojectspendlimitCommandApiCommand.g.cs | 4 ++-- .../EmbeddingsCreateEmbeddingCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsCancelEvalRunCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsCreateEvalCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsCreateEvalRunCommandApiCommand.g.cs | 7 ++++--- .../Commands/EvalsDeleteEvalCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsGetEvalCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsGetEvalRunCommandApiCommand.g.cs | 4 ++-- .../EvalsGetEvalRunOutputItemCommandApiCommand.g.cs | 4 ++-- .../EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsGetEvalRunsCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsListEvalsCommandApiCommand.g.cs | 4 ++-- .../Commands/EvalsUpdateEvalCommandApiCommand.g.cs | 4 ++-- .../Commands/FilesCreateFileCommandApiCommand.g.cs | 4 ++-- .../Commands/FilesDeleteFileCommandApiCommand.g.cs | 4 ++-- .../Commands/FilesDownloadFileCommandApiCommand.g.cs | 4 ++-- .../Commands/FilesListFilesCommandApiCommand.g.cs | 4 ++-- .../Commands/FilesRetrieveFileCommandApiCommand.g.cs | 4 ++-- .../FineTuningCancelFineTuningJobCommandApiCommand.g.cs | 4 ++-- ...ateFineTuningCheckpointPermissionCommandApiCommand.g.cs | 4 ++-- .../FineTuningCreateFineTuningJobCommandApiCommand.g.cs | 4 ++-- ...eteFineTuningCheckpointPermissionCommandApiCommand.g.cs | 4 ++-- ...stFineTuningCheckpointPermissionsCommandApiCommand.g.cs | 4 ++-- .../FineTuningListFineTuningEventsCommandApiCommand.g.cs | 4 ++-- ...uningListFineTuningJobCheckpointsCommandApiCommand.g.cs | 4 ++-- ...TuningListPaginatedFineTuningJobsCommandApiCommand.g.cs | 4 ++-- .../FineTuningPauseFineTuningJobCommandApiCommand.g.cs | 4 ++-- .../FineTuningResumeFineTuningJobCommandApiCommand.g.cs | 4 ++-- .../FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs | 4 ++-- .../Commands/FineTuningRunGraderCommandApiCommand.g.cs | 4 ++-- .../FineTuningValidateGraderCommandApiCommand.g.cs | 4 ++-- .../Commands/GetThreadMethodCommandApiCommand.g.cs | 4 ++-- ...GetanexternalstorageconfigurationCommandApiCommand.g.cs | 4 ++-- .../GetorganizationspendlimitCommandApiCommand.g.cs | 4 ++-- .../Commands/GetprojectsafetyalertCommandApiCommand.g.cs | 4 ++-- .../Commands/GetprojectspendlimitCommandApiCommand.g.cs | 4 ++-- .../Commands/GetsafetycaseCommandApiCommand.g.cs | 4 ++-- ...ionRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs | 4 ++-- ...signmentsListGroupRoleAssignmentsCommandApiCommand.g.cs | 4 ++-- ...nRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs | 4 ++-- ...nRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs | 4 ++-- .../GroupUsersListGroupUsersCommandApiCommand.g.cs | 4 ++-- .../GroupUsersRemoveGroupUserCommandApiCommand.g.cs | 4 ++-- .../GroupUsersRetrieveGroupUserCommandApiCommand.g.cs | 4 ++-- .../Commands/GroupsCreateGroupCommandApiCommand.g.cs | 4 ++-- .../Commands/GroupsDeleteGroupCommandApiCommand.g.cs | 4 ++-- .../Commands/GroupsListGroupsCommandApiCommand.g.cs | 4 ++-- .../Commands/GroupsRetrieveGroupCommandApiCommand.g.cs | 4 ++-- .../Commands/GroupsUpdateGroupCommandApiCommand.g.cs | 4 ++-- ...rieveProjectHostedToolPermissionsCommandApiCommand.g.cs | 4 ++-- ...pdateProjectHostedToolPermissionsCommandApiCommand.g.cs | 4 ++-- .../ImagesCreateImageAsStreamCommandApiCommand.g.cs | 4 ++-- .../Commands/ImagesCreateImageCommandApiCommand.g.cs | 4 ++-- .../ImagesCreateImageEditAsStreamCommandApiCommand.g.cs | 4 ++-- .../Commands/ImagesCreateImageEditCommandApiCommand.g.cs | 4 ++-- .../ImagesCreateImageVariationCommandApiCommand.g.cs | 4 ++-- .../Commands/InvitesDeleteInviteCommandApiCommand.g.cs | 4 ++-- .../Commands/InvitesInviteUserCommandApiCommand.g.cs | 4 ++-- .../Commands/InvitesListInvitesCommandApiCommand.g.cs | 4 ++-- .../Commands/InvitesRetrieveInviteCommandApiCommand.g.cs | 4 ++-- .../Commands/ListContainerFilesCommandApiCommand.g.cs | 4 ++-- .../Commands/ListContainersCommandApiCommand.g.cs | 4 ++-- .../Commands/ListThreadItemsMethodCommandApiCommand.g.cs | 4 ++-- .../Commands/ListThreadsMethodCommandApiCommand.g.cs | 4 ++-- .../Commands/ListWebhookEndpointsCommandApiCommand.g.cs | 4 ++-- .../Commands/ListWebhookEventTypesCommandApiCommand.g.cs | 4 ++-- ...ListexternalstorageconfigurationsCommandApiCommand.g.cs | 4 ++-- .../Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs | 4 ++-- .../Commands/LiveCreateLiveCommandApiCommand.g.cs | 4 ++-- .../LiveDownloadLiveRecordingCommandApiCommand.g.cs | 4 ++-- .../Commands/LiveForkLiveSessionCommandApiCommand.g.cs | 4 ++-- .../Commands/LiveHangupLiveSessionCommandApiCommand.g.cs | 4 ++-- .../Commands/LiveReferLiveSessionCommandApiCommand.g.cs | 4 ++-- .../Commands/LiveRejectLiveSessionCommandApiCommand.g.cs | 4 ++-- .../Commands/ModelsDeleteModelCommandApiCommand.g.cs | 4 ++-- .../Commands/ModelsListModelsCommandApiCommand.g.cs | 4 ++-- .../Commands/ModelsRetrieveModelCommandApiCommand.g.cs | 4 ++-- .../ModerationsCreateModerationCommandApiCommand.g.cs | 4 ++-- ...AssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs | 4 ++-- ...tsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs | 4 ++-- ...signmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs | 4 ++-- ...signmentsUnassignProjectGroupRoleCommandApiCommand.g.cs | 4 ++-- .../ProjectGroupsAddProjectGroupCommandApiCommand.g.cs | 4 ++-- .../ProjectGroupsListProjectGroupsCommandApiCommand.g.cs | 4 ++-- .../ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs | 4 ++-- ...ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs | 4 ++-- ...eAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs | 4 ++-- ...ntsListProjectUserRoleAssignmentsCommandApiCommand.g.cs | 4 ++-- ...ssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs | 4 ++-- ...ssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/ProjectsArchiveProjectCommandApiCommand.g.cs | 4 ++-- .../Commands/ProjectsCreateProjectCommandApiCommand.g.cs | 4 ++-- ...ojectsCreateProjectServiceAccountCommandApiCommand.g.cs | 4 ++-- .../ProjectsCreateProjectUserCommandApiCommand.g.cs | 4 ++-- .../ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs | 4 ++-- ...ectsDeleteProjectModelPermissionsCommandApiCommand.g.cs | 4 ++-- ...ojectsDeleteProjectServiceAccountCommandApiCommand.g.cs | 4 ++-- .../ProjectsDeleteProjectUserCommandApiCommand.g.cs | 4 ++-- .../ProjectsListProjectApiKeysCommandApiCommand.g.cs | 4 ++-- .../ProjectsListProjectRateLimitsCommandApiCommand.g.cs | 4 ++-- ...rojectsListProjectServiceAccountsCommandApiCommand.g.cs | 4 ++-- .../ProjectsListProjectUsersCommandApiCommand.g.cs | 4 ++-- .../Commands/ProjectsListProjectsCommandApiCommand.g.cs | 4 ++-- .../Commands/ProjectsModifyProjectCommandApiCommand.g.cs | 4 ++-- .../ProjectsModifyProjectUserCommandApiCommand.g.cs | 4 ++-- .../ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs | 4 ++-- .../Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs | 4 ++-- ...tsRetrieveProjectModelPermissionsCommandApiCommand.g.cs | 4 ++-- ...ectsRetrieveProjectServiceAccountCommandApiCommand.g.cs | 4 ++-- .../ProjectsRetrieveProjectUserCommandApiCommand.g.cs | 4 ++-- ...ectsUpdateProjectModelPermissionsCommandApiCommand.g.cs | 4 ++-- .../ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs | 4 ++-- ...ojectsUpdateProjectServiceAccountCommandApiCommand.g.cs | 4 ++-- .../RealtimeAcceptRealtimeCallCommandApiCommand.g.cs | 4 ++-- .../RealtimeCreateRealtimeCallCommandApiCommand.g.cs | 4 ++-- ...timeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs | 4 ++-- ...ealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs | 4 ++-- .../RealtimeCreateRealtimeSessionCommandApiCommand.g.cs | 4 ++-- ...reateRealtimeTranscriptionSessionCommandApiCommand.g.cs | 4 ++-- ...teRealtimeTranslationClientSecretCommandApiCommand.g.cs | 4 ++-- .../RealtimeHangupRealtimeCallCommandApiCommand.g.cs | 4 ++-- .../RealtimeReferRealtimeCallCommandApiCommand.g.cs | 4 ++-- .../RealtimeRejectRealtimeCallCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaCancelResponseCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaCompactconversationCommandApiCommand.g.cs | 4 ++-- ...sponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaCreateResponseCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaDeleteResponseCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaGetResponseCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs | 4 ++-- .../ResponsesBetaListInputItemsCommandApiCommand.g.cs | 4 ++-- .../Commands/ResponsesCancelResponseCommandApiCommand.g.cs | 4 ++-- .../ResponsesCompactconversationCommandApiCommand.g.cs | 4 ++-- .../ResponsesCreateResponseAsStreamCommandApiCommand.g.cs | 4 ++-- .../Commands/ResponsesCreateResponseCommandApiCommand.g.cs | 4 ++-- .../Commands/ResponsesDeleteResponseCommandApiCommand.g.cs | 4 ++-- .../Commands/ResponsesGetResponseCommandApiCommand.g.cs | 4 ++-- .../ResponsesGetinputtokencountsCommandApiCommand.g.cs | 4 ++-- .../Commands/ResponsesListInputItemsCommandApiCommand.g.cs | 4 ++-- .../Commands/RetrieveContainerCommandApiCommand.g.cs | 4 ++-- .../Commands/RetrieveContainerFileCommandApiCommand.g.cs | 4 ++-- .../RetrieveContainerFileContentCommandApiCommand.g.cs | 4 ++-- .../Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesCreateProjectRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesCreateRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesDeleteRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesListProjectRolesCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesListRolesCommandApiCommand.g.cs | 4 ++-- .../RolesRetrieveProjectRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesRetrieveRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/RolesUpdateRoleCommandApiCommand.g.cs | 4 ++-- ...otateWebhookEndpointSigningSecretCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsCreateSkillCommandApiCommand.g.cs | 4 ++-- .../SkillsCreateSkillVersionCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsDeleteSkillCommandApiCommand.g.cs | 4 ++-- .../SkillsDeleteSkillVersionCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsGetSkillCommandApiCommand.g.cs | 4 ++-- .../SkillsGetSkillContentAsBytesCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsGetSkillContentCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsGetSkillVersionCommandApiCommand.g.cs | 4 ++-- ...illsGetSkillVersionContentAsBytesCommandApiCommand.g.cs | 4 ++-- .../SkillsGetSkillVersionContentCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsListSkillVersionsCommandApiCommand.g.cs | 4 ++-- .../Commands/SkillsListSkillsCommandApiCommand.g.cs | 4 ++-- .../SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs | 4 ++-- ...lertsCreateOrganizationSpendAlertCommandApiCommand.g.cs | 4 ++-- ...pendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs | 4 ++-- ...lertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs | 4 ++-- ...pendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs | 4 ++-- ...AlertsListOrganizationSpendAlertsCommandApiCommand.g.cs | 4 ++-- ...SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs | 4 ++-- ...rtsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs | 4 ++-- ...ndAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs | 4 ++-- ...lertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs | 4 ++-- ...pendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs | 4 ++-- .../Commands/TestWebhookEndpointCommandApiCommand.g.cs | 4 ++-- .../Commands/UpdateWebhookEndpointCommandApiCommand.g.cs | 4 ++-- .../UpdateorganizationspendlimitCommandApiCommand.g.cs | 4 ++-- .../Commands/UpdateprojectspendlimitCommandApiCommand.g.cs | 4 ++-- .../Commands/UploadsAddUploadPartCommandApiCommand.g.cs | 4 ++-- .../Commands/UploadsCancelUploadCommandApiCommand.g.cs | 4 ++-- .../Commands/UploadsCompleteUploadCommandApiCommand.g.cs | 4 ++-- .../Commands/UploadsCreateUploadCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs | 4 ++-- .../UsageUsageAudioTranscriptionsCommandApiCommand.g.cs | 4 ++-- ...UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageCompletionsCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageCostsCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs | 4 ++-- .../UsageUsageFileSearchCallsCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageImagesCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageModerationsCommandApiCommand.g.cs | 4 ++-- .../Commands/UsageUsageVectorStoresCommandApiCommand.g.cs | 4 ++-- .../UsageUsageWebSearchCallsCommandApiCommand.g.cs | 4 ++-- ...tionRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs | 4 ++-- ...ssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs | 4 ++-- ...onRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs | 4 ++-- ...onRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs | 4 ++-- .../Commands/UsersDeleteUserCommandApiCommand.g.cs | 4 ++-- .../Commands/UsersListUsersCommandApiCommand.g.cs | 4 ++-- .../Commands/UsersModifyUserCommandApiCommand.g.cs | 4 ++-- .../Commands/UsersRetrieveUserCommandApiCommand.g.cs | 4 ++-- ...ateanexternalstorageconfigurationCommandApiCommand.g.cs | 4 ++-- .../Commands/VaultsCreateVaultCommandApiCommand.g.cs | 4 ++-- .../VaultsCreateVaultCredentialCommandApiCommand.g.cs | 4 ++-- .../Commands/VaultsDeleteVaultCommandApiCommand.g.cs | 4 ++-- .../VaultsDeleteVaultCredentialCommandApiCommand.g.cs | 4 ++-- .../VaultsListVaultCredentialsCommandApiCommand.g.cs | 4 ++-- .../Commands/VaultsListVaultsCommandApiCommand.g.cs | 4 ++-- .../Commands/VaultsRetrieveVaultCommandApiCommand.g.cs | 4 ++-- .../VaultsRetrieveVaultCredentialCommandApiCommand.g.cs | 4 ++-- .../VaultsRotateVaultCredentialCommandApiCommand.g.cs | 4 ++-- ...rStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs | 4 ++-- .../VectorStoresCreateVectorStoreCommandApiCommand.g.cs | 4 ++-- ...rStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs | 7 ++++--- ...VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs | 7 ++++--- .../VectorStoresDeleteVectorStoreCommandApiCommand.g.cs | 4 ++-- ...VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs | 4 ++-- .../VectorStoresGetVectorStoreCommandApiCommand.g.cs | 4 ++-- ...ctorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs | 4 ++-- .../VectorStoresGetVectorStoreFileCommandApiCommand.g.cs | 4 ++-- ...StoresListFilesInVectorStoreBatchCommandApiCommand.g.cs | 4 ++-- .../VectorStoresListVectorStoreFilesCommandApiCommand.g.cs | 4 ++-- .../VectorStoresListVectorStoresCommandApiCommand.g.cs | 4 ++-- .../VectorStoresModifyVectorStoreCommandApiCommand.g.cs | 4 ++-- ...resRetrieveVectorStoreFileContentCommandApiCommand.g.cs | 4 ++-- .../VectorStoresSearchVectorStoreCommandApiCommand.g.cs | 4 ++-- ...esUpdateVectorStoreFileAttributesCommandApiCommand.g.cs | 4 ++-- 353 files changed, 716 insertions(+), 711 deletions(-) diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs index 9b38fc07d..fb62049ea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysCreateCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"admin-api-keys-create", @"Create admin API key + var command = new Command(commandName ?? @"admin-api-keys-create", @"Create admin API key Create an organization admin API key"); command.Arguments.Add(NameOption); command.Options.Add(ExpiresInSeconds); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs index 033ee6f3c..519eeb8fa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysDeleteCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"admin-api-keys-delete", @"Delete admin API key + var command = new Command(commandName ?? @"admin-api-keys-delete", @"Delete admin API key Delete an organization admin API key"); command.Arguments.Add(KeyId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs index d16eda61f..34217c923 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysGetCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"admin-api-keys-get", @"Retrieve admin API key + var command = new Command(commandName ?? @"admin-api-keys-get", @"Retrieve admin API key Retrieve a single organization API key"); command.Arguments.Add(KeyId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs index a016e49b3..6909cb0a0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AdminApiKeysListCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"admin-api-keys-list", @"List all organization and project API keys. + var command = new Command(commandName ?? @"admin-api-keys-list", @"List all organization and project API keys. List organization API keys"); command.Options.Add(After); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs index abdac1c29..25fb1a995 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentCommandApiCommand.g.cs @@ -95,9 +95,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-agent", @"Create an agent + var command = new Command(commandName ?? @"create-agent", @"Create an agent Creates a reusable agent without storing credentials. See [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration)."); command.Options.Add(Metadata); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs index 1d4eb5f36..02c4b34d0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentFileCommandApiCommand.g.cs @@ -51,9 +51,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-agent-environment-file", @"Create an agent environment file + var command = new Command(commandName ?? @"create-agent-environment-file", @"Create an agent environment file Copies inline bytes or a Files API file into a connected execution environment. See [environment files](https://developers.openai.com/api/docs/guides/agents-api/environments/files)."); command.Arguments.Add(EnvironmentId); command.Options.Add(Input); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs index b17bc1236..ad95d0e1a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -90,9 +90,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-agent-environment-template", @"Create an agent environment template + var command = new Command(commandName ?? @"create-agent-environment-template", @"Create an agent environment template Creates reusable environment configuration without returning confidential setup commands or environment values. See [reusing a hosted setup](https://developers.openai.com/api/docs/guides/agents-api/tools#reuse-a-hosted-plugin-setup)."); command.Options.Add(SetupCommands); command.Options.Add(Env); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs index a2d5b1f98..2e7b01921 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionAsStreamCommandApiCommand.g.cs @@ -47,9 +47,9 @@ internal static partial class AgentsCreateAgentSessionAsStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-agent-session-as-stream", @"Create an agent session + var command = new Command(commandName ?? @"create-agent-session-as-stream", @"Create an agent session Creates a managed agent session, optionally submits initial input, and returns the session or streams its events when stream is true. See [running sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions)."); command.Options.Add(Metadata); command.Options.Add(Environment); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs index 1807dc358..46df20609 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionCommandApiCommand.g.cs @@ -83,9 +83,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-agent-session", @"Create an agent session + var command = new Command(commandName ?? @"create-agent-session", @"Create an agent session Creates a managed agent session, optionally submits initial input, and returns the session or streams its events when stream is true. See [running sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions)."); command.Options.Add(Metadata); command.Options.Add(Environment); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs index 21838cf45..e7fed3958 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsCreateAgentSessionEventsCommandApiCommand.g.cs @@ -28,9 +28,9 @@ internal static partial class AgentsCreateAgentSessionEventsCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-agent-session-events", @"Create agent session input events + var command = new Command(commandName ?? @"create-agent-session-events", @"Create agent session input events Submits message, cancellation, or tool-result events to a managed agent session. Cancellation can recover a still-open turn whose backend execution has ended by marking it cancelled and abandoning unpublished outputs. Saved results, published files, and existing terminal outcomes are preserved. HTTP 202 confirms acceptance, not durable completion. See [session events](https://developers.openai.com/api/docs/guides/agents-api/sessions/events)."); command.Arguments.Add(SessionId); command.Options.Add(IdempotencyKey); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs index f992da93c..e385409df 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-agent", @"Delete an agent + var command = new Command(commandName ?? @"delete-agent", @"Delete an agent Deletes a reusable agent. See [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration)."); command.Arguments.Add(AgentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs index 121f6cec6..5844f5a95 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-agent-environment-template", @"Delete an agent environment template + var command = new Command(commandName ?? @"delete-agent-environment-template", @"Delete an agent environment template Deletes reusable environment configuration and all confidential template inputs. See [reusing a hosted setup](https://developers.openai.com/api/docs/guides/agents-api/tools#reuse-a-hosted-plugin-setup)."); command.Arguments.Add(EnvironmentTemplateId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs index a54d7c534..ab5ababce 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionArtifactCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-agent-session-artifact", @"Delete an agent session artifact + var command = new Command(commandName ?? @"delete-agent-session-artifact", @"Delete an agent session artifact Deletes an immutable session artifact without deleting its live environment file or original Files API object. See [session artifacts](https://developers.openai.com/api/docs/guides/agents-api/environments/files#openai-hosted-artifacts)."); command.Arguments.Add(SessionId); command.Arguments.Add(ArtifactId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs index d4211124a..bd6f8bc14 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsDeleteAgentSessionCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-agent-session", @"Delete an agent session + var command = new Command(commandName ?? @"delete-agent-session", @"Delete an agent session Removes a managed agent session from the public API and returns a deletion confirmation. If backend execution has ended, deletion can cancel a still-open public turn and abandon unpublished outputs. Running execution must be cancelled first. Physical cleanup may continue asynchronously. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage)."); command.Arguments.Add(SessionId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs index afb23b026..083c490f1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentFilesCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-environment-files", @"List agent environment files + var command = new Command(commandName ?? @"list-agent-environment-files", @"List agent environment files Lists live files on a connected execution environment with optional directory filtering and opaque cursor pagination. See [environment files](https://developers.openai.com/api/docs/guides/agents-api/environments/files)."); command.Arguments.Add(EnvironmentId); command.Options.Add(Path); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs index c466d4026..57920416c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentEnvironmentTemplatesCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-environment-templates", @"List agent environment templates + var command = new Command(commandName ?? @"list-agent-environment-templates", @"List agent environment templates Lists reusable environment templates without returning confidential values. See [reusing a hosted setup](https://developers.openai.com/api/docs/guides/agents-api/tools#reuse-a-hosted-plugin-setup)."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs index 1cd291827..51a91c237 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionArtifactsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-artifacts", @"List agent session artifacts + var command = new Command(commandName ?? @"list-agent-session-artifacts", @"List agent session artifacts Lists immutable artifacts published by completed hosted session turns. See [session artifacts](https://developers.openai.com/api/docs/guides/agents-api/environments/files#openai-hosted-artifacts)."); command.Arguments.Add(SessionId); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs index d61d63d87..aacdf8645 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionEventsCommandApiCommand.g.cs @@ -15,9 +15,9 @@ internal static partial class AgentsListAgentSessionEventsCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-events", @"Stream agent session events + var command = new Command(commandName ?? @"list-agent-session-events", @"Stream agent session events Streams live events for an agent session. See [session events](https://developers.openai.com/api/docs/guides/agents-api/sessions/events)."); command.Arguments.Add(SessionId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs index 323874481..a1edca8f0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionItemsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-items", @"List agent session items + var command = new Command(commandName ?? @"list-agent-session-items", @"List agent session items Lists items produced by the session's root agent, including its interactions with subagents. Each subagent has its own item history. See [inspecting agent output](https://developers.openai.com/api/docs/guides/agents-api/observability)."); command.Arguments.Add(SessionId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs index c3fcd0194..cbb072a8a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentItemsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-subagent-items", @"List subagent items + var command = new Command(commandName ?? @"list-agent-session-subagent-items", @"List subagent items Lists this subagent's own items across all of its turns. See [subagent workflows](https://developers.openai.com/api/docs/guides/agents-api/multi-agent)."); command.Arguments.Add(SessionId); command.Arguments.Add(SubagentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs index da32fd655..6ed204550 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnItemsCommandApiCommand.g.cs @@ -65,9 +65,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-subagent-turn-items", @"List subagent turn items + var command = new Command(commandName ?? @"list-agent-session-subagent-turn-items", @"List subagent turn items Lists items belonging to one turn of this subagent. See [subagent workflows](https://developers.openai.com/api/docs/guides/agents-api/multi-agent)."); command.Arguments.Add(SessionId); command.Arguments.Add(SubagentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs index 66550f2bc..6b621b50c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentTurnsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-subagent-turns", @"List subagent turns + var command = new Command(commandName ?? @"list-agent-session-subagent-turns", @"List subagent turns Lists all turns of this subagent, including turns after a resume. See [subagent workflows](https://developers.openai.com/api/docs/guides/agents-api/multi-agent)."); command.Arguments.Add(SessionId); command.Arguments.Add(SubagentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs index 3ade7dc54..4564e7bcd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionSubagentsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-subagents", @"List session subagents + var command = new Command(commandName ?? @"list-agent-session-subagents", @"List session subagents Lists subagents in a session, including nested and closed subagents. See [subagent workflows](https://developers.openai.com/api/docs/guides/agents-api/multi-agent)."); command.Arguments.Add(SessionId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs index 783fe7114..c83cbba77 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionTurnsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-session-turns", @"List agent session turns + var command = new Command(commandName ?? @"list-agent-session-turns", @"List agent session turns Lists turns by creation time and turn ID. The after cursor is exclusive in the selected order. See [session turns](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage#inspect-session-turns)."); command.Arguments.Add(SessionId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs index 20bfb8178..52110ca4c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentSessionsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agent-sessions", @"List agent sessions + var command = new Command(commandName ?? @"list-agent-sessions", @"List agent sessions Lists managed agent sessions using ID-based pagination and the requested sort order. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage)."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs index 94827f418..8be13d8a3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsListAgentsCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-agents", @"List agents + var command = new Command(commandName ?? @"list-agents", @"List agents Lists reusable agents in the current project. See [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration)."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs index 20096b750..b6aedb849 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent", @"Retrieve an agent + var command = new Command(commandName ?? @"retrieve-agent", @"Retrieve an agent Retrieves a reusable agent by ID. See [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration)."); command.Arguments.Add(AgentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs index 7da5aea0f..13edfed64 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-environment", @"Retrieve an agent environment + var command = new Command(commandName ?? @"retrieve-agent-environment", @"Retrieve an agent environment Retrieves an execution environment's connection status and safe installed metadata. See [environment lifecycle](https://developers.openai.com/api/docs/guides/agents-api/environments/lifecycle)."); command.Arguments.Add(EnvironmentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs index 823f83eab..928103016 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-environment-template", @"Retrieve an agent environment template + var command = new Command(commandName ?? @"retrieve-agent-environment-template", @"Retrieve an agent environment template Retrieves reusable environment configuration without returning confidential values. See [reusing a hosted setup](https://developers.openai.com/api/docs/guides/agents-api/tools#reuse-a-hosted-plugin-setup)."); command.Arguments.Add(EnvironmentTemplateId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs index 7d676f72c..ca03246c6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-session-artifact", @"Retrieve an agent session artifact + var command = new Command(commandName ?? @"retrieve-agent-session-artifact", @"Retrieve an agent session artifact Retrieves immutable metadata for one durable session artifact. See [session artifacts](https://developers.openai.com/api/docs/guides/agents-api/environments/files#openai-hosted-artifacts)."); command.Arguments.Add(SessionId); command.Arguments.Add(ArtifactId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs index 9dacf9e22..e3ae9725e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionArtifactContentCommandApiCommand.g.cs @@ -21,9 +21,9 @@ internal static partial class AgentsRetrieveAgentSessionArtifactContentCommandAp static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-session-artifact-content", @"Retrieve agent session artifact content + var command = new Command(commandName ?? @"retrieve-agent-session-artifact-content", @"Retrieve agent session artifact content Downloads immutable session artifact bytes after the execution environment expires. See [session artifacts](https://developers.openai.com/api/docs/guides/agents-api/environments/files#openai-hosted-artifacts)."); command.Arguments.Add(SessionId); command.Arguments.Add(ArtifactId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs index 6a27ff95a..58cfc5868 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-session", @"Retrieve an agent session + var command = new Command(commandName ?? @"retrieve-agent-session", @"Retrieve an agent session Retrieves the current state of a managed agent session. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage)."); command.Arguments.Add(SessionId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs index a961c24cc..d86701875 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-session-subagent", @"Retrieve a session subagent + var command = new Command(commandName ?? @"retrieve-agent-session-subagent", @"Retrieve a session subagent Retrieves a subagent belonging to this session. See [subagent workflows](https://developers.openai.com/api/docs/guides/agents-api/multi-agent)."); command.Arguments.Add(SessionId); command.Arguments.Add(SubagentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs index 418f3041d..1da75af1b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionSubagentTurnCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-session-subagent-turn", @"Retrieve a subagent turn + var command = new Command(commandName ?? @"retrieve-agent-session-subagent-turn", @"Retrieve a subagent turn Retrieves a turn belonging to this subagent. See [subagent workflows](https://developers.openai.com/api/docs/guides/agents-api/multi-agent)."); command.Arguments.Add(SessionId); command.Arguments.Add(SubagentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs index 2ee840269..5962b021c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsRetrieveAgentSessionTurnCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-agent-session-turn", @"Retrieve an agent session turn + var command = new Command(commandName ?? @"retrieve-agent-session-turn", @"Retrieve an agent session turn Retrieves a turn's current status, timestamps, usage, and error. Returns 404 if the turn does not belong to the session. See [session turns](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage#inspect-session-turns)."); command.Arguments.Add(SessionId); command.Arguments.Add(TurnId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs index 492232f0f..1f565eebc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentCommandApiCommand.g.cs @@ -100,9 +100,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-agent", @"Update an agent + var command = new Command(commandName ?? @"update-agent", @"Update an agent Updates a reusable agent. See [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration)."); command.Arguments.Add(AgentId); command.Options.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs index 6f1a8cc82..13f317f6a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentEnvironmentTemplateCommandApiCommand.g.cs @@ -96,9 +96,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-agent-environment-template", @"Update an agent environment template + var command = new Command(commandName ?? @"update-agent-environment-template", @"Update an agent environment template Updates reusable environment configuration without returning confidential values. See [reusing a hosted setup](https://developers.openai.com/api/docs/guides/agents-api/tools#reuse-a-hosted-plugin-setup)."); command.Arguments.Add(EnvironmentTemplateId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs index f69939cf3..2d077be53 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AgentsUpdateAgentSessionCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-agent-session", @"Update an agent session + var command = new Command(commandName ?? @"update-agent-session", @"Update an agent session Updates session metadata, model, reasoning effort, or service tier. Model settings apply to subsequent turns. Omitted fields are unchanged. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage)."); command.Arguments.Add(SessionId); command.Options.Add(Agent); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs index 5e507f693..0736b20cf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCancelRunCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-run", @"Cancel a run + var command = new Command(commandName ?? @"cancel-run", @"Cancel a run Cancels a run that is `in_progress`."); command.Arguments.Add(ThreadId); command.Arguments.Add(RunId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs index 76939a35a..800cc69c5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateMessageCommandApiCommand.g.cs @@ -96,9 +96,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-message", @"Create message + var command = new Command(commandName ?? @"create-message", @"Create message Create a message."); command.Arguments.Add(ThreadId); command.Options.Add(Role); @@ -160,7 +160,8 @@ await CliRuntime.RunAsync(async () => var waitResponse = await CliRuntime.PollUntilTerminalAsync( fetchAsync: token => client.Assistants.GetMessageAsync( - threadId: resourceId, + threadId: threadId, + messageId: resourceId, cancellationToken: token), pollInterval: pollInterval, waitTimeout: waitTimeout, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs index 659dc7688..7886a00dc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunAsStreamCommandApiCommand.g.cs @@ -96,9 +96,9 @@ internal static partial class AssistantsCreateRunAsStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-run-as-stream", @"Create run + var command = new Command(commandName ?? @"create-run-as-stream", @"Create run Create a run."); command.Arguments.Add(ThreadId); command.Options.Add(Include); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs index 12b919957..b1edc9ff3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateRunCommandApiCommand.g.cs @@ -132,9 +132,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-run", @"Create run + var command = new Command(commandName ?? @"create-run", @"Create run Create a run."); command.Arguments.Add(ThreadId); command.Options.Add(Include); @@ -233,7 +233,8 @@ await CliRuntime.RunAsync(async () => var waitResponse = await CliRuntime.PollUntilTerminalAsync( fetchAsync: token => client.Assistants.GetRunAsync( - threadId: resourceId, + threadId: threadId, + runId: resourceId, cancellationToken: token), pollInterval: pollInterval, waitTimeout: waitTimeout, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs index 9ee5c3f1a..16842c5dc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunAsStreamCommandApiCommand.g.cs @@ -84,9 +84,9 @@ internal static partial class AssistantsCreateThreadAndRunAsStreamCommandApiComm static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-thread-and-run-as-stream", @"Create thread and run + var command = new Command(commandName ?? @"create-thread-and-run-as-stream", @"Create thread and run Create a thread and run it in one request."); command.Options.Add(Thread); command.Options.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs index 4d7d37068..79d606d9a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadAndRunCommandApiCommand.g.cs @@ -104,9 +104,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-thread-and-run", @"Create thread and run + var command = new Command(commandName ?? @"create-thread-and-run", @"Create thread and run Create a thread and run it in one request."); command.Options.Add(Thread); command.Options.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs index 1d680fc7c..a6f8e8067 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsCreateThreadCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-thread", @"Create thread + var command = new Command(commandName ?? @"create-thread", @"Create thread Create a thread."); command.Options.Add(Messages); command.Options.Add(ToolResources); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs index 0853cad2a..340f95341 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteMessageCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-message", @"Delete message + var command = new Command(commandName ?? @"delete-message", @"Delete message Deletes a message."); command.Arguments.Add(ThreadId); command.Arguments.Add(MessageId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs index 03e50a0d6..040bc0e32 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsDeleteThreadCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-thread", @"Delete thread + var command = new Command(commandName ?? @"delete-thread", @"Delete thread Delete a thread."); command.Arguments.Add(ThreadId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs index a0fbd29f1..44ab16401 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetMessageCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-message", @"Retrieve message + var command = new Command(commandName ?? @"get-message", @"Retrieve message Retrieve a message."); command.Arguments.Add(ThreadId); command.Arguments.Add(MessageId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs index 6ad78f53a..00c6dd0fb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-run", @"Retrieve run + var command = new Command(commandName ?? @"get-run", @"Retrieve run Retrieves a run."); command.Arguments.Add(ThreadId); command.Arguments.Add(RunId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs index bf70adfda..1d8cd9df8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetRunStepCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-run-step", @"Retrieve run step + var command = new Command(commandName ?? @"get-run-step", @"Retrieve run step Retrieves a run step."); command.Arguments.Add(ThreadId); command.Arguments.Add(RunId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs index 23a29dd78..a54252297 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsGetThreadCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-thread", @"Retrieve thread + var command = new Command(commandName ?? @"get-thread", @"Retrieve thread Retrieves a thread."); command.Arguments.Add(ThreadId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs index 85fef6d29..3112898aa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListMessagesCommandApiCommand.g.cs @@ -70,9 +70,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-messages", @"List messages + var command = new Command(commandName ?? @"list-messages", @"List messages Returns a list of messages for a given thread."); command.Arguments.Add(ThreadId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs index 471df6ebb..ba87a7593 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunStepsCommandApiCommand.g.cs @@ -78,9 +78,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-run-steps", @"List run steps + var command = new Command(commandName ?? @"list-run-steps", @"List run steps Returns a list of run steps belonging to a run."); command.Arguments.Add(ThreadId); command.Arguments.Add(RunId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs index 6ae0f7303..7ff54243e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsListRunsCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-runs", @"List runs + var command = new Command(commandName ?? @"list-runs", @"List runs Returns a list of runs belonging to a thread."); command.Arguments.Add(ThreadId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs index 7ddb72b1e..41c39affc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyMessageCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-message", @"Modify message + var command = new Command(commandName ?? @"modify-message", @"Modify message Modifies a message."); command.Arguments.Add(ThreadId); command.Arguments.Add(MessageId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs index 7c8b6c745..759b5be32 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyRunCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-run", @"Modify run + var command = new Command(commandName ?? @"modify-run", @"Modify run Modifies a run."); command.Arguments.Add(ThreadId); command.Arguments.Add(RunId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs index 1691007eb..ed6419409 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsModifyThreadCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-thread", @"Modify thread + var command = new Command(commandName ?? @"modify-thread", @"Modify thread Modifies a thread."); command.Arguments.Add(ThreadId); command.Options.Add(ToolResources); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs index 05605866d..7b3ba7b60 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunAsStreamCommandApiCommand.g.cs @@ -28,9 +28,9 @@ internal static partial class AssistantsSubmitToolOuputsToRunAsStreamCommandApiC static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"submit-tool-ouputs-to-run-as-stream", @"Submit tool outputs to run + var command = new Command(commandName ?? @"submit-tool-ouputs-to-run-as-stream", @"Submit tool outputs to run When a run has the `status: ""requires_action""` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. "); command.Arguments.Add(ThreadId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs index 18deb18fa..15e2cc327 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AssistantsSubmitToolOuputsToRunCommandApiCommand.g.cs @@ -48,9 +48,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"submit-tool-ouputs-to-run", @"Submit tool outputs to run + var command = new Command(commandName ?? @"submit-tool-ouputs-to-run", @"Submit tool outputs to run When a run has the `status: ""requires_action""` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request. "); command.Arguments.Add(ThreadId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs index d7dbd8739..a9bdfe0c9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechAsEventStreamCommandApiCommand.g.cs @@ -41,9 +41,9 @@ internal static partial class AudioCreateSpeechAsEventStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-speech-as-event-stream", @"Create speech + var command = new Command(commandName ?? @"create-speech-as-event-stream", @"Create speech Generates audio from the input text. Returns the audio file content, or a stream of audio events. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs index 3bc6c5eda..4dd19dbb1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateSpeechCommandApiCommand.g.cs @@ -41,9 +41,9 @@ internal static partial class AudioCreateSpeechCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-speech", @"Create speech + var command = new Command(commandName ?? @"create-speech", @"Create speech Generates audio from the input text. Returns the audio file content, or a stream of audio events. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs index 477820a3d..6c518fdce 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsStreamCommandApiCommand.g.cs @@ -49,9 +49,9 @@ internal static partial class AudioCreateTranscriptionAsStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-transcription-as-stream", @"Create transcription + var command = new Command(commandName ?? @"create-transcription-as-stream", @"Create transcription Transcribes audio into the input language. Returns a transcription object in `json`, `diarized_json`, or `verbose_json` diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs index 37223583a..d26d9595c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionAsTextCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-transcription-as-text", @"Create transcription + var command = new Command(commandName ?? @"create-transcription-as-text", @"Create transcription Transcribes audio into the input language. Returns a transcription object in `json`, `diarized_json`, or `verbose_json` diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs index 8a80673d5..f0cafa578 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranscriptionCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-transcription", @"Create transcription + var command = new Command(commandName ?? @"create-transcription", @"Create transcription Transcribes audio into the input language. Returns a transcription object in `json`, `diarized_json`, or `verbose_json` diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs index f48211207..09e718e1f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationAsTextCommandApiCommand.g.cs @@ -62,9 +62,9 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-translation-as-text", @"Create translation + var command = new Command(commandName ?? @"create-translation-as-text", @"Create translation Translates audio into English."); command.Options.Add(File); command.Options.Add(Model); command.Options.Add(CreateTranslationRequestOptionSetOptions.Filename); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs index 937670ec9..8510471cc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateTranslationCommandApiCommand.g.cs @@ -62,9 +62,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-translation", @"Create translation + var command = new Command(commandName ?? @"create-translation", @"Create translation Translates audio into English."); command.Options.Add(File); command.Options.Add(Model); command.Options.Add(CreateTranslationRequestOptionSetOptions.Filename); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs index f2c2bda72..ef36865e2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceCommandApiCommand.g.cs @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-voice", @"Create voice + var command = new Command(commandName ?? @"create-voice", @"Create voice Creates a custom voice."); command.Arguments.Add(NameOption); command.Options.Add(AudioSample); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs index c317b06a7..4345708b3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioCreateVoiceConsentCommandApiCommand.g.cs @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-voice-consent", @"Create voice consent + var command = new Command(commandName ?? @"create-voice-consent", @"Create voice consent Upload a voice consent recording."); command.Arguments.Add(NameOption); command.Options.Add(Recording); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs index 1def93cec..ca1628e24 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioDeleteVoiceConsentCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-voice-consent", @"Delete voice consent + var command = new Command(commandName ?? @"delete-voice-consent", @"Delete voice consent Deletes a voice consent recording."); command.Arguments.Add(ConsentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs index 35ceeae30..a312dccfa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioGetVoiceConsentCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-voice-consent", @"Retrieve voice consent + var command = new Command(commandName ?? @"get-voice-consent", @"Retrieve voice consent Retrieves a voice consent recording."); command.Arguments.Add(ConsentId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs index d61a2d22a..8e15af60f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioListVoiceConsentsCommandApiCommand.g.cs @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-voice-consents", @"List voice consents + var command = new Command(commandName ?? @"list-voice-consents", @"List voice consents Returns a list of voice consent recordings."); command.Options.Add(After); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs index 6a14562aa..fa0bcaf6d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AudioUpdateVoiceConsentCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-voice-consent", @"Update voice consent + var command = new Command(commandName ?? @"update-voice-consent", @"Update voice consent Updates a voice consent recording (metadata only)."); command.Arguments.Add(ConsentId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs index f8d0906ac..bf2740576 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/AuditLogsListAuditLogsCommandApiCommand.g.cs @@ -90,9 +90,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-audit-logs", @"List audit logs + var command = new Command(commandName ?? @"list-audit-logs", @"List audit logs List user actions and configuration changes within this organization."); command.Options.Add(EffectiveAt); command.Options.Add(ProjectIds); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs index abeda761b..25523a732 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCancelBatchCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-batch", @"Cancel batch + var command = new Command(commandName ?? @"cancel-batch", @"Cancel batch Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file."); command.Arguments.Add(BatchId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs index fdc2a818c..2e1fa42ae 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchCreateBatchCommandApiCommand.g.cs @@ -98,9 +98,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-batch", @"Create batch + var command = new Command(commandName ?? @"create-batch", @"Create batch Creates and executes a batch from an uploaded file of requests"); command.Options.Add(InputFileId); command.Options.Add(Endpoint); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs index d5afb62b4..047a46652 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchListBatchesCommandApiCommand.g.cs @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-batches", @"List batches + var command = new Command(commandName ?? @"list-batches", @"List batches List your organization's batches."); command.Options.Add(After); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs index fc22288fe..77d8430ed 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/BatchRetrieveBatchCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-batch", @"Retrieve batch + var command = new Command(commandName ?? @"retrieve-batch", @"Retrieve batch Retrieves a batch."); command.Arguments.Add(BatchId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs index 6059e0161..14e9ee7d6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CancelChatSessionMethodCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-chat-session-method", @"Cancel a ChatKit session + var command = new Command(commandName ?? @"cancel-chat-session-method", @"Cancel a ChatKit session Cancel an active ChatKit session and return its most recent metadata. Cancelling prevents new requests from using the issued client secret."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs index 32e374bee..3957a45fa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateOrganizationCertificatesCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"activate-organization-certificates", @"Activate certificates for organization + var command = new Command(commandName ?? @"activate-organization-certificates", @"Activate certificates for organization Activate certificates at the organization level. You can atomically and idempotently activate up to 10 certificates at a time. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs index 8b4eb73f8..7378b8b8e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesActivateProjectCertificatesCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"activate-project-certificates", @"Activate certificates for project + var command = new Command(commandName ?? @"activate-project-certificates", @"Activate certificates for project Activate certificates at the project level. You can atomically and idempotently activate up to 10 certificates at a time. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs index bbfdf0218..4f62ab9c7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateOrganizationCertificatesCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"deactivate-organization-certificates", @"Deactivate certificates for organization + var command = new Command(commandName ?? @"deactivate-organization-certificates", @"Deactivate certificates for organization Deactivate certificates at the organization level. You can atomically and idempotently deactivate up to 10 certificates at a time. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs index 79d56842f..a65117f16 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeactivateProjectCertificatesCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"deactivate-project-certificates", @"Deactivate certificates for project + var command = new Command(commandName ?? @"deactivate-project-certificates", @"Deactivate certificates for project Deactivate certificates at the project level. You can atomically and idempotently deactivate up to 10 certificates at a time. "); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs index bdb751cf5..284a1c23e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesDeleteCertificateCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-certificate", @"Delete certificate + var command = new Command(commandName ?? @"delete-certificate", @"Delete certificate Delete a certificate from the organization. The certificate must be inactive for the organization and all projects. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs index 5283a89c8..67e736e9d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesGetCertificateCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-certificate", @"Get certificate + var command = new Command(commandName ?? @"get-certificate", @"Get certificate Get a certificate that has been uploaded to the organization. You can get a certificate regardless of whether it is active or not. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs index 33909fb12..a9929080c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListOrganizationCertificatesCommandApiCommand.g.cs @@ -50,9 +50,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-organization-certificates", @"List organization certificates + var command = new Command(commandName ?? @"list-organization-certificates", @"List organization certificates List uploaded certificates for this organization."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs index 0e28c922a..4a50f3f25 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesListProjectCertificatesCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-certificates", @"List project certificates + var command = new Command(commandName ?? @"list-project-certificates", @"List project certificates List certificates for this project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs index 018e0470c..1adb46093 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesModifyCertificateCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-certificate", @"Modify certificate + var command = new Command(commandName ?? @"modify-certificate", @"Modify certificate Modify a certificate. Note that only the name can be modified. "); command.Arguments.Add(CertificateId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs index daebd165c..e28827c86 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CertificatesUploadCertificateCommandApiCommand.g.cs @@ -58,9 +58,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"upload-certificate", @"Upload certificate + var command = new Command(commandName ?? @"upload-certificate", @"Upload certificate Upload a certificate to the organization. This does **not** automatically activate the certificate. Organizations can upload up to 50 certificates. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs index a645d87f5..dd7e1863f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionAsStreamCommandApiCommand.g.cs @@ -27,9 +27,9 @@ internal static partial class ChatCreateChatCompletionAsStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-chat-completion-as-stream", @"Create chat completion + var command = new Command(commandName ?? @"create-chat-completion-as-stream", @"Create chat completion **Starting a new project?** We recommend trying [Responses](https://developers.openai.com/api/reference/resources/responses) to take advantage of the latest OpenAI platform features. Compare [Chat Completions with Responses](https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses). diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs index 0a22c482d..9a424302d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatCreateChatCompletionCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-chat-completion", @"Create chat completion + var command = new Command(commandName ?? @"create-chat-completion", @"Create chat completion **Starting a new project?** We recommend trying [Responses](https://developers.openai.com/api/reference/resources/responses) to take advantage of the latest OpenAI platform features. Compare [Chat Completions with Responses](https://developers.openai.com/api/docs/guides/migrate-to-responses?api-mode=responses). diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs index affcd9603..95fbdea8c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatDeleteChatCompletionCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-chat-completion", @"Delete chat completion + var command = new Command(commandName ?? @"delete-chat-completion", @"Delete chat completion Delete a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be deleted. "); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs index 53a0b7cf7..e277813fa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-chat-completion", @"Get chat completion + var command = new Command(commandName ?? @"get-chat-completion", @"Get chat completion Get a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` will be returned. "); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs index 2f817e5c2..a7281089a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatGetChatCompletionMessagesCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-chat-completion-messages", @"Get chat messages + var command = new Command(commandName ?? @"get-chat-completion-messages", @"Get chat messages Get the messages in a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` will be returned. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs index 90807855e..c0f013e70 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatListChatCompletionsCommandApiCommand.g.cs @@ -62,9 +62,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-chat-completions", @"List Chat Completions + var command = new Command(commandName ?? @"list-chat-completions", @"List Chat Completions List stored Chat Completions. Only Chat Completions that have been stored with the `store` parameter set to `true` will be returned. "); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs index 91aebd922..7c82b2f4a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ChatUpdateChatCompletionCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-chat-completion", @"Update chat completion + var command = new Command(commandName ?? @"update-chat-completion", @"Update chat completion Modify a stored chat completion. Only Chat Completions that have been created with the `store` parameter set to `true` can be modified. Currently, the only supported modification is to update the `metadata` field. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs index 7de9ea4bc..4bb1b7463 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CompletionsCreateCompletionCommandApiCommand.g.cs @@ -198,9 +198,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-completion", @"Create completion + var command = new Command(commandName ?? @"create-completion", @"Create completion Creates a completion for the provided prompt and parameters. Returns a completion object, or a sequence of completion objects if the request is streamed. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs index 162c652a6..b8cddd78c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-conversation", @"Create a conversation + var command = new Command(commandName ?? @"create-conversation", @"Create a conversation Create a conversation."); command.Options.Add(Metadata); command.Options.Add(Items); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs index 35b17aae9..da0be5deb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsCreateConversationItemsCommandApiCommand.g.cs @@ -51,9 +51,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-conversation-items", @"Create items + var command = new Command(commandName ?? @"create-conversation-items", @"Create items Create items in a conversation with the given ID."); command.Arguments.Add(ConversationId); command.Options.Add(Include); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs index 965a8c887..9b2241e90 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-conversation", @"Delete a conversation + var command = new Command(commandName ?? @"delete-conversation", @"Delete a conversation Delete a conversation. Items in the conversation will not be deleted."); command.Arguments.Add(ConversationId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs index 5bb7ccf76..2b81fbd0a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsDeleteConversationItemCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-conversation-item", @"Delete an item + var command = new Command(commandName ?? @"delete-conversation-item", @"Delete an item Delete an item from a conversation with the given IDs."); command.Arguments.Add(ConversationId); command.Arguments.Add(ItemId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs index fd8418c6a..759e033aa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-conversation", @"Retrieve a conversation + var command = new Command(commandName ?? @"get-conversation", @"Retrieve a conversation Get a conversation"); command.Arguments.Add(ConversationId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs index 0f434e77b..314e2b383 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsGetConversationItemCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-conversation-item", @"Retrieve an item + var command = new Command(commandName ?? @"get-conversation-item", @"Retrieve an item Get a single item from a conversation with the given IDs."); command.Arguments.Add(ConversationId); command.Arguments.Add(ItemId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs index d85cd8489..1a82c503e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsListConversationItemsCommandApiCommand.g.cs @@ -72,9 +72,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-conversation-items", @"List items + var command = new Command(commandName ?? @"list-conversation-items", @"List items List all items for a conversation with the given ID."); command.Arguments.Add(ConversationId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs index 0982b2e1d..c9fdaef0a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ConversationsUpdateConversationCommandApiCommand.g.cs @@ -58,9 +58,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-conversation", @"Update a conversation + var command = new Command(commandName ?? @"update-conversation", @"Update a conversation Update a conversation"); command.Arguments.Add(ConversationId); command.Options.Add(Metadata); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs index 7f5eb3320..131ef0423 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateChatSessionMethodCommandApiCommand.g.cs @@ -77,9 +77,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-chat-session-method", @"Create a ChatKit session + var command = new Command(commandName ?? @"create-chat-session-method", @"Create a ChatKit session Create a ChatKit session."); command.Options.Add(Workflow); command.Options.Add(User); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs index 075a2e8b3..69baa4639 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerCommandApiCommand.g.cs @@ -97,9 +97,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-container", @"Create container + var command = new Command(commandName ?? @"create-container", @"Create container Create Container"); command.Arguments.Add(NameOption); command.Options.Add(FileIds); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs index b9991b6f9..0e17af80b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateContainerFileCommandApiCommand.g.cs @@ -71,9 +71,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-container-file", @"Create container file + var command = new Command(commandName ?? @"create-container-file", @"Create container file Create a Container File You can send either a multipart/form-data request with the raw file content, or a JSON request with a file ID. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs index 82377813c..101982515 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateWebhookEndpointCommandApiCommand.g.cs @@ -50,9 +50,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-webhook-endpoint", @"Create Webhook Endpoint + var command = new Command(commandName ?? @"create-webhook-endpoint", @"Create Webhook Endpoint Creates a webhook endpoint for the authenticated project."); command.Options.Add(NameOption); command.Options.Add(Url); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs index 84850ff54..f2cf4e45d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanAPIkeyforaserviceaccountCommandApiCommand.g.cs @@ -75,9 +75,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"createan-apikeyforaserviceaccount", @"Create an API key for a service account + var command = new Command(commandName ?? @"createan-apikeyforaserviceaccount", @"Create an API key for a service account Creates an API key for a service account in the project."); command.Arguments.Add(ProjectId); command.Arguments.Add(ServiceAccountId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs index dedd65cde..1872315a8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreateanexternalstorageconfigurationCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"createanexternalstorageconfiguration", @"Create an external storage configuration + var command = new Command(commandName ?? @"createanexternalstorageconfiguration", @"Create an external storage configuration Register one customer-managed external storage configuration."); command.Options.Add(ProjectId); command.Options.Add(Provider); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs index bf2fc4cad..ac2dbe262 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/CreatecontentprovenancecheckCommandApiCommand.g.cs @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"createcontentprovenancecheck", @"Create content provenance check + var command = new Command(commandName ?? @"createcontentprovenancecheck", @"Create content provenance check Check whether an image or audio file contains known OpenAI provenance signals. [Learn more about content provenance](https://developers.openai.com/api/docs/guides/content-provenance). If `not_detected`, it means the tool did not find supported signals in the uploaded file. The content could still have been generated by OpenAI if the metadata was stripped or has evidence of tampering, the watermark was degraded, it comes from a legacy generation model, or it was created before provenance signals were available. Content could also still be AI-generated by another company's model, which the tool currently does not detect."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs index b326b256c..0cd478961 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveOrganizationDataRetentionCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-organization-data-retention", @"Retrieve organization data retention + var command = new Command(commandName ?? @"retrieve-organization-data-retention", @"Retrieve organization data retention Retrieves organization data retention controls."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs index 93047bea3..55e4925dd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionRetrieveProjectDataRetentionCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-data-retention", @"Retrieve project data retention + var command = new Command(commandName ?? @"retrieve-project-data-retention", @"Retrieve project data retention Retrieves project data retention controls."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs index c999c5aed..74e91ae1f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateOrganizationDataRetentionCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-organization-data-retention", @"Update organization data retention + var command = new Command(commandName ?? @"update-organization-data-retention", @"Update organization data retention Updates organization data retention controls."); command.Options.Add(RetentionType); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs index fa8de6138..15656d733 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DataRetentionUpdateProjectDataRetentionCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-data-retention", @"Update project data retention + var command = new Command(commandName ?? @"update-project-data-retention", @"Update project data retention Updates project data retention controls."); command.Arguments.Add(ProjectId); command.Options.Add(RetentionType); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs index 07cd8f1f2..13454f583 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-container", @"Delete a container + var command = new Command(commandName ?? @"delete-container", @"Delete a container Delete Container"); command.Arguments.Add(ContainerId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs index 6d043fb93..5bec3c4c0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteContainerFileCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-container-file", @"Delete a container file + var command = new Command(commandName ?? @"delete-container-file", @"Delete a container file Delete Container File"); command.Arguments.Add(ContainerId); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs index 032399bbf..f4f27f710 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteThreadMethodCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-thread-method", @"Delete a ChatKit thread + var command = new Command(commandName ?? @"delete-thread-method", @"Delete a ChatKit thread Delete a ChatKit thread along with its items and stored attachments."); command.Arguments.Add(ThreadId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs index b65fa00a7..848165aee 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteWebhookEndpointCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-webhook-endpoint", @"Delete Webhook Endpoint + var command = new Command(commandName ?? @"delete-webhook-endpoint", @"Delete Webhook Endpoint Deletes a webhook endpoint for the authenticated project."); command.Arguments.Add(WebhookEndpointId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs index 70bb4abab..389a53da9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteanexternalstorageconfigurationCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"deleteanexternalstorageconfiguration", @"Delete an external storage configuration + var command = new Command(commandName ?? @"deleteanexternalstorageconfiguration", @"Delete an external storage configuration Disconnect a customer-managed external storage configuration. Removing the project's last configuration restores organization-default retention if customer-managed retention was active. Repeating a deletion also completes any interrupted retention update. Cloud storage is unchanged."); command.Arguments.Add(ExternalStorageId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs index be0258d4c..e0193ec2f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteorganizationspendlimitCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"deleteorganizationspendlimit", @"Delete organization spend limit + var command = new Command(commandName ?? @"deleteorganizationspendlimit", @"Delete organization spend limit Delete the organization's hard spend limit."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs index 3b394b5b2..637266be3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DeleteprojectspendlimitCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"deleteprojectspendlimit", @"Delete project spend limit + var command = new Command(commandName ?? @"deleteprojectspendlimit", @"Delete project spend limit Delete a project's hard spend limit."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs index 762a316a7..13f58ac2c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EmbeddingsCreateEmbeddingCommandApiCommand.g.cs @@ -81,9 +81,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-embedding", @"Create embeddings + var command = new Command(commandName ?? @"create-embedding", @"Create embeddings Creates an embedding vector representing the input text."); command.Options.Add(InputOption); command.Options.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs index 28db7f647..7599e13ea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCancelEvalRunCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-eval-run", @"Cancel eval run + var command = new Command(commandName ?? @"cancel-eval-run", @"Cancel eval run Cancel an ongoing evaluation run. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs index 8453708af..13ff3b41d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalCommandApiCommand.g.cs @@ -71,9 +71,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-eval", @"Create eval + var command = new Command(commandName ?? @"create-eval", @"Create eval Create the structure of an evaluation that can be used to test a model's performance. An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources. For more information, see the [Evals guide](https://developers.openai.com/api/docs/guides/evals). diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs index 8065a9ff1..aebf20d28 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsCreateEvalRunCommandApiCommand.g.cs @@ -86,9 +86,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-eval-run", @"Create eval run + var command = new Command(commandName ?? @"create-eval-run", @"Create eval run Kicks off a new run for a given evaluation, specifying the data source, and what model configuration to use to test. The datasource will be validated against the schema specified in the config of the evaluation. "); command.Arguments.Add(EvalId); @@ -148,7 +148,8 @@ await CliRuntime.RunAsync(async () => var waitResponse = await CliRuntime.PollUntilTerminalAsync( fetchAsync: token => client.Evals.GetEvalRunAsync( - evalId: resourceId, + evalId: evalId, + runId: resourceId, cancellationToken: token), pollInterval: pollInterval, waitTimeout: waitTimeout, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs index 413fa6c4a..b9e080159 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-eval", @"Delete an eval + var command = new Command(commandName ?? @"delete-eval", @"Delete an eval Delete an evaluation. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs index 2393dc27e..ee59cdb8c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsDeleteEvalRunCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-eval-run", @"Delete eval run + var command = new Command(commandName ?? @"delete-eval-run", @"Delete eval run Delete an eval run. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs index deec016f9..8d3b30fc1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-eval", @"Get an eval + var command = new Command(commandName ?? @"get-eval", @"Get an eval Get an evaluation by ID. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs index 84f8fd75c..71d8f4fdf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-eval-run", @"Get an eval run + var command = new Command(commandName ?? @"get-eval-run", @"Get an eval run Get an evaluation run by ID. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs index 80abaae46..af6dd1305 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-eval-run-output-item", @"Get an output item of an eval run + var command = new Command(commandName ?? @"get-eval-run-output-item", @"Get an output item of an eval run Get an evaluation run output item by ID. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs index 3e00d12c0..368244762 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunOutputItemsCommandApiCommand.g.cs @@ -67,9 +67,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-eval-run-output-items", @"Get eval run output items + var command = new Command(commandName ?? @"get-eval-run-output-items", @"Get eval run output items Get a list of output items for an evaluation run. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs index 0e8c74fe7..a3412ca8b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsGetEvalRunsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-eval-runs", @"Get eval runs + var command = new Command(commandName ?? @"get-eval-runs", @"Get eval runs Get a list of runs for an evaluation. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs index 5cfbd995f..6c048f60f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsListEvalsCommandApiCommand.g.cs @@ -55,9 +55,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-evals", @"List evals + var command = new Command(commandName ?? @"list-evals", @"List evals List evaluations for a project. "); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs index 35ecac6b6..4cd7cc7a4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/EvalsUpdateEvalCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-eval", @"Update an eval + var command = new Command(commandName ?? @"update-eval", @"Update an eval Update certain properties of an evaluation. "); command.Arguments.Add(EvalId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs index d1100094c..e732a0ea3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesCreateFileCommandApiCommand.g.cs @@ -92,9 +92,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-file", @"Upload file + var command = new Command(commandName ?? @"create-file", @"Upload file Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and each project can store up to 2.5 TB of files in total. There is no organization-wide storage limit. Uploads to this diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs index 88d3f1948..192e33d4b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDeleteFileCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-file", @"Delete file + var command = new Command(commandName ?? @"delete-file", @"Delete file Delete a file and remove it from all vector stores."); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs index fe1ccf271..912334fbb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesDownloadFileCommandApiCommand.g.cs @@ -15,9 +15,9 @@ internal static partial class FilesDownloadFileCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"download-file", @"Retrieve file content + var command = new Command(commandName ?? @"download-file", @"Retrieve file content Returns a response containing the contents of the specified file."); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs index b87fae156..d55909c41 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesListFilesCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-files", @"List files + var command = new Command(commandName ?? @"list-files", @"List files Returns a list of files."); command.Options.Add(Purpose); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs index 676d213c5..610bcd581 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FilesRetrieveFileCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-file", @"Retrieve file + var command = new Command(commandName ?? @"retrieve-file", @"Retrieve file Returns information about a specific file."); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs index e002ddfc6..d632db4fd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCancelFineTuningJobCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-fine-tuning-job", @"Cancel fine-tuning + var command = new Command(commandName ?? @"cancel-fine-tuning-job", @"Cancel fine-tuning Immediately cancel a fine-tune job. "); command.Arguments.Add(FineTuningJobId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs index 3ab2888c1..2a40a6a35 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningCheckpointPermissionCommandApiCommand.g.cs @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-fine-tuning-checkpoint-permission", @"Create checkpoint permissions + var command = new Command(commandName ?? @"create-fine-tuning-checkpoint-permission", @"Create checkpoint permissions **NOTE:** Calling this endpoint requires an [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys). This enables organization owners to share fine-tuned models with other projects in their organization. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs index 315f4255a..1e0849f80 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningCreateFineTuningJobCommandApiCommand.g.cs @@ -137,9 +137,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-fine-tuning-job", @"Create fine-tuning job + var command = new Command(commandName ?? @"create-fine-tuning-job", @"Create fine-tuning job Creates a fine-tuning job which begins the process of creating a new model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs index ecddfd81f..bfa9facbe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningDeleteFineTuningCheckpointPermissionCommandApiCommand.g.cs @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-fine-tuning-checkpoint-permission", @"Delete checkpoint permission + var command = new Command(commandName ?? @"delete-fine-tuning-checkpoint-permission", @"Delete checkpoint permission **NOTE:** This endpoint requires an [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys). Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs index ed33e7726..f086a8fd7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningCheckpointPermissionsCommandApiCommand.g.cs @@ -60,9 +60,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-fine-tuning-checkpoint-permissions", @"List checkpoint permissions + var command = new Command(commandName ?? @"list-fine-tuning-checkpoint-permissions", @"List checkpoint permissions **NOTE:** This endpoint requires an [admin API key](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys). Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs index 1d92d8bd3..4a7c061e6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningEventsCommandApiCommand.g.cs @@ -48,9 +48,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-fine-tuning-events", @"List fine-tuning events + var command = new Command(commandName ?? @"list-fine-tuning-events", @"List fine-tuning events Get status updates for a fine-tuning job. "); command.Arguments.Add(FineTuningJobId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs index 8f20c3b0f..fe68848bd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListFineTuningJobCheckpointsCommandApiCommand.g.cs @@ -48,9 +48,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-fine-tuning-job-checkpoints", @"List fine-tuning checkpoints + var command = new Command(commandName ?? @"list-fine-tuning-job-checkpoints", @"List fine-tuning checkpoints List checkpoints for a fine-tuning job. "); command.Arguments.Add(FineTuningJobId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs index a1002d395..75785f0d8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningListPaginatedFineTuningJobsCommandApiCommand.g.cs @@ -48,9 +48,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-paginated-fine-tuning-jobs", @"List fine-tuning jobs + var command = new Command(commandName ?? @"list-paginated-fine-tuning-jobs", @"List fine-tuning jobs List your organization's fine-tuning jobs "); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs index f783760c1..f74140d49 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningPauseFineTuningJobCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"pause-fine-tuning-job", @"Pause fine-tuning + var command = new Command(commandName ?? @"pause-fine-tuning-job", @"Pause fine-tuning Pause a fine-tune job. "); command.Arguments.Add(FineTuningJobId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs index 0325d4cff..b9d4bf691 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningResumeFineTuningJobCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"resume-fine-tuning-job", @"Resume fine-tuning + var command = new Command(commandName ?? @"resume-fine-tuning-job", @"Resume fine-tuning Resume a fine-tune job. "); command.Arguments.Add(FineTuningJobId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs index 463a5f06c..d9d58215a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRetrieveFineTuningJobCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-fine-tuning-job", @"Retrieve fine-tuning job + var command = new Command(commandName ?? @"retrieve-fine-tuning-job", @"Retrieve fine-tuning job Get info about a fine-tuning job. [Learn more about fine-tuning](https://developers.openai.com/api/docs/guides/model-optimization) diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs index c1ce43284..e189b0e7a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningRunGraderCommandApiCommand.g.cs @@ -71,9 +71,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"run-grader", @"Run grader + var command = new Command(commandName ?? @"run-grader", @"Run grader Run a grader. "); command.Options.Add(Grader); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs index 2850cb960..9b0fdc883 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/FineTuningValidateGraderCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"validate-grader", @"Validate grader + var command = new Command(commandName ?? @"validate-grader", @"Validate grader Validate a grader. "); command.Options.Add(Grader); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs index 73fe060c4..6bc9342fc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetThreadMethodCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-thread-method", @"Retrieve a ChatKit thread + var command = new Command(commandName ?? @"get-thread-method", @"Retrieve a ChatKit thread Retrieve a ChatKit thread by its identifier."); command.Arguments.Add(ThreadId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs index c90e6872d..1c96a462a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetanexternalstorageconfigurationCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"getanexternalstorageconfiguration", @"Get an external storage configuration + var command = new Command(commandName ?? @"getanexternalstorageconfiguration", @"Get an external storage configuration Get one customer-managed external storage configuration."); command.Arguments.Add(ExternalStorageId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs index dacabd802..4eee15036 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetorganizationspendlimitCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"getorganizationspendlimit", @"Get organization spend limit + var command = new Command(commandName ?? @"getorganizationspendlimit", @"Get organization spend limit Get the organization's hard spend limit."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs index dcfac7042..e83ff2c05 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectsafetyalertCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"getprojectsafetyalert", @"Get project safety alert + var command = new Command(commandName ?? @"getprojectsafetyalert", @"Get project safety alert Get a safety alert belonging to the authenticated API project."); command.Arguments.Add(Id); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs index bf6cbfbcd..3f2384c8c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetprojectspendlimitCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"getprojectspendlimit", @"Get project spend limit + var command = new Command(commandName ?? @"getprojectspendlimit", @"Get project spend limit Get a project's hard spend limit."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs index 3ce59e558..da49863f5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GetsafetycaseCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"getsafetycase", @"Get safety case + var command = new Command(commandName ?? @"getsafetycase", @"Get safety case Get a safety case by ID."); command.Arguments.Add(Id); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs index abe1d2f9c..540380354 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsAssignGroupRoleCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"assign-group-role", @"Assign organization role to group + var command = new Command(commandName ?? @"assign-group-role", @"Assign organization role to group Assigns an organization role to a group within the organization."); command.Arguments.Add(GroupId); command.Options.Add(PublicAssignOrganizationGroupRoleBodyOptionSetOptions.RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs index baf847b4e..a10e3116b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsListGroupRoleAssignmentsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-group-role-assignments", @"List group organization role assignments + var command = new Command(commandName ?? @"list-group-role-assignments", @"List group organization role assignments Lists the organization roles assigned to a group within the organization."); command.Arguments.Add(GroupId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs index b4d11e8c8..857e1734a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsRetrieveGroupRoleCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-group-role", @"Retrieve group organization role + var command = new Command(commandName ?? @"retrieve-group-role", @"Retrieve group organization role Retrieves an organization role assigned to a group."); command.Arguments.Add(GroupId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs index ab79ab149..98de1745c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupOrganizationRoleAssignmentsUnassignGroupRoleCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"unassign-group-role", @"Unassign organization role from group + var command = new Command(commandName ?? @"unassign-group-role", @"Unassign organization role from group Unassigns an organization role from a group within the organization."); command.Arguments.Add(GroupId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs index ecb7c27b8..a030b9c33 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersAddGroupUserCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"add-group-user", @"Add group user + var command = new Command(commandName ?? @"add-group-user", @"Add group user Adds a user to a group."); command.Arguments.Add(GroupId); command.Options.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs index 9ec7a23b2..08a4060f0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersListGroupUsersCommandApiCommand.g.cs @@ -55,9 +55,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-group-users", @"List group users + var command = new Command(commandName ?? @"list-group-users", @"List group users Lists the users assigned to a group."); command.Arguments.Add(GroupId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs index a5f2dae94..beee186fb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRemoveGroupUserCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"remove-group-user", @"Remove group user + var command = new Command(commandName ?? @"remove-group-user", @"Remove group user Removes a user from a group."); command.Arguments.Add(GroupId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs index 98706c499..e980b3196 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupUsersRetrieveGroupUserCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-group-user", @"Retrieve group user + var command = new Command(commandName ?? @"retrieve-group-user", @"Retrieve group user Retrieves a user in a group."); command.Arguments.Add(GroupId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs index 6091d1c9d..e62cb0ee9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsCreateGroupCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-group", @"Create group + var command = new Command(commandName ?? @"create-group", @"Create group Creates a new group in the organization."); command.Arguments.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs index 47ed6e21c..52814b660 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsDeleteGroupCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-group", @"Delete group + var command = new Command(commandName ?? @"delete-group", @"Delete group Deletes a group from the organization."); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs index 86070b5bb..7d5051503 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsListGroupsCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-groups", @"List groups + var command = new Command(commandName ?? @"list-groups", @"List groups Lists all groups in the organization."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs index c5f5af4ea..23e0d9eab 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsRetrieveGroupCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-group", @"Retrieve group + var command = new Command(commandName ?? @"retrieve-group", @"Retrieve group Retrieves a group."); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs index a0ccd99a7..1c2d5a256 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/GroupsUpdateGroupCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-group", @"Update group + var command = new Command(commandName ?? @"update-group", @"Update group Updates a group's information."); command.Arguments.Add(GroupId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs index b4471ef78..322dc49e3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsRetrieveProjectHostedToolPermissionsCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-hosted-tool-permissions", @"Retrieve project hosted tool permissions + var command = new Command(commandName ?? @"retrieve-project-hosted-tool-permissions", @"Retrieve project hosted tool permissions Returns hosted tool permissions for a project."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs index 2543d8263..c17968125 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/HostedToolsUpdateProjectHostedToolPermissionsCommandApiCommand.g.cs @@ -60,9 +60,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-hosted-tool-permissions", @"Modify project hosted tool permissions + var command = new Command(commandName ?? @"update-project-hosted-tool-permissions", @"Modify project hosted tool permissions Updates hosted tool permissions for a project."); command.Arguments.Add(ProjectId); command.Options.Add(FileSearchOptions.Enabled); command.Options.Add(WebSearchOptions.Enabled); command.Options.Add(ImageGenerationOptions.Enabled); command.Options.Add(McpOptions.Enabled); command.Options.Add(CodeInterpreterOptions.Enabled); command.Options.Add(Input); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs index 4fc092b01..fa33f8289 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageAsStreamCommandApiCommand.g.cs @@ -38,9 +38,9 @@ internal static partial class ImagesCreateImageAsStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-image-as-stream", @"Create image + var command = new Command(commandName ?? @"create-image-as-stream", @"Create image Creates an image given a prompt. [Learn more](https://developers.openai.com/api/docs/guides/images-vision). "); command.Options.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs index 8b6129d3d..12a538aea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageCommandApiCommand.g.cs @@ -58,9 +58,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-image", @"Create image + var command = new Command(commandName ?? @"create-image", @"Create image Creates an image given a prompt. [Learn more](https://developers.openai.com/api/docs/guides/images-vision). "); command.Options.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs index b228acac3..9cddbc0b9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditAsStreamCommandApiCommand.g.cs @@ -68,9 +68,9 @@ file less than 4MB. static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-image-edit-as-stream", @"Create image edit + var command = new Command(commandName ?? @"create-image-edit-as-stream", @"Create image edit Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models and `dall-e-2`."); command.Options.Add(Image); command.Options.Add(Mask); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs index 1c39eaf21..5378988b0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageEditCommandApiCommand.g.cs @@ -88,9 +88,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-image-edit", @"Create image edit + var command = new Command(commandName ?? @"create-image-edit", @"Create image edit Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models and `dall-e-2`."); command.Options.Add(Image); command.Options.Add(Mask); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs index 4309a9ad4..956ff2a98 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ImagesCreateImageVariationCommandApiCommand.g.cs @@ -90,9 +90,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-image-variation", @"Create image variation + var command = new Command(commandName ?? @"create-image-variation", @"Create image variation Creates a variation of a given image. This endpoint only supports `dall-e-2`."); command.Options.Add(Image); command.Options.Add(Imagename); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs index 433bcc922..c5f67db55 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesDeleteInviteCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-invite", @"Delete invite + var command = new Command(commandName ?? @"delete-invite", @"Delete invite Delete an invite. If the invite has already been accepted, it cannot be deleted."); command.Arguments.Add(InviteId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs index e56c4aae5..3280c1e48 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesInviteUserCommandApiCommand.g.cs @@ -81,9 +81,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"user", @"Create invite + var command = new Command(commandName ?? @"user", @"Create invite Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization."); command.Options.Add(Email); command.Options.Add(Role); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs index e65e960e8..62e926e76 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesListInvitesCommandApiCommand.g.cs @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-invites", @"List invites + var command = new Command(commandName ?? @"list-invites", @"List invites Returns a list of invites in the organization."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs index d66444644..33f9377dc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/InvitesRetrieveInviteCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-invite", @"Retrieve invite + var command = new Command(commandName ?? @"retrieve-invite", @"Retrieve invite Retrieves an invite."); command.Arguments.Add(InviteId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs index 678b097f9..9aa33a4dc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainerFilesCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-container-files", @"List container files + var command = new Command(commandName ?? @"list-container-files", @"List container files List Container files"); command.Arguments.Add(ContainerId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs index 85f705fd3..b562ab777 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListContainersCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-containers", @"List containers + var command = new Command(commandName ?? @"list-containers", @"List containers List Containers"); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs index ae2612c47..565499911 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadItemsMethodCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-thread-items-method", @"List ChatKit thread items + var command = new Command(commandName ?? @"list-thread-items-method", @"List ChatKit thread items List items that belong to a ChatKit thread."); command.Arguments.Add(ThreadId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs index 705936a2f..4a7537dc0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListThreadsMethodCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-threads-method", @"List ChatKit threads + var command = new Command(commandName ?? @"list-threads-method", @"List ChatKit threads List ChatKit threads with optional pagination and user filters."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs index f72137dd5..5a1322578 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEndpointsCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-webhook-endpoints", @"List Webhook Endpoints + var command = new Command(commandName ?? @"list-webhook-endpoints", @"List Webhook Endpoints Returns webhook endpoints for the authenticated project in newest-first order."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs index 066c849f6..130c44e9d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListWebhookEventTypesCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-webhook-event-types", @"List Webhook Event Types + var command = new Command(commandName ?? @"list-webhook-event-types", @"List Webhook Event Types Returns webhook event types visible to the authenticated project."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs index b4b6241e1..6e934c8b1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ListexternalstorageconfigurationsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"listexternalstorageconfigurations", @"List external storage configurations + var command = new Command(commandName ?? @"listexternalstorageconfigurations", @"List external storage configurations List the organization's customer-managed external storage configurations."); command.Options.Add(ProjectId); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs index cde22e664..1288b7ac9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveAcceptLiveSessionCommandApiCommand.g.cs @@ -22,9 +22,9 @@ internal static partial class LiveAcceptLiveSessionCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"accept-live-session", @"Accept call + var command = new Command(commandName ?? @"accept-live-session", @"Accept call Accept an incoming SIP call. Supply session with type live, the model, and startup configuration. Before accepting calls, follow the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting) to write frontend conversation instructions and a separate backend prompt. SIP media format is negotiated; omit audio.format."); command.Arguments.Add(SessionId); command.Options.Add(Session); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs index e48566fad..372b1d2a2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveCreateLiveCommandApiCommand.g.cs @@ -37,9 +37,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-live", @"Create session + var command = new Command(commandName ?? @"create-live", @"Create session Create a Live WebRTC session. Start with the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting)."); command.Options.Add(Session); command.Options.Add(TransportOptions.Type); command.Options.Add(TransportOptions.Sdp); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs index 7069b166a..ba6f99fa5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveDownloadLiveRecordingCommandApiCommand.g.cs @@ -15,9 +15,9 @@ internal static partial class LiveDownloadLiveRecordingCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"download-live-recording", @"Download recording + var command = new Command(commandName ?? @"download-live-recording", @"Download recording Get Live session content"); command.Arguments.Add(SessionId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs index 4270caa1e..541c1125a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveForkLiveSessionCommandApiCommand.g.cs @@ -58,9 +58,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"fork-live-session", @"Fork session + var command = new Command(commandName ?? @"fork-live-session", @"Fork session Fork a stored Live session onto a new WebRTC connection."); command.Arguments.Add(SessionId); command.Options.Add(Session); command.Options.Add(TransportOptions.Type); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs index 850c5b285..01ab0a081 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveHangupLiveSessionCommandApiCommand.g.cs @@ -15,9 +15,9 @@ internal static partial class LiveHangupLiveSessionCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"hangup-live-session", @"Hang up session + var command = new Command(commandName ?? @"hangup-live-session", @"Hang up session End a SIP call identified by session_id."); command.Arguments.Add(SessionId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs index 48c11c707..4f588f951 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveReferLiveSessionCommandApiCommand.g.cs @@ -22,9 +22,9 @@ internal static partial class LiveReferLiveSessionCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"refer-live-session", @"Transfer call + var command = new Command(commandName ?? @"refer-live-session", @"Transfer call Transfer a SIP call to another destination. Supply a nonblank target_uri for the SIP Refer-To header."); command.Arguments.Add(SessionId); command.Options.Add(TargetUri); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs index 0fd5abff5..869037caa 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/LiveRejectLiveSessionCommandApiCommand.g.cs @@ -22,9 +22,9 @@ internal static partial class LiveRejectLiveSessionCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"reject-live-session", @"Reject call + var command = new Command(commandName ?? @"reject-live-session", @"Reject call Reject an incoming SIP call. Send a required SIP rejection status_code between 300 and 699."); command.Arguments.Add(SessionId); command.Options.Add(StatusCode); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs index 6fd9f0d9c..4cc8283df 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsDeleteModelCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-model", @"Delete a fine-tuned model + var command = new Command(commandName ?? @"delete-model", @"Delete a fine-tuned model Delete a fine-tuned model. You must have the Owner role in your organization to delete a model."); command.Arguments.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs index e15dbdf54..0b0431951 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsListModelsCommandApiCommand.g.cs @@ -31,9 +31,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-models", @"List models + var command = new Command(commandName ?? @"list-models", @"List models Lists the currently available models, and provides basic information about each one such as the owner and availability."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs index 6b5ed2306..44ebd8cc7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModelsRetrieveModelCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-model", @"Retrieve model + var command = new Command(commandName ?? @"retrieve-model", @"Retrieve model Retrieves a model instance, providing basic information about the model such as the owner and permissioning."); command.Arguments.Add(Model); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs index 869569b22..9b6398aea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ModerationsCreateModerationCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-moderation", @"Create moderation + var command = new Command(commandName ?? @"create-moderation", @"Create moderation Classifies if text and/or image inputs are potentially harmful. Learn more in the [moderation guide](https://developers.openai.com/api/docs/guides/moderation). "); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs index 9eba6869b..1c719d7d1 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsAssignProjectGroupRoleCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"assign-project-group-role", @"Assign project role to group + var command = new Command(commandName ?? @"assign-project-group-role", @"Assign project role to group Assigns a project role to a group within a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(GroupId); command.Options.Add(PublicAssignOrganizationGroupRoleBodyOptionSetOptions.RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs index 8a4a7cbaa..903df2cf8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsListProjectGroupRoleAssignmentsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-group-role-assignments", @"List project group role assignments + var command = new Command(commandName ?? @"list-project-group-role-assignments", @"List project group role assignments Lists the project roles assigned to a group within a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs index b84c17e67..50700903c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsRetrieveProjectGroupRoleCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-group-role", @"Retrieve project group role + var command = new Command(commandName ?? @"retrieve-project-group-role", @"Retrieve project group role Retrieves a project role assigned to a group."); command.Arguments.Add(ProjectId); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs index 25d67cef1..c8094fcc4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupRoleAssignmentsUnassignProjectGroupRoleCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"unassign-project-group-role", @"Unassign project role from group + var command = new Command(commandName ?? @"unassign-project-group-role", @"Unassign project role from group Unassigns a project role from a group within a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs index 0bb563175..5079c7764 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsAddProjectGroupCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"add-project-group", @"Add project group + var command = new Command(commandName ?? @"add-project-group", @"Add project group Grants a group access to a project."); command.Arguments.Add(ProjectId); command.Options.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs index f83cc96f8..b88d88c0a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsListProjectGroupsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-groups", @"List project groups + var command = new Command(commandName ?? @"list-project-groups", @"List project groups Lists the groups that have access to a project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs index 6738c599d..a87de317a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRemoveProjectGroupCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"remove-project-group", @"Remove project group + var command = new Command(commandName ?? @"remove-project-group", @"Remove project group Revokes a group's access to a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs index f9767d95e..f40bd4f45 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectGroupsRetrieveProjectGroupCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-group", @"Retrieve project group + var command = new Command(commandName ?? @"retrieve-project-group", @"Retrieve project group Retrieves a project's group."); command.Arguments.Add(ProjectId); command.Arguments.Add(GroupId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs index d7e113d23..a1a12f333 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsAssignProjectUserRoleCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"assign-project-user-role", @"Assign project role to user + var command = new Command(commandName ?? @"assign-project-user-role", @"Assign project role to user Assigns a project role to a user within a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(UserId); command.Options.Add(PublicAssignOrganizationGroupRoleBodyOptionSetOptions.RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs index 5d0490acf..dc3057d85 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsListProjectUserRoleAssignmentsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-user-role-assignments", @"List project user role assignments + var command = new Command(commandName ?? @"list-project-user-role-assignments", @"List project user role assignments Lists the project roles assigned to a user within a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs index 4a46f590e..747a7e2a3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsRetrieveProjectUserRoleCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-user-role", @"Retrieve project user role + var command = new Command(commandName ?? @"retrieve-project-user-role", @"Retrieve project user role Retrieves a project role assigned to a user."); command.Arguments.Add(ProjectId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs index d27fe1be9..cf1f16e99 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectUserRoleAssignmentsUnassignProjectUserRoleCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"unassign-project-user-role", @"Unassign project role from user + var command = new Command(commandName ?? @"unassign-project-user-role", @"Unassign project role from user Unassigns a project role from a user within a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs index 891170e15..1258daade 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsArchiveProjectCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"archive-project", @"Archive project + var command = new Command(commandName ?? @"archive-project", @"Archive project Archives a project in the organization. Archived projects cannot be used or updated."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs index 9d3bddee2..fad71684a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectCommandApiCommand.g.cs @@ -79,9 +79,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-project", @"Create project + var command = new Command(commandName ?? @"create-project", @"Create project Create a new project in the organization. Projects can be created and archived, but cannot be deleted."); command.Arguments.Add(NameOption); command.Options.Add(Residency); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs index a836bbdc4..87bc52d9f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectServiceAccountCommandApiCommand.g.cs @@ -68,9 +68,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-project-service-account", @"Create project service account + var command = new Command(commandName ?? @"create-project-service-account", @"Create project service account Creates a new service account in the project. By default, this also returns an unredacted API key for the service account."); command.Arguments.Add(ProjectId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs index e7f8bae54..e41c5ada0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsCreateProjectUserCommandApiCommand.g.cs @@ -70,9 +70,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-project-user", @"Create project user + var command = new Command(commandName ?? @"create-project-user", @"Create project user Adds a user to the project. Users must already be members of the organization to be added to a project."); command.Arguments.Add(ProjectId); command.Options.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs index fd2a57218..f7c8ea473 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectApiKeyCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-project-api-key", @"Delete project API key + var command = new Command(commandName ?? @"delete-project-api-key", @"Delete project API key Deletes an API key from the project. Returns confirmation of the key deletion, or an error if the key belonged to diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs index 8bcf644d1..a2654ef78 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectModelPermissionsCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-project-model-permissions", @"Delete project model permissions + var command = new Command(commandName ?? @"delete-project-model-permissions", @"Delete project model permissions Deletes model permissions for a project."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs index 5a47679e6..0bc19b6f7 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectServiceAccountCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-project-service-account", @"Delete project service account + var command = new Command(commandName ?? @"delete-project-service-account", @"Delete project service account Deletes a service account from the project. Returns confirmation of service account deletion, or an error if the project diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs index 5769444ad..a6fae43bd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsDeleteProjectUserCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-project-user", @"Delete project user + var command = new Command(commandName ?? @"delete-project-user", @"Delete project user Deletes a user from the project. Returns confirmation of project user deletion, or an error if the project is diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs index e32887d06..a20cc9eda 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectApiKeysCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-api-keys", @"List project API keys + var command = new Command(commandName ?? @"list-project-api-keys", @"List project API keys Returns a list of API keys in the project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs index a2afced18..c9f07a278 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectRateLimitsCommandApiCommand.g.cs @@ -56,9 +56,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-rate-limits", @"List project rate limits + var command = new Command(commandName ?? @"list-project-rate-limits", @"List project rate limits Returns the rate limits per model for a project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs index d907022f0..4f7eac6cb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectServiceAccountsCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-service-accounts", @"List project service accounts + var command = new Command(commandName ?? @"list-project-service-accounts", @"List project service accounts Returns a list of service accounts in the project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs index a24d212c0..e406cb609 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectUsersCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-users", @"List project users + var command = new Command(commandName ?? @"list-project-users", @"List project users Returns a list of users in the project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs index bc47ccda5..a4c27d861 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsListProjectsCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-projects", @"List projects + var command = new Command(commandName ?? @"list-projects", @"List projects Returns a list of projects."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs index c9253c955..73a10a5db 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-project", @"Modify project + var command = new Command(commandName ?? @"modify-project", @"Modify project Modifies a project in the organization."); command.Arguments.Add(ProjectId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs index 1fea5539e..1522c8a8b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsModifyProjectUserCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-project-user", @"Modify project user + var command = new Command(commandName ?? @"modify-project-user", @"Modify project user Modifies a user's role in the project."); command.Arguments.Add(ProjectId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs index e0547542a..5d95561a3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectApiKeyCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-api-key", @"Retrieve project API key + var command = new Command(commandName ?? @"retrieve-project-api-key", @"Retrieve project API key Retrieves an API key in the project."); command.Arguments.Add(ProjectId); command.Arguments.Add(ApiKeyId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs index 0bfb9d54a..1500d5a86 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project", @"Retrieve project + var command = new Command(commandName ?? @"retrieve-project", @"Retrieve project Retrieves a project."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs index 851a5e458..5b9b001ea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectModelPermissionsCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-model-permissions", @"Retrieve project model permissions + var command = new Command(commandName ?? @"retrieve-project-model-permissions", @"Retrieve project model permissions Returns model permissions for a project."); command.Arguments.Add(ProjectId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs index a454309ec..d68a6050f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectServiceAccountCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-service-account", @"Retrieve project service account + var command = new Command(commandName ?? @"retrieve-project-service-account", @"Retrieve project service account Retrieves a service account in the project."); command.Arguments.Add(ProjectId); command.Arguments.Add(ServiceAccountId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs index 2c9a66350..02d31f676 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsRetrieveProjectUserCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-user", @"Retrieve project user + var command = new Command(commandName ?? @"retrieve-project-user", @"Retrieve project user Retrieves a user in the project."); command.Arguments.Add(ProjectId); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs index b8fc0de56..06fb59510 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectModelPermissionsCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-model-permissions", @"Modify project model permissions + var command = new Command(commandName ?? @"update-project-model-permissions", @"Modify project model permissions Updates model permissions for a project."); command.Arguments.Add(ProjectId); command.Options.Add(Mode); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs index 7154388df..05438e2af 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectRateLimitsCommandApiCommand.g.cs @@ -93,9 +93,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-rate-limits", @"Modify project rate limit + var command = new Command(commandName ?? @"update-project-rate-limits", @"Modify project rate limit Updates a project rate limit."); command.Arguments.Add(ProjectId); command.Arguments.Add(RateLimitId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs index 96f05bbb4..6d6234330 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ProjectsUpdateProjectServiceAccountCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-service-account", @"Update project service account + var command = new Command(commandName ?? @"update-project-service-account", @"Update project service account Updates a service account in the project."); command.Arguments.Add(ProjectId); command.Arguments.Add(ServiceAccountId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs index 906ff0599..ffd04c162 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeAcceptRealtimeCallCommandApiCommand.g.cs @@ -105,9 +105,9 @@ given model. Defaults to `inf`. static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"accept-realtime-call", @"Accept call + var command = new Command(commandName ?? @"accept-realtime-call", @"Accept call Accept an incoming SIP call and configure the realtime session that will handle it."); command.Arguments.Add(CallId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs index 6f596f705..0f9adbab3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallCommandApiCommand.g.cs @@ -33,9 +33,9 @@ internal static partial class RealtimeCreateRealtimeCallCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-realtime-call", @"Create call + var command = new Command(commandName ?? @"create-realtime-call", @"Create call Create a new Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection."); command.Options.Add(Sdp); command.Options.Add(SessionOptions.Type); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs index f8d7df3fc..94dc57be8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeCallWithRawBodyCommandApiCommand.g.cs @@ -27,9 +27,9 @@ internal static partial class RealtimeCreateRealtimeCallWithRawBodyCommandApiCom static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-realtime-call-with-raw-body", @"Create call + var command = new Command(commandName ?? @"create-realtime-call-with-raw-body", @"Create call Create a new Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs index 458d45ec0..8ac9c7cbe 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeClientSecretCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-realtime-client-secret", @"Create client secret + var command = new Command(commandName ?? @"create-realtime-client-secret", @"Create client secret Create a Realtime client secret with an associated session configuration. Client secrets are short-lived tokens that can be passed to a client app, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs index 6e5d69d2e..be181d033 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeSessionCommandApiCommand.g.cs @@ -178,9 +178,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-realtime-session", @"Create session + var command = new Command(commandName ?? @"create-realtime-session", @"Create session Create an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as the `session.update` client event. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs index 05a82f97a..b1878bdbf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranscriptionSessionCommandApiCommand.g.cs @@ -85,9 +85,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-realtime-transcription-session", @"Create transcription session + var command = new Command(commandName ?? @"create-realtime-transcription-session", @"Create transcription session Create an ephemeral API token for use in client-side applications with the Realtime API specifically for realtime transcriptions. Can be configured with the same session parameters as the `transcription_session.update` client event. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs index 7fce6e199..7f2fb379e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeCreateRealtimeTranslationClientSecretCommandApiCommand.g.cs @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-realtime-translation-client-secret", @"Create translation client secret + var command = new Command(commandName ?? @"create-realtime-translation-client-secret", @"Create translation client secret Create a Realtime translation client secret with an associated translation session configuration. Client secrets are short-lived tokens that can be passed to a client app, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs index d35934b17..9e78cbc39 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeHangupRealtimeCallCommandApiCommand.g.cs @@ -19,9 +19,9 @@ header when creating the call with static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"hangup-realtime-call", @"Hang up call + var command = new Command(commandName ?? @"hangup-realtime-call", @"Hang up call End an active Realtime API call, whether it was initiated over SIP or WebRTC."); command.Arguments.Add(CallId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs index 1c10bb2fb..2050c254a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeReferRealtimeCallCommandApiCommand.g.cs @@ -25,9 +25,9 @@ internal static partial class RealtimeReferRealtimeCallCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"refer-realtime-call", @"Refer call + var command = new Command(commandName ?? @"refer-realtime-call", @"Refer call Transfer an active SIP call to a new destination using the SIP REFER verb."); command.Arguments.Add(CallId); command.Options.Add(TargetUri); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs index bde291c61..39f2fa830 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RealtimeRejectRealtimeCallCommandApiCommand.g.cs @@ -40,9 +40,9 @@ internal static partial class RealtimeRejectRealtimeCallCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"reject-realtime-call", @"Reject call + var command = new Command(commandName ?? @"reject-realtime-call", @"Reject call Decline an incoming SIP call by returning a SIP status code to the caller."); command.Arguments.Add(CallId); command.Options.Add(StatusCode); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs index b87f6fbe4..37ea619d3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCancelResponseCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-cancel-response", @"Cancel a response + var command = new Command(commandName ?? @"beta-cancel-response", @"Cancel a response Cancels a model response with the given ID. Only responses created with the `background` parameter set to `true` can be cancelled. [Learn more](https://developers.openai.com/api/docs/guides/background). diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs index 9d1c66773..074341712 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCompactconversationCommandApiCommand.g.cs @@ -100,9 +100,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-compactconversation", @"Compact conversation + var command = new Command(commandName ?? @"beta-compactconversation", @"Compact conversation Compact a conversation. Returns a compacted response object. Learn when and how to compact long-running conversations in the [conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced)."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs index 89f131914..5057b84f6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseAsStreamCommandApiCommand.g.cs @@ -31,9 +31,9 @@ internal static partial class ResponsesBetaCreateResponseAsStreamCommandApiComma static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-create-response-as-stream", @"Create a model response + var command = new Command(commandName ?? @"beta-create-response-as-stream", @"Create a model response Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or [image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text) or [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs index 71729532a..6643cafc0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaCreateResponseCommandApiCommand.g.cs @@ -51,9 +51,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-create-response", @"Create a model response + var command = new Command(commandName ?? @"beta-create-response", @"Create a model response Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or [image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text) or [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs index 3f009acc7..774b1568b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaDeleteResponseCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-delete-response", @"Delete a model response + var command = new Command(commandName ?? @"beta-delete-response", @"Delete a model response Deletes a model response with the given ID. "); command.Arguments.Add(ResponseId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs index 46b2f261f..e31029857 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetResponseCommandApiCommand.g.cs @@ -75,9 +75,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-get-response", @"Get a model response + var command = new Command(commandName ?? @"beta-get-response", @"Get a model response Retrieves a model response with the given ID. "); command.Arguments.Add(ResponseId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs index 422102bfe..56595a588 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaGetinputtokencountsCommandApiCommand.g.cs @@ -115,9 +115,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-getinputtokencounts", @"Get input token counts + var command = new Command(commandName ?? @"beta-getinputtokencounts", @"Get input token counts Returns input token counts of the request. Returns an object with `object` set to `response.input_tokens` and an `input_tokens` count."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs index 4086c00bd..96fd6cc5a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesBetaListInputItemsCommandApiCommand.g.cs @@ -73,9 +73,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"beta-list-input-items", @"List input items + var command = new Command(commandName ?? @"beta-list-input-items", @"List input items Returns a list of input items for a given response."); command.Arguments.Add(ResponseId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs index 8405fcf14..4a831a9a3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCancelResponseCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-response", @"Cancel a response + var command = new Command(commandName ?? @"cancel-response", @"Cancel a response Cancels a model response with the given ID. Only responses created with the `background` parameter set to `true` can be cancelled. [Learn more](https://developers.openai.com/api/docs/guides/background). diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs index 3c5e042d6..b8156cd06 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCompactconversationCommandApiCommand.g.cs @@ -94,9 +94,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"compactconversation", @"Compact conversation + var command = new Command(commandName ?? @"compactconversation", @"Compact conversation Compact a conversation. Returns a compacted response object. Learn when and how to compact long-running conversations in the [conversation state guide](https://developers.openai.com/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced)."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs index bfcb9bfbb..5a551dcc0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseAsStreamCommandApiCommand.g.cs @@ -27,9 +27,9 @@ internal static partial class ResponsesCreateResponseAsStreamCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-response-as-stream", @"Create a model response + var command = new Command(commandName ?? @"create-response-as-stream", @"Create a model response Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or [image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text) or [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs index 72b76f120..04e7f72c5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesCreateResponseCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-response", @"Create a model response + var command = new Command(commandName ?? @"create-response", @"Create a model response Creates a model response. Provide [text](https://developers.openai.com/api/docs/guides/text) or [image](https://developers.openai.com/api/docs/guides/images-vision) inputs to generate [text](https://developers.openai.com/api/docs/guides/text) or [JSON](https://developers.openai.com/api/docs/guides/structured-outputs) outputs. Have the model call diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs index 5d62180e8..60414fffc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesDeleteResponseCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-response", @"Delete a model response + var command = new Command(commandName ?? @"delete-response", @"Delete a model response Deletes a model response with the given ID. "); command.Arguments.Add(ResponseId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs index fa4dcda9f..f2633fc6e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetResponseCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-response", @"Get a model response + var command = new Command(commandName ?? @"get-response", @"Get a model response Retrieves a model response with the given ID. "); command.Arguments.Add(ResponseId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs index 23b8edb9a..274cfb299 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesGetinputtokencountsCommandApiCommand.g.cs @@ -109,9 +109,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"getinputtokencounts", @"Get input token counts + var command = new Command(commandName ?? @"getinputtokencounts", @"Get input token counts Returns input token counts of the request. Returns an object with `object` set to `response.input_tokens` and an `input_tokens` count."); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs index 388ddba7b..b3a81a50d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ResponsesListInputItemsCommandApiCommand.g.cs @@ -67,9 +67,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-input-items", @"List input items + var command = new Command(commandName ?? @"list-input-items", @"List input items Returns a list of input items for a given response."); command.Arguments.Add(ResponseId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs index cc778b431..cedb2b42b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-container", @"Retrieve container + var command = new Command(commandName ?? @"retrieve-container", @"Retrieve container Retrieve Container"); command.Arguments.Add(ContainerId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs index 33c3a111a..5e554bbbd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-container-file", @"Retrieve container file + var command = new Command(commandName ?? @"retrieve-container-file", @"Retrieve container file Retrieve Container File"); command.Arguments.Add(ContainerId); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs index a69ebec63..ef0c00d5c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveContainerFileContentCommandApiCommand.g.cs @@ -21,9 +21,9 @@ internal static partial class RetrieveContainerFileContentCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-container-file-content", @"Retrieve container file content + var command = new Command(commandName ?? @"retrieve-container-file-content", @"Retrieve container file content Retrieve Container File Content"); command.Arguments.Add(ContainerId); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs index 273dc63e0..49cc5d2d4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RetrieveWebhookEndpointCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-webhook-endpoint", @"Retrieve Webhook Endpoint + var command = new Command(commandName ?? @"retrieve-webhook-endpoint", @"Retrieve Webhook Endpoint Retrieves a webhook endpoint for the authenticated project."); command.Arguments.Add(WebhookEndpointId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs index db15a3a63..ce2a099a5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateProjectRoleCommandApiCommand.g.cs @@ -52,9 +52,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-project-role", @"Create project role + var command = new Command(commandName ?? @"create-project-role", @"Create project role Creates a custom role for a project."); command.Arguments.Add(ProjectId); command.Options.Add(PublicCreateOrganizationRoleBodyOptionSetOptions.RoleName); command.Options.Add(PublicCreateOrganizationRoleBodyOptionSetOptions.Permissions); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs index 022acb71b..6d32be907 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesCreateRoleCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-role", @"Create organization role + var command = new Command(commandName ?? @"create-role", @"Create organization role Creates a custom role for the organization."); command.Options.Add(PublicCreateOrganizationRoleBodyOptionSetOptions.RoleName); command.Options.Add(PublicCreateOrganizationRoleBodyOptionSetOptions.Permissions); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs index 50ed978fb..ff89dccbf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteProjectRoleCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-project-role", @"Delete project role + var command = new Command(commandName ?? @"delete-project-role", @"Delete project role Deletes a custom role from a project."); command.Arguments.Add(ProjectId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs index a897a03a2..5cc73563a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesDeleteRoleCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-role", @"Delete organization role + var command = new Command(commandName ?? @"delete-role", @"Delete organization role Deletes a custom role from the organization."); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs index 1a3a6c108..250f89731 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListProjectRolesCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-roles", @"List project roles + var command = new Command(commandName ?? @"list-project-roles", @"List project roles Lists the roles configured for a project."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs index 6020e00f4..feae044f6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesListRolesCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-roles", @"List organization roles + var command = new Command(commandName ?? @"list-roles", @"List organization roles Lists the roles configured for the organization."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs index 2081d8883..6c5aad0d0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveProjectRoleCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-role", @"Retrieve project role + var command = new Command(commandName ?? @"retrieve-project-role", @"Retrieve project role Retrieves a project role."); command.Arguments.Add(ProjectId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs index 3e55fa1cb..3450deafc 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesRetrieveRoleCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-role", @"Retrieve organization role + var command = new Command(commandName ?? @"retrieve-role", @"Retrieve organization role Retrieves an organization role."); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs index 5a9c3261d..3aaab3a58 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateProjectRoleCommandApiCommand.g.cs @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-role", @"Update project role + var command = new Command(commandName ?? @"update-project-role", @"Update project role Updates an existing project role."); command.Arguments.Add(ProjectId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs index 6363f90ae..b3ab9c1a5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RolesUpdateRoleCommandApiCommand.g.cs @@ -58,9 +58,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-role", @"Update organization role + var command = new Command(commandName ?? @"update-role", @"Update organization role Updates an existing organization role."); command.Arguments.Add(RoleId); command.Options.Add(Permissions); command.Options.Add(PublicUpdateOrganizationRoleBodyOptionSetOptions.DescriptionOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs index dadb9cbfa..dc48b3782 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/RotateWebhookEndpointSigningSecretCommandApiCommand.g.cs @@ -55,9 +55,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"rotate-webhook-endpoint-signing-secret", @"Rotate Webhook Endpoint Signing Secret + var command = new Command(commandName ?? @"rotate-webhook-endpoint-signing-secret", @"Rotate Webhook Endpoint Signing Secret Rotates the signing secret for a webhook endpoint in the authenticated project."); command.Arguments.Add(WebhookEndpointId); command.Options.Add(KeepOldSecretActiveFor24Hours); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs index 13a9d7c7c..3aca8b1ad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-skill", @"Create Skill + var command = new Command(commandName ?? @"create-skill", @"Create Skill Create a new skill."); command.Options.Add(Files); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs index b0217ac5e..1e79d1dfb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsCreateSkillVersionCommandApiCommand.g.cs @@ -62,9 +62,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-skill-version", @"Create Skill Version + var command = new Command(commandName ?? @"create-skill-version", @"Create Skill Version Create a new immutable skill version."); command.Arguments.Add(SkillId); command.Options.Add(Files); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs index 460043629..1e9b52224 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-skill", @"Delete Skill + var command = new Command(commandName ?? @"delete-skill", @"Delete Skill Delete a skill by its ID."); command.Arguments.Add(SkillId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs index 223083adb..d90bea229 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsDeleteSkillVersionCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-skill-version", @"Delete Skill Version + var command = new Command(commandName ?? @"delete-skill-version", @"Delete Skill Version Delete a skill version."); command.Arguments.Add(SkillId); command.Arguments.Add(Version); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs index 88662b5a3..6745ce385 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-skill", @"Get Skill + var command = new Command(commandName ?? @"get-skill", @"Get Skill Get a skill by its ID."); command.Arguments.Add(SkillId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs index f100fadfc..f9209bc92 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentAsBytesCommandApiCommand.g.cs @@ -15,9 +15,9 @@ internal static partial class SkillsGetSkillContentAsBytesCommandApiCommand static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-skill-content-as-bytes", @"Get Skill Content + var command = new Command(commandName ?? @"get-skill-content-as-bytes", @"Get Skill Content Download a skill zip bundle by its ID."); command.Arguments.Add(SkillId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs index 30fd7f3ae..03a2e90ad 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillContentCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-skill-content", @"Get Skill Content + var command = new Command(commandName ?? @"get-skill-content", @"Get Skill Content Download a skill zip bundle by its ID."); command.Arguments.Add(SkillId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs index a80966cce..bcdce68e4 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-skill-version", @"Get Skill Version + var command = new Command(commandName ?? @"get-skill-version", @"Get Skill Version Get a specific skill version."); command.Arguments.Add(SkillId); command.Arguments.Add(Version); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs index 3a82001c9..1da52e6d3 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentAsBytesCommandApiCommand.g.cs @@ -21,9 +21,9 @@ internal static partial class SkillsGetSkillVersionContentAsBytesCommandApiComma static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-skill-version-content-as-bytes", @"Get Skill Version Content + var command = new Command(commandName ?? @"get-skill-version-content-as-bytes", @"Get Skill Version Content Download a skill version zip bundle."); command.Arguments.Add(SkillId); command.Arguments.Add(Version); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs index b3b745112..c6cc7a401 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsGetSkillVersionContentCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, string value, glob static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-skill-version-content", @"Get Skill Version Content + var command = new Command(commandName ?? @"get-skill-version-content", @"Get Skill Version Content Download a skill version zip bundle."); command.Arguments.Add(SkillId); command.Arguments.Add(Version); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs index 33c39b64b..34800f41a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillVersionsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-skill-versions", @"List Skill Versions + var command = new Command(commandName ?? @"list-skill-versions", @"List Skill Versions List skill versions for a skill."); command.Arguments.Add(SkillId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs index fa3b6106b..a568eb477 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsListSkillsCommandApiCommand.g.cs @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-skills", @"List Skills + var command = new Command(commandName ?? @"list-skills", @"List Skills List all skills for the current project."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs index 06f60f7c6..6191df2a5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SkillsUpdateSkillDefaultVersionCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-skill-default-version", @"Update Skill Default Version + var command = new Command(commandName ?? @"update-skill-default-version", @"Update Skill Default Version Update the default version pointer for a skill."); command.Arguments.Add(SkillId); command.Options.Add(DefaultVersion); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs index 8f7daad29..8fdd499bf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateOrganizationSpendAlertCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-organization-spend-alert", @"Create organization spend alert + var command = new Command(commandName ?? @"create-organization-spend-alert", @"Create organization spend alert Creates an organization spend alert."); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.ThresholdAmount); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.Currency); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs index b038c3bde..c5c70659f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsCreateProjectSpendAlertCommandApiCommand.g.cs @@ -54,9 +54,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-project-spend-alert", @"Create project spend alert + var command = new Command(commandName ?? @"create-project-spend-alert", @"Create project spend alert Creates a project spend alert."); command.Arguments.Add(ProjectId); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.ThresholdAmount); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.Currency); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs index f6c093744..7bd50eef5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteOrganizationSpendAlertCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-organization-spend-alert", @"Delete organization spend alert + var command = new Command(commandName ?? @"delete-organization-spend-alert", @"Delete organization spend alert Deletes an organization spend alert."); command.Arguments.Add(AlertId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs index f20c01991..f99756340 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsDeleteProjectSpendAlertCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-project-spend-alert", @"Delete project spend alert + var command = new Command(commandName ?? @"delete-project-spend-alert", @"Delete project spend alert Deletes a project spend alert."); command.Arguments.Add(ProjectId); command.Arguments.Add(AlertId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs index 8c5d5ede0..629e01be5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListOrganizationSpendAlertsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-organization-spend-alerts", @"List organization spend alerts + var command = new Command(commandName ?? @"list-organization-spend-alerts", @"List organization spend alerts Lists organization spend alerts."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs index 6978adcfe..902b3cd8e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsListProjectSpendAlertsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-project-spend-alerts", @"List project spend alerts + var command = new Command(commandName ?? @"list-project-spend-alerts", @"List project spend alerts Lists project spend alerts."); command.Arguments.Add(ProjectId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs index d4759f62f..ef5440c15 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveOrganizationSpendAlertCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-organization-spend-alert", @"Retrieve organization spend alert + var command = new Command(commandName ?? @"retrieve-organization-spend-alert", @"Retrieve organization spend alert Retrieves an organization spend alert."); command.Arguments.Add(AlertId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs index cd621124b..84d4f64f9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsRetrieveProjectSpendAlertCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-project-spend-alert", @"Retrieve project spend alert + var command = new Command(commandName ?? @"retrieve-project-spend-alert", @"Retrieve project spend alert Retrieves a project spend alert."); command.Arguments.Add(ProjectId); command.Arguments.Add(AlertId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs index d0b5d36bb..fe4e2463e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateOrganizationSpendAlertCommandApiCommand.g.cs @@ -54,9 +54,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-organization-spend-alert", @"Update organization spend alert + var command = new Command(commandName ?? @"update-organization-spend-alert", @"Update organization spend alert Updates an organization spend alert."); command.Arguments.Add(AlertId); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.ThresholdAmount); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.Currency); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs index 847ba59dd..8bc6f0cf5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/SpendAlertsUpdateProjectSpendAlertCommandApiCommand.g.cs @@ -60,9 +60,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-project-spend-alert", @"Update project spend alert + var command = new Command(commandName ?? @"update-project-spend-alert", @"Update project spend alert Updates a project spend alert."); command.Arguments.Add(ProjectId); command.Arguments.Add(AlertId); command.Options.Add(CreateSpendAlertBodyOptionSetOptions.ThresholdAmount); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs index 8e56cc410..4f4dac852 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/TestWebhookEndpointCommandApiCommand.g.cs @@ -42,9 +42,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"test-webhook-endpoint", @"Test Webhook Endpoint + var command = new Command(commandName ?? @"test-webhook-endpoint", @"Test Webhook Endpoint Sends a sample event to a webhook endpoint for the authenticated project."); command.Arguments.Add(WebhookEndpointId); command.Options.Add(EventType); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs index 44c76459b..4dfee2216 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateWebhookEndpointCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-webhook-endpoint", @"Update Webhook Endpoint + var command = new Command(commandName ?? @"update-webhook-endpoint", @"Update Webhook Endpoint Updates a webhook endpoint for the authenticated project."); command.Arguments.Add(WebhookEndpointId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs index 450db864b..57eea09cf 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateorganizationspendlimitCommandApiCommand.g.cs @@ -64,9 +64,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"updateorganizationspendlimit", @"Update organization spend limit + var command = new Command(commandName ?? @"updateorganizationspendlimit", @"Update organization spend limit Create or replace the organization's hard spend limit."); command.Options.Add(ThresholdAmount); command.Options.Add(Currency); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs index b0569e0c2..9f266e920 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UpdateprojectspendlimitCommandApiCommand.g.cs @@ -70,9 +70,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"updateprojectspendlimit", @"Update project spend limit + var command = new Command(commandName ?? @"updateprojectspendlimit", @"Update project spend limit Create or replace a project's hard spend limit."); command.Arguments.Add(ProjectId); command.Options.Add(ThresholdAmount); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs index a7999dc0b..6edc5a8c0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsAddUploadPartCommandApiCommand.g.cs @@ -52,9 +52,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"add-upload-part", @"Add upload part + var command = new Command(commandName ?? @"add-upload-part", @"Add upload part Adds a [Part](https://developers.openai.com/api/reference/resources/uploads/subresources/parts) to an [Upload](https://developers.openai.com/api/reference/resources/uploads) object. A Part represents a chunk of bytes from the file you are trying to upload. Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs index 4457fb212..6a16b058e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCancelUploadCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-upload", @"Cancel upload + var command = new Command(commandName ?? @"cancel-upload", @"Cancel upload Cancels the Upload. No Parts may be added after an Upload is cancelled. Returns the Upload object with status `cancelled`. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs index 4c9c25de7..41d32165f 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCompleteUploadCommandApiCommand.g.cs @@ -67,9 +67,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"complete-upload", @"Complete upload + var command = new Command(commandName ?? @"complete-upload", @"Complete upload Completes the [Upload](https://developers.openai.com/api/reference/resources/uploads). Within the returned Upload object, there is a nested [File](https://developers.openai.com/api/reference/resources/files) object that is ready to use in the rest of the platform. diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs index 6a54c820a..a7aaa87c5 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UploadsCreateUploadCommandApiCommand.g.cs @@ -85,9 +85,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-upload", @"Create upload + var command = new Command(commandName ?? @"create-upload", @"Create upload Creates an intermediate [Upload](https://developers.openai.com/api/reference/resources/uploads) object that you can add [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts) to. Currently, an Upload can accept at most 8 GB in total and expires after an diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs index cb2222132..d563d1d34 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioSpeechesCommandApiCommand.g.cs @@ -94,9 +94,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"audio-speeches", @"Audio speeches + var command = new Command(commandName ?? @"audio-speeches", @"Audio speeches Get audio speeches usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs index d2a403221..9a88c70ed 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageAudioTranscriptionsCommandApiCommand.g.cs @@ -94,9 +94,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"audio-transcriptions", @"Audio transcriptions + var command = new Command(commandName ?? @"audio-transcriptions", @"Audio transcriptions Get audio transcriptions usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs index cd9efba02..cf9670297 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCodeInterpreterSessionsCommandApiCommand.g.cs @@ -76,9 +76,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"code-interpreter-sessions", @"Code interpreter sessions + var command = new Command(commandName ?? @"code-interpreter-sessions", @"Code interpreter sessions Get code interpreter sessions usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs index 7aa3063ca..2f404949d 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCompletionsCommandApiCommand.g.cs @@ -99,9 +99,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"completions", @"Completions + var command = new Command(commandName ?? @"completions", @"Completions Get completions usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs index a0e61c9da..06bfa3ef2 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageCostsCommandApiCommand.g.cs @@ -85,9 +85,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"costs", @"Costs + var command = new Command(commandName ?? @"costs", @"Costs Get costs details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs index 3b1f0e317..2935ac1ab 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageEmbeddingsCommandApiCommand.g.cs @@ -94,9 +94,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"embeddings", @"Embeddings + var command = new Command(commandName ?? @"embeddings", @"Embeddings Get embeddings usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs index 1a4bbfa96..048441d61 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageFileSearchCallsCommandApiCommand.g.cs @@ -94,9 +94,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"file-search-calls", @"File search calls + var command = new Command(commandName ?? @"file-search-calls", @"File search calls Get file search calls usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs index 33a09da33..6372433dd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageImagesCommandApiCommand.g.cs @@ -106,9 +106,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"images", @"Images + var command = new Command(commandName ?? @"images", @"Images Get images usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs index ae776e5f0..ba3e55001 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageModerationsCommandApiCommand.g.cs @@ -94,9 +94,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"moderations", @"Moderations + var command = new Command(commandName ?? @"moderations", @"Moderations Get moderations usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs index 9650568a7..af073160e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageVectorStoresCommandApiCommand.g.cs @@ -76,9 +76,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"vector-stores", @"Vector stores + var command = new Command(commandName ?? @"vector-stores", @"Vector stores Get vector stores usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs index a006a8f80..6f8a1e1f9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsageUsageWebSearchCallsCommandApiCommand.g.cs @@ -100,9 +100,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"web-search-calls", @"Web search calls + var command = new Command(commandName ?? @"web-search-calls", @"Web search calls Get web search calls usage details for the organization."); command.Options.Add(StartTime); command.Options.Add(EndTime); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs index cd26282b7..f046af94b 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsAssignUserRoleCommandApiCommand.g.cs @@ -36,9 +36,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"assign-user-role", @"Assign organization role to user + var command = new Command(commandName ?? @"assign-user-role", @"Assign organization role to user Assigns an organization role to a user within the organization."); command.Arguments.Add(UserId); command.Options.Add(PublicAssignOrganizationGroupRoleBodyOptionSetOptions.RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs index 0efaca8f3..a24ef00bd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsListUserRoleAssignmentsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-user-role-assignments", @"List user organization role assignments + var command = new Command(commandName ?? @"list-user-role-assignments", @"List user organization role assignments Lists the organization roles assigned to a user within the organization."); command.Arguments.Add(UserId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs index 9cd180586..441accaea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsRetrieveUserRoleCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-user-role", @"Retrieve user organization role + var command = new Command(commandName ?? @"retrieve-user-role", @"Retrieve user organization role Retrieves an organization role assigned to a user."); command.Arguments.Add(UserId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs index e70d34645..46210f359 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UserOrganizationRoleAssignmentsUnassignUserRoleCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"unassign-user-role", @"Unassign organization role from user + var command = new Command(commandName ?? @"unassign-user-role", @"Unassign organization role from user Unassigns an organization role from a user within the organization."); command.Arguments.Add(UserId); command.Arguments.Add(RoleId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs index cdf3453da..b05cab7de 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersDeleteUserCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-user", @"Delete user + var command = new Command(commandName ?? @"delete-user", @"Delete user Deletes a user from the organization."); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs index 4d46b1ce8..4bd7a7d3c 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersListUsersCommandApiCommand.g.cs @@ -49,9 +49,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-users", @"List users + var command = new Command(commandName ?? @"list-users", @"List users Lists all of the users in the organization."); command.Options.Add(Limit); command.Options.Add(After); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs index 418a26b1d..dd6cc5493 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersModifyUserCommandApiCommand.g.cs @@ -75,9 +75,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-user", @"Modify user + var command = new Command(commandName ?? @"modify-user", @"Modify user Modifies a user's role in the organization."); command.Arguments.Add(UserId); command.Options.Add(Role); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs index eaa12e39c..365a0cf22 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/UsersRetrieveUserCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-user", @"Retrieve user + var command = new Command(commandName ?? @"retrieve-user", @"Retrieve user Retrieves a user by their identifier."); command.Arguments.Add(UserId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs index c5273a1ec..1148b2406 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/ValidateanexternalstorageconfigurationCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"validateanexternalstorageconfiguration", @"Validate an external storage configuration + var command = new Command(commandName ?? @"validateanexternalstorageconfiguration", @"Validate an external storage configuration Validate one customer-managed external storage configuration."); command.Arguments.Add(ExternalStorageId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs index c66d9bf0a..dca32f225 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-vault", @"Create a vault + var command = new Command(commandName ?? @"create-vault", @"Create a vault Creates a vault for the current project. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Options.Add(NameOption); command.Options.Add(Metadata); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs index 05659a9bc..2d2b5cfef 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsCreateVaultCredentialCommandApiCommand.g.cs @@ -71,9 +71,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-vault-credential", @"Create a vault credential + var command = new Command(commandName ?? @"create-vault-credential", @"Create a vault credential Creates a vault credential. Secret values are write-only and are never returned. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs index e81e96e33..c6732bf57 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-vault", @"Delete a vault + var command = new Command(commandName ?? @"delete-vault", @"Delete a vault Deletes a vault and all its credentials. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs index 5d60a81ae..b3dcd3180 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsDeleteVaultCredentialCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-vault-credential", @"Delete a vault credential + var command = new Command(commandName ?? @"delete-vault-credential", @"Delete a vault credential Deletes a vault credential. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); command.Arguments.Add(CredentialId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs index c048785f2..062dc8804 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultCredentialsCommandApiCommand.g.cs @@ -59,9 +59,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-vault-credentials", @"List vault credentials + var command = new Command(commandName ?? @"list-vault-credentials", @"List vault credentials Lists a vault's credentials using ID-based pagination without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs index f6e45e2fd..6cda370e0 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsListVaultsCommandApiCommand.g.cs @@ -53,9 +53,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-vaults", @"List vaults + var command = new Command(commandName ?? @"list-vaults", @"List vaults Lists vaults using ID-based pagination. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Options.Add(Order); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs index 6642f3116..302d3c241 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-vault", @"Retrieve a vault + var command = new Command(commandName ?? @"retrieve-vault", @"Retrieve a vault Retrieves a vault by its ID. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs index 4120b990d..7148fc8cd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRetrieveVaultCredentialCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-vault-credential", @"Retrieve a vault credential + var command = new Command(commandName ?? @"retrieve-vault-credential", @"Retrieve a vault credential Retrieves vault credential metadata without returning secret values. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); command.Arguments.Add(CredentialId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs index 6da7fe3c4..6c7f02b79 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VaultsRotateVaultCredentialCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"rotate-vault-credential", @"Update a vault credential + var command = new Command(commandName ?? @"rotate-vault-credential", @"Update a vault credential Updates credential metadata or rotates its write-only secret. See [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults)."); command.Arguments.Add(VaultId); command.Arguments.Add(CredentialId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs index 0b7a35f9e..8f89bb747 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCancelVectorStoreFileBatchCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"cancel-vector-store-file-batch", @"Cancel vector store file batch + var command = new Command(commandName ?? @"cancel-vector-store-file-batch", @"Cancel vector store file batch Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(BatchId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs index b8ccd55a3..9e5793162 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreCommandApiCommand.g.cs @@ -97,9 +97,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-vector-store", @"Create vector store + var command = new Command(commandName ?? @"create-vector-store", @"Create vector store Create a vector store."); command.Options.Add(FileIds); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs index c86cca174..6f6467253 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileBatchCommandApiCommand.g.cs @@ -92,9 +92,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-vector-store-file-batch", @"Create vector store file batch + var command = new Command(commandName ?? @"create-vector-store-file-batch", @"Create vector store file batch Create a vector store file batch."); command.Arguments.Add(VectorStoreId); command.Options.Add(FileIds); @@ -156,7 +156,8 @@ await CliRuntime.RunAsync(async () => var waitResponse = await CliRuntime.PollUntilTerminalAsync( fetchAsync: token => client.VectorStores.GetVectorStoreFileBatchAsync( - vectorStoreId: resourceId, + vectorStoreId: vectorStoreId, + batchId: resourceId, cancellationToken: token), pollInterval: pollInterval, waitTimeout: waitTimeout, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs index f4a179980..348777f8e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresCreateVectorStoreFileCommandApiCommand.g.cs @@ -87,9 +87,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"create-vector-store-file", @"Create vector store file + var command = new Command(commandName ?? @"create-vector-store-file", @"Create vector store file Create a vector store file by attaching a [File](https://developers.openai.com/api/reference/resources/files) to a [vector store](https://developers.openai.com/api/reference/resources/vector_stores)."); command.Arguments.Add(VectorStoreId); command.Options.Add(FileId); @@ -148,7 +148,8 @@ await CliRuntime.RunAsync(async () => var waitResponse = await CliRuntime.PollUntilTerminalAsync( fetchAsync: token => client.VectorStores.GetVectorStoreFileAsync( - vectorStoreId: resourceId, + vectorStoreId: vectorStoreId, + fileId: resourceId, cancellationToken: token), pollInterval: pollInterval, waitTimeout: waitTimeout, diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs index 206311562..0defe8af8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-vector-store", @"Delete vector store + var command = new Command(commandName ?? @"delete-vector-store", @"Delete vector store Delete a vector store."); command.Arguments.Add(VectorStoreId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs index 80dd86b70..060505603 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresDeleteVectorStoreFileCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"delete-vector-store-file", @"Delete vector store file + var command = new Command(commandName ?? @"delete-vector-store-file", @"Delete vector store file Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](https://developers.openai.com/api/reference/resources/files/methods/delete) endpoint."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs index 2d3dcb4dd..0988ed6a9 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreCommandApiCommand.g.cs @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-vector-store", @"Retrieve vector store + var command = new Command(commandName ?? @"get-vector-store", @"Retrieve vector store Retrieves a vector store."); command.Arguments.Add(VectorStoreId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs index 00ad3cdee..081f61b9a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileBatchCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-vector-store-file-batch", @"Retrieve vector store file batch + var command = new Command(commandName ?? @"get-vector-store-file-batch", @"Retrieve vector store file batch Retrieves a vector store file batch."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(BatchId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs index 60d329e75..fc6a020a6 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresGetVectorStoreFileCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"get-vector-store-file", @"Retrieve vector store file + var command = new Command(commandName ?? @"get-vector-store-file", @"Retrieve vector store file Retrieves a vector store file."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs index d7e91fcc8..ac99db62a 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListFilesInVectorStoreBatchCommandApiCommand.g.cs @@ -75,9 +75,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-files-in-vector-store-batch", @"List vector store files in a batch + var command = new Command(commandName ?? @"list-files-in-vector-store-batch", @"List vector store files in a batch Returns a list of vector store files in a batch."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(BatchId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs index afd833966..a9843410e 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoreFilesCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-vector-store-files", @"List vector store files + var command = new Command(commandName ?? @"list-vector-store-files", @"List vector store files Returns a list of vector store files."); command.Arguments.Add(VectorStoreId); command.Options.Add(Limit); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs index 4692ab634..6f9d93be8 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresListVectorStoresCommandApiCommand.g.cs @@ -57,9 +57,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"list-vector-stores", @"List vector stores + var command = new Command(commandName ?? @"list-vector-stores", @"List vector stores Returns a list of vector stores."); command.Options.Add(Limit); command.Options.Add(Order); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs index 18ebdb0a0..c857441fd 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresModifyVectorStoreCommandApiCommand.g.cs @@ -69,9 +69,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"modify-vector-store", @"Modify vector store + var command = new Command(commandName ?? @"modify-vector-store", @"Modify vector store Modifies a vector store."); command.Arguments.Add(VectorStoreId); command.Options.Add(NameOption); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs index 819a95dd0..036d0d433 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresRetrieveVectorStoreFileContentCommandApiCommand.g.cs @@ -41,9 +41,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"retrieve-vector-store-file-content", @"Retrieve vector store file content + var command = new Command(commandName ?? @"retrieve-vector-store-file-content", @"Retrieve vector store file content Retrieve the parsed contents of a vector store file."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(FileId); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs index 5b659ea65..f6793d447 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresSearchVectorStoreCommandApiCommand.g.cs @@ -80,9 +80,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"search-vector-store", @"Search vector store + var command = new Command(commandName ?? @"search-vector-store", @"Search vector store Search a vector store for relevant chunks based on a query and file attributes filter."); command.Arguments.Add(VectorStoreId); command.Options.Add(Query); diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs index ba43a903c..e464c6fdb 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/VectorStoresUpdateVectorStoreFileAttributesCommandApiCommand.g.cs @@ -63,9 +63,9 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope static partial void CustomizeCommand(ref Command command); - public static Command Create() + public static Command Create(string? commandName = null) { - var command = new Command(@"update-vector-store-file-attributes", @"Update vector store file attributes + var command = new Command(commandName ?? @"update-vector-store-file-attributes", @"Update vector store file attributes Update attributes on a vector store file."); command.Arguments.Add(VectorStoreId); command.Arguments.Add(FileId);